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 * enum qca_nl80211_vendor_subcmds - QCA nl80211 vendor command identifiers 36 * 37 * @QCA_NL80211_VENDOR_SUBCMD_UNSPEC: Reserved value 0 38 * 39 * @QCA_NL80211_VENDOR_SUBCMD_TEST: Test command/event 40 * 41 * @QCA_NL80211_VENDOR_SUBCMD_ROAMING: Set roaming policy for drivers that use 42 * internal BSS-selection. This command uses 43 * @QCA_WLAN_VENDOR_ATTR_ROAMING_POLICY to specify the new roaming policy 44 * for the current connection (i.e., changes policy set by the nl80211 45 * Connect command). @QCA_WLAN_VENDOR_ATTR_MAC_ADDR may optionally be 46 * included to indicate which BSS to use in case roaming is disabled. 47 * 48 * @QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY: Recommendation of frequency 49 * ranges to avoid to reduce issues due to interference or internal 50 * co-existence information in the driver. These frequencies aim to 51 * minimize the traffic but not to totally avoid the traffic. That said 52 * for a P2P use case, these frequencies are allowed for the P2P 53 * discovery/negotiation but avoid the group to get formed on these 54 * frequencies. The event data structure is defined in 55 * struct qca_avoid_freq_list. 56 * 57 * @QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY: Command to check driver support 58 * for DFS offloading. 59 * 60 * @QCA_NL80211_VENDOR_SUBCMD_NAN: NAN command/event which is used to pass 61 * NAN Request/Response and NAN Indication messages. These messages are 62 * interpreted between the framework and the firmware component. While 63 * sending the command from userspace to the driver, payload is not 64 * encapsulated inside any attribute. Attribute QCA_WLAN_VENDOR_ATTR_NAN 65 * is used when receiving vendor events in userspace from the driver. 66 * 67 * @QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE: This command is used to enable TDLS 68 * capability or to form a session with the specified peer. 69 * If %NL80211_ATTR_VENDOR_DATA is sent as an empty nested attribute this 70 * indicates to enable TDLS capability on the interface. 71 * If %QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR is nested in 72 * %NL80211_ATTR_VENDOR_DATA this indicates the userspace requests to 73 * form a TDLS session with the specified peer MAC address. 74 * The attributes used with this command are defined in 75 * enum qca_wlan_vendor_attr_tdls_enable. 76 * 77 * @QCA_NL80211_VENDOR_SUBCMD_TDLS_DISABLE: This command is used to disable TDLS 78 * capability or to terminate the session with the specified peer. 79 * If %NL80211_ATTR_VENDOR_DATA is sent as an empty nested attribute this 80 * indicates to disable TDLS capability on the interface. 81 * If %QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAC_ADDR is nested in 82 * %NL80211_ATTR_VENDOR_DATA this indicates the userspace requests to 83 * terminate TDLS session with the specified peer MAC address. 84 * The attributes used with this command are defined in 85 * enum qca_wlan_vendor_attr_tdls_disable. 86 * 87 * @QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS: This command is to get the TDLS 88 * status at the interface level or with the specific peer. 89 * If %NL80211_ATTR_VENDOR_DATA is sent as an empty nested attribute this 90 * indicates the TDLS status query is at interface level. 91 * If %QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR is nested in 92 * %NL80211_ATTR_VENDOR_DATA this indicates the userspace requests to 93 * get TDLS session status with the specified peer MAC address. 94 * The attributes used with this command are defined in 95 * enum qca_wlan_vendor_attr_tdls_get_status. 96 * 97 * @QCA_NL80211_VENDOR_SUBCMD_TDLS_STATE: This event is to indicate the result 98 * of the TDLS session request with the peer sent by userspace in 99 * %QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE. 100 * The attributes used with this command are defined in 101 * enum qca_wlan_vendor_attr_tdls_state. 102 * 103 * @QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_SET_KEY: Set key operation that can be 104 * used to configure PMK to the driver even when not connected. This can 105 * be used to request offloading of key management operations. Only used 106 * if device supports QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD. 107 * 108 * @QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_ROAM_AUTH: An extended version of 109 * NL80211_CMD_ROAM event with optional attributes including information 110 * from offloaded key management operation. Uses 111 * enum qca_wlan_vendor_attr_roam_auth attributes. Only used 112 * if device supports QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD. 113 * 114 * @QCA_NL80211_VENDOR_SUBCMD_DO_ACS: ACS command/event which is used to 115 * invoke the ACS function in device and pass selected channels to 116 * hostapd. Uses enum qca_wlan_vendor_attr_acs_offload attributes. 117 * 118 * @QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES: Command to get the features 119 * supported by the driver. enum qca_wlan_vendor_features defines 120 * the possible features. 121 * 122 * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_STARTED: Event used by driver, 123 * which supports DFS offloading, to indicate a channel availability check 124 * start. 125 * 126 * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_FINISHED: Event used by driver, 127 * which supports DFS offloading, to indicate a channel availability check 128 * completion. 129 * 130 * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_ABORTED: Event used by driver, 131 * which supports DFS offloading, to indicate that the channel availability 132 * check aborted, no change to the channel status. 133 * 134 * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_NOP_FINISHED: Event used by 135 * driver, which supports DFS offloading, to indicate that the 136 * Non-Occupancy Period for this channel is over, channel becomes usable. 137 * 138 * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_RADAR_DETECTED: Event used by driver, 139 * which supports DFS offloading, to indicate a radar pattern has been 140 * detected. The channel is now unusable. 141 * 142 * @QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_INFO: Get information from the driver. 143 * Attributes defined in enum qca_wlan_vendor_attr_get_wifi_info. 144 * 145 * @QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION: This command is used to 146 * configure various wiphy or interface level configurations. Attributes 147 * are defined in enum qca_wlan_vendor_attr_config. Userspace can send one 148 * or more configuration attributes with a single command. The driver 149 * accepts the command only if all the configurations are known, otherwise 150 * it rejects the command. The driver returns success only if processing of 151 * all the configurations succeeds. The driver continues to process all the 152 * configurations even if processing of some configurations failed and 153 * returns the last error occurred while processing the failed 154 * configurations. 155 * 156 * @QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION: This command is used to 157 * get the current values of the various wiphy or interface level 158 * configurations. Attributes are defined in enum 159 * qca_wlan_vendor_attr_config. Userspace needs to specify the 160 * configuration attributes for which it wants to get the values in the 161 * command, there is no significance for the value sent in the attribute 162 * unless explicitly specified in the corresponding configuration 163 * attribute documentation. The driver accepts the command only if all the 164 * configurations are known, otherwise it rejects the command. The driver 165 * returns success only if fetching of all configuration values succeeds 166 * and indicates the configuration values in corresponding attributes in 167 * the response. The driver continues to process all the configurations 168 * even if processing of some configurations failed and returns the last 169 * error occurred while processing the failed configurations. 170 * 171 * @QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET: Get the feature bitmap 172 * based on enum wifi_logger_supported_features. Attributes defined in 173 * enum qca_wlan_vendor_attr_get_logger_features. 174 * 175 * @QCA_NL80211_VENDOR_SUBCMD_GET_RING_DATA: Get the ring data from a particular 176 * logger ring, QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_RING_ID is passed as the 177 * attribute for this command. Attributes defined in 178 * enum qca_wlan_vendor_attr_wifi_logger_start. 179 * 180 * @QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_CAPABILITIES: Get the supported TDLS 181 * capabilities of the driver, parameters includes the attributes defined 182 * in enum qca_wlan_vendor_attr_tdls_get_capabilities. 183 * 184 * @QCA_NL80211_VENDOR_SUBCMD_OFFLOADED_PACKETS: Vendor command used to offload 185 * sending of certain periodic IP packet to firmware, attributes defined in 186 * enum qca_wlan_vendor_attr_offloaded_packets. 187 * 188 * @QCA_NL80211_VENDOR_SUBCMD_MONITOR_RSSI: Command used to configure RSSI 189 * monitoring, defines min and max RSSI which are configured for RSSI 190 * monitoring. Also used to notify the RSSI breach and provides the BSSID 191 * and RSSI value that was breached. Attributes defined in 192 * enum qca_wlan_vendor_attr_rssi_monitoring. 193 * 194 * @QCA_NL80211_VENDOR_SUBCMD_NDP: Command used for performing various NAN 195 * Data Path (NDP) related operations, attributes defined in 196 * enum qca_wlan_vendor_attr_ndp_params. 197 * 198 * @QCA_NL80211_VENDOR_SUBCMD_ND_OFFLOAD: Command used to enable/disable 199 * Neighbour Discovery offload, attributes defined in 200 * enum qca_wlan_vendor_attr_nd_offload. 201 * 202 * @QCA_NL80211_VENDOR_SUBCMD_PACKET_FILTER: Used to set/get the various 203 * configuration parameter for BPF packet filter, attributes defined in 204 * enum qca_wlan_vendor_attr_packet_filter. 205 * 206 * @QCA_NL80211_VENDOR_SUBCMD_GET_BUS_SIZE: Gets the driver-firmware 207 * maximum supported size, attributes defined in 208 * enum qca_wlan_vendor_drv_info. 209 * 210 * @QCA_NL80211_VENDOR_SUBCMD_GET_WAKE_REASON_STATS: Command to get various 211 * data about wake reasons and datapath IP statistics, attributes defined 212 * in enum qca_wlan_vendor_attr_wake_stats. 213 * 214 * @QCA_NL80211_VENDOR_SUBCMD_OCB_SET_CONFIG: Command used to set configuration 215 * for IEEE 802.11 communicating outside the context of a basic service 216 * set, called OCB command. Uses the attributes defines in 217 * enum qca_wlan_vendor_attr_ocb_set_config. 218 * 219 * @QCA_NL80211_VENDOR_SUBCMD_OCB_SET_UTC_TIME: Command used to set OCB 220 * UTC time. Use the attributes defines in 221 * enum qca_wlan_vendor_attr_ocb_set_utc_time. 222 * 223 * @QCA_NL80211_VENDOR_SUBCMD_OCB_START_TIMING_ADVERT: Command used to start 224 * sending OCB timing advert frames. Uses the attributes defines in 225 * enum qca_wlan_vendor_attr_ocb_start_timing_advert. 226 * 227 * @QCA_NL80211_VENDOR_SUBCMD_OCB_STOP_TIMING_ADVERT: Command used to stop 228 * OCB timing advert. Uses the attributes defines in 229 * enum qca_wlan_vendor_attr_ocb_stop_timing_advert. 230 * 231 * @QCA_NL80211_VENDOR_SUBCMD_OCB_GET_TSF_TIMER: Command used to get TSF 232 * timer value. Uses the attributes defines in 233 * enum qca_wlan_vendor_attr_ocb_get_tsf_resp. 234 * 235 * @QCA_NL80211_VENDOR_SUBCMD_LINK_PROPERTIES: Command/event to update the 236 * link properties of the respective interface. As an event, is used 237 * to notify the connected station's status. The attributes for this 238 * command are defined in enum qca_wlan_vendor_attr_link_properties. 239 * 240 * @QCA_NL80211_VENDOR_SUBCMD_SETBAND: Command to configure the enabled band(s) 241 * to the driver. This command sets the band(s) through either the 242 * attribute QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE or 243 * QCA_WLAN_VENDOR_ATTR_SETBAND_MASK (or both). 244 * QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE refers enum qca_set_band as unsigned 245 * integer values and QCA_WLAN_VENDOR_ATTR_SETBAND_MASK refers it as 32 246 * bit unsigned bitmask values. The allowed values for 247 * QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE are limited to QCA_SETBAND_AUTO, 248 * QCA_SETBAND_5G, and QCA_SETBAND_2G. Other values/bitmasks are valid for 249 * QCA_WLAN_VENDOR_ATTR_SETBAND_MASK. The attribute 250 * QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE is deprecated and the recommendation 251 * is to use the QCA_WLAN_VENDOR_ATTR_SETBAND_MASK. If the both attributes 252 * are included for backwards compatibility, the configurations through 253 * QCA_WLAN_VENDOR_ATTR_SETBAND_MASK will take the precedence with drivers 254 * that support both attributes. 255 * 256 * @QCA_NL80211_VENDOR_SUBCMD_ACS_POLICY: This command is used to configure 257 * DFS policy and channel hint for ACS operation. This command uses the 258 * attributes defined in enum qca_wlan_vendor_attr_acs_config and 259 * enum qca_acs_dfs_mode. 260 * 261 * @QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_START: Command used to 262 * start the P2P Listen offload function in device and pass the listen 263 * channel, period, interval, count, device types, and vendor specific 264 * information elements to the device driver and firmware. 265 * Uses the attributes defines in 266 * enum qca_wlan_vendor_attr_p2p_listen_offload. 267 * 268 * @QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_STOP: Command/event used to 269 * indicate stop request/response of the P2P Listen offload function in 270 * device. As an event, it indicates either the feature stopped after it 271 * was already running or feature has actually failed to start. Uses the 272 * attributes defines in enum qca_wlan_vendor_attr_p2p_listen_offload. 273 * 274 * @QCA_NL80211_VENDOR_SUBCMD_SAP_CONDITIONAL_CHAN_SWITCH: After AP starts 275 * beaconing, this sub command provides the driver, the frequencies on the 276 * 5 GHz band to check for any radar activity. Driver selects one channel 277 * from this priority list provided through 278 * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST and starts 279 * to check for radar activity on it. If no radar activity is detected 280 * during the channel availability check period, driver internally switches 281 * to the selected frequency of operation. If the frequency is zero, driver 282 * internally selects a channel. The status of this conditional switch is 283 * indicated through an event using the same sub command through 284 * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS. Attributes are 285 * listed in qca_wlan_vendor_attr_sap_conditional_chan_switch. 286 * 287 * @QCA_NL80211_VENDOR_SUBCMD_GPIO_CONFIG_COMMAND: Set GPIO pins. This uses the 288 * attributes defined in enum qca_wlan_gpio_attr. 289 * 290 * @QCA_NL80211_VENDOR_SUBCMD_GET_HW_CAPABILITY: Fetch hardware capabilities. 291 * This uses @QCA_WLAN_VENDOR_ATTR_GET_HW_CAPABILITY to indicate which 292 * capabilities are to be fetched and other 293 * enum qca_wlan_vendor_attr_get_hw_capability attributes to return the 294 * requested capabilities. 295 * 296 * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_EXT: Link layer statistics extension. 297 * enum qca_wlan_vendor_attr_ll_stats_ext attributes are used with this 298 * command and event. 299 * 300 * @QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA: Get capabilities for 301 * indoor location features. Capabilities are reported in 302 * QCA_WLAN_VENDOR_ATTR_LOC_CAPA. 303 * 304 * @QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION: Start an FTM 305 * (fine timing measurement) session with one or more peers. 306 * Specify Session cookie in QCA_WLAN_VENDOR_ATTR_FTM_SESSION_COOKIE and 307 * peer information in QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEERS. 308 * On success, 0 or more QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT 309 * events will be reported, followed by 310 * QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE event to indicate 311 * end of session. 312 * Refer to IEEE P802.11-REVmc/D7.0, 11.24.6 313 * 314 * @QCA_NL80211_VENDOR_SUBCMD_FTM_ABORT_SESSION: Abort a running session. 315 * A QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE will be reported with 316 * status code indicating session was aborted. 317 * 318 * @QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT: Event with measurement 319 * results for one peer. Results are reported in 320 * QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEER_RESULTS. 321 * 322 * @QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE: Event triggered when 323 * FTM session is finished, either successfully or aborted by 324 * request. 325 * 326 * @QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER: Configure FTM responder 327 * mode. QCA_WLAN_VENDOR_ATTR_FTM_RESPONDER_ENABLE specifies whether 328 * to enable or disable the responder. LCI/LCR reports can be 329 * configured with QCA_WLAN_VENDOR_ATTR_FTM_LCI and 330 * QCA_WLAN_VENDOR_ATTR_FTM_LCR. Can be called multiple 331 * times to update the LCI/LCR reports. 332 * 333 * @QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS: Perform a standalone AOA (angle of 334 * arrival) measurement with a single peer. Specify peer MAC address in 335 * QCA_WLAN_VENDOR_ATTR_MAC_ADDR and optionally frequency (MHz) in 336 * QCA_WLAN_VENDOR_ATTR_FREQ (if not specified, locate peer in kernel 337 * scan results cache and use the frequency from there). 338 * Also specify measurement type in QCA_WLAN_VENDOR_ATTR_AOA_TYPE. 339 * Measurement result is reported in 340 * QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT event. 341 * 342 * @QCA_NL80211_VENDOR_SUBCMD_AOA_ABORT_MEAS: Abort an AOA measurement. Specify 343 * peer MAC address in QCA_WLAN_VENDOR_ATTR_MAC_ADDR. 344 * 345 * @QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT: Event that reports 346 * the AOA measurement result. 347 * Peer MAC address reported in QCA_WLAN_VENDOR_ATTR_MAC_ADDR. 348 * success/failure status is reported in 349 * QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS. 350 * Measurement data is reported in QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT. 351 * The antenna array(s) used in the measurement are reported in 352 * QCA_WLAN_VENDOR_ATTR_LOC_ANTENNA_ARRAY_MASK. 353 * 354 * @QCA_NL80211_VENDOR_SUBCMD_ENCRYPTION_TEST: Encrypt/decrypt the given 355 * data as per the given parameters. 356 * 357 * @QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI: Get antenna RSSI value for a 358 * specific chain. 359 * 360 * @QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SECTOR_CFG: Get low level 361 * configuration for a DMG RF sector. Specify sector index in 362 * QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX, sector type in 363 * QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE and RF modules 364 * to return sector information for in 365 * QCA_WLAN_VENDOR_ATTR_DMG_RF_MODULE_MASK. Returns sector configuration 366 * in QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG. Also return the 367 * exact time where information was captured in 368 * QCA_WLAN_VENDOR_ATTR_TSF. 369 * 370 * @QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SECTOR_CFG: Set low level 371 * configuration for a DMG RF sector. Specify sector index in 372 * QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX, sector type in 373 * QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE and sector configuration 374 * for one or more DMG RF modules in 375 * QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG. 376 * 377 * @QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SELECTED_SECTOR: Get selected 378 * DMG RF sector for a station. This is the sector that the HW 379 * will use to communicate with the station. Specify the MAC address 380 * of associated station/AP/PCP in QCA_WLAN_VENDOR_ATTR_MAC_ADDR (not 381 * needed for unassociated station). Specify sector type to return in 382 * QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE. Returns the selected 383 * sector index in QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX. 384 * Also return the exact time where the information was captured 385 * in QCA_WLAN_VENDOR_ATTR_TSF. 386 * 387 * @QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SELECTED_SECTOR: Set the 388 * selected DMG RF sector for a station. This is the sector that 389 * the HW will use to communicate with the station. 390 * Specify the MAC address of associated station/AP/PCP in 391 * QCA_WLAN_VENDOR_ATTR_MAC_ADDR, the sector type to select in 392 * QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE and the sector index 393 * in QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX. 394 * The selected sector will be locked such that it will not be 395 * modified like it normally does (for example when station 396 * moves around). To unlock the selected sector for a station 397 * pass the special value 0xFFFF in the sector index. To unlock 398 * all connected stations also pass a broadcast MAC address. 399 * 400 * @QCA_NL80211_VENDOR_SUBCMD_CONFIGURE_TDLS: Configure the TDLS behavior 401 * in the host driver. The different TDLS configurations are defined 402 * by the attributes in enum qca_wlan_vendor_attr_tdls_configuration. 403 * 404 * @QCA_NL80211_VENDOR_SUBCMD_GET_HE_CAPABILITIES: Query device IEEE 802.11ax HE 405 * capabilities. The response uses the attributes defined in 406 * enum qca_wlan_vendor_attr_get_he_capabilities. 407 * 408 * @QCA_NL80211_VENDOR_SUBCMD_ABORT_SCAN: Abort an ongoing vendor scan that was 409 * started with QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN. This command 410 * carries the scan cookie of the corresponding scan request. The scan 411 * cookie is represented by QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE. 412 * 413 * @QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS: Set the Specific 414 * Absorption Rate (SAR) power limits. A critical regulation for 415 * FCC compliance, OEMs require methods to set SAR limits on TX 416 * power of WLAN/WWAN. enum qca_vendor_attr_sar_limits 417 * attributes are used with this command. 418 * 419 * @QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS: This command/event is used by the 420 * host driver for offloading the implementation of Auto Channel Selection 421 * (ACS) to an external user space entity. This interface is used as the 422 * event from the host driver to the user space entity and also as the 423 * request from the user space entity to the host driver. The event from 424 * the host driver is used by the user space entity as an indication to 425 * start the ACS functionality. The attributes used by this event are 426 * represented by the enum qca_wlan_vendor_attr_external_acs_event. 427 * User space entity uses the same interface to inform the host driver with 428 * selected channels after the ACS operation using the attributes defined 429 * by enum qca_wlan_vendor_attr_external_acs_channels. 430 * 431 * @QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE: Vendor event carrying the 432 * requisite information leading to a power save failure. The information 433 * carried as part of this event is represented by the 434 * enum qca_attr_chip_power_save_failure attributes. 435 * 436 * @QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET: Start/Stop the NUD statistics 437 * collection. Uses attributes defined in enum qca_attr_nud_stats_set. 438 * 439 * @QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET: Get the NUD statistics. These 440 * statistics are represented by the enum qca_attr_nud_stats_get 441 * attributes. 442 * 443 * @QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS: Sub-command to fetch 444 * the BSS transition status, whether accept or reject, for a list of 445 * candidate BSSIDs provided by the userspace. This uses the vendor 446 * attributes QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON and 447 * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO. The userspace shall specify 448 * the attributes QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON and an 449 * array of QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID nested in 450 * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO in the request. In the response 451 * the driver shall specify array of 452 * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID and 453 * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_STATUS pairs nested in 454 * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO. 455 * 456 * @QCA_NL80211_VENDOR_SUBCMD_SET_TRACE_LEVEL: Set the trace level for a 457 * specific QCA module. The trace levels are represented by 458 * enum qca_attr_trace_level attributes. 459 * 460 * @QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT: Set the Beam Refinement 461 * Protocol antenna limit in different modes. See enum 462 * qca_wlan_vendor_attr_brp_ant_limit_mode. 463 * 464 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START: Start spectral scan. The scan 465 * parameters are specified by enum qca_wlan_vendor_attr_spectral_scan. 466 * This returns a cookie (%QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE) 467 * identifying the operation in success case. In failure cases an 468 * error code (%QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_ERROR_CODE) 469 * describing the reason for the failure is returned. 470 * 471 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP: Stop spectral scan. This uses 472 * a cookie (%QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE) from 473 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START to identify the scan to 474 * be stopped. 475 * 476 * @QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS: Set the active Type Of Service on the 477 * specific interface. This can be used to modify some of the low level 478 * scan parameters (off channel dwell time, home channel time) in the 479 * driver/firmware. These parameters are maintained within the host driver. 480 * This command is valid only when the interface is in the connected state. 481 * These scan parameters shall be reset by the driver/firmware once 482 * disconnected. The attributes used with this command are defined in 483 * enum qca_wlan_vendor_attr_active_tos. 484 * 485 * @QCA_NL80211_VENDOR_SUBCMD_HANG: Event indicating to the user space that the 486 * driver has detected an internal failure. This event carries the 487 * information indicating the reason that triggered this detection. The 488 * attributes for this command are defined in 489 * enum qca_wlan_vendor_attr_hang. 490 * 491 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CONFIG: Get the current values 492 * of spectral parameters used. The spectral scan parameters are specified 493 * by enum qca_wlan_vendor_attr_spectral_scan. 494 * 495 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS: Get the debug stats 496 * for spectral scan functionality. The debug stats are specified by 497 * enum qca_wlan_vendor_attr_spectral_diag_stats. 498 * 499 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO: Get spectral 500 * scan system capabilities. The capabilities are specified 501 * by enum qca_wlan_vendor_attr_spectral_cap. 502 * 503 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS: Get the current 504 * status of spectral scan. The status values are specified 505 * by enum qca_wlan_vendor_attr_spectral_scan_status. 506 * 507 * @QCA_NL80211_VENDOR_SUBCMD_PEER_FLUSH_PENDING: Sub-command to flush 508 * peer pending packets. Specify the peer MAC address in 509 * QCA_WLAN_VENDOR_ATTR_PEER_ADDR and the access category of the packets 510 * in QCA_WLAN_VENDOR_ATTR_AC. The attributes are listed 511 * in enum qca_wlan_vendor_attr_flush_pending. 512 * 513 * @QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO: Get vendor specific Representative 514 * RF Operating Parameter (RROP) information. The attributes for this 515 * information are defined in enum qca_wlan_vendor_attr_rrop_info. This is 516 * intended for use by external Auto Channel Selection applications. 517 * 518 * @QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS: Get the Specific Absorption Rate 519 * (SAR) power limits. This is a companion to the command 520 * @QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS and is used to retrieve the 521 * settings currently in use. The attributes returned by this command are 522 * defined by enum qca_vendor_attr_sar_limits. 523 * 524 * @QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO: Provides the current behavior of 525 * the WLAN hardware MAC. Also, provides the WLAN netdev interface 526 * information attached to the respective MAC. 527 * This works both as a query (user space asks the current mode) or event 528 * interface (driver advertising the current mode to the user space). 529 * Driver does not trigger this event for temporary hardware mode changes. 530 * Mode changes w.r.t Wi-Fi connection update (VIZ creation / deletion, 531 * channel change, etc.) are updated with this event. Attributes for this 532 * interface are defined in enum qca_wlan_vendor_attr_mac. 533 * 534 * @QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH: Set MSDU queue depth threshold 535 * per peer per TID. Attributes for this command are define in 536 * enum qca_wlan_set_qdepth_thresh_attr. 537 * @QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD: Provides the thermal shutdown action 538 * guide for WLAN driver. Request to suspend of driver and FW if the 539 * temperature is higher than the suspend threshold; resume action is 540 * requested to driver if the temperature is lower than the resume 541 * threshold. In user poll mode, request temperature data by user. For test 542 * purpose, getting thermal shutdown configuration parameters is needed. 543 * Attributes for this interface are defined in 544 * enum qca_wlan_vendor_attr_thermal_cmd. 545 * @QCA_NL80211_VENDOR_SUBCMD_THERMAL_EVENT: Thermal events reported from 546 * driver. Thermal temperature and indication of resume completion are 547 * reported as thermal events. The attributes for this command are defined 548 * in enum qca_wlan_vendor_attr_thermal_event. 549 * 550 * @QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION: Sub command to set WiFi 551 * test configuration. Attributes for this command are defined in 552 * enum qca_wlan_vendor_attr_wifi_test_config. 553 * 554 * @QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER: This command is used to configure an 555 * RX filter to receive frames from stations that are active on the 556 * operating channel, but not associated with the local device (e.g., STAs 557 * associated with other APs). Filtering is done based on a list of BSSIDs 558 * and STA MAC addresses added by the user. This command is also used to 559 * fetch the statistics of unassociated stations. The attributes used with 560 * this command are defined in enum qca_wlan_vendor_attr_bss_filter. 561 * 562 * @QCA_NL80211_VENDOR_SUBCMD_NAN_EXT: An extendable version of NAN vendor 563 * command. The earlier command for NAN, QCA_NL80211_VENDOR_SUBCMD_NAN, 564 * carried a payload which was a binary blob of data. The command was not 565 * extendable to send more information. The newer version carries the 566 * legacy blob encapsulated within an attribute and can be extended with 567 * additional vendor attributes that can enhance the NAN command interface. 568 * @QCA_NL80211_VENDOR_SUBCMD_ROAM_SCAN_EVENT: Event to indicate scan triggered 569 * or stopped within driver/firmware in order to initiate roaming. The 570 * attributes used with this event are defined in enum 571 * qca_wlan_vendor_attr_roam_scan. Some drivers may not send these events 572 * in few cases, e.g., if the host processor is sleeping when this event 573 * is generated in firmware. 574 * 575 * @QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG: This command is used to 576 * configure parameters per peer to capture Channel Frequency Response 577 * (CFR) and enable Periodic CFR capture. The attributes for this command 578 * are defined in enum qca_wlan_vendor_peer_cfr_capture_attr. This command 579 * can also be used to send CFR data from the driver to userspace when 580 * netlink events are used to send CFR data. 581 * 582 * @QCA_NL80211_VENDOR_SUBCMD_THROUGHPUT_CHANGE_EVENT: Event to indicate changes 583 * in throughput dynamically. The driver estimates the throughput based on 584 * number of packets being transmitted/received per second and indicates 585 * the changes in throughput to user space. Userspace tools can use this 586 * information to configure kernel's TCP parameters in order to achieve 587 * peak throughput. Optionally, the driver will also send guidance on 588 * modifications to kernel's TCP parameters which can be referred by 589 * userspace tools. The attributes used with this event are defined in enum 590 * qca_wlan_vendor_attr_throughput_change. 591 * 592 * @QCA_NL80211_VENDOR_SUBCMD_COEX_CONFIG: This command is used to set 593 * priorities among different types of traffic during coex scenarios. 594 * Current supported prioritization is among WLAN/BT/ZIGBEE with different 595 * profiles mentioned in enum qca_coex_config_profiles. The associated 596 * attributes used with this command are defined in enum 597 * qca_vendor_attr_coex_config. 598 * 599 * Based on the config provided, FW will boost the weight and prioritize 600 * the traffic for that subsystem (WLAN/BT/Zigbee). 601 * 602 * @QCA_NL80211_VENDOR_SUBCMD_GET_SUPPORTED_AKMS: This command is used to query 603 * the supported AKM suite selectorss from the driver. It returns the list 604 * of supported AKMs in the attribute NL80211_ATTR_AKM_SUITES. 605 * @QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE: This command is used to get firmware 606 * state from the driver. It returns the firmware state in the attribute 607 * QCA_WLAN_VENDOR_ATTR_FW_STATE. 608 * @QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH: This vendor subcommand 609 * is used by the driver to flush per-peer cached statistics to user space 610 * application. This interface is used as an event from the driver to 611 * user space application. Attributes for this event are specified in 612 * enum qca_wlan_vendor_attr_peer_stats_cache_params. 613 * QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_DATA attribute is expected to be 614 * sent in the event. 615 * @QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG: This sub command is used to 616 * improve the success rate of Zigbee joining network. 617 * Due to PTA master limitation, Zigbee joining network success rate is 618 * low while WLAN is working. The WLAN driver needs to configure some 619 * parameters including Zigbee state and specific WLAN periods to enhance 620 * PTA master. All these parameters are delivered by the attributes 621 * defined in enum qca_mpta_helper_vendor_attr. 622 * @QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING: This sub command is used to 623 * implement Beacon frame reporting feature. 624 * 625 * Userspace can request the driver/firmware to periodically report 626 * received Beacon frames whose BSSID is same as the current connected 627 * BSS's MAC address. 628 * 629 * In case the STA seamlessly (without sending disconnect indication to 630 * userspace) roams to a different BSS, Beacon frame reporting will be 631 * automatically enabled for the Beacon frames whose BSSID is same as the 632 * MAC address of the new BSS. Beacon reporting will be stopped when the 633 * STA is disconnected (when the disconnect indication is sent to 634 * userspace) and need to be explicitly enabled by userspace for next 635 * connection. 636 * 637 * When a Beacon frame matching configured conditions is received, and if 638 * userspace has requested to send asynchronous beacon reports, the 639 * driver/firmware will encapsulate the details of the Beacon frame in an 640 * event and send it to userspace along with updating the BSS information 641 * in cfg80211 scan cache, otherwise driver will only update the cfg80211 642 * scan cache with the information from the received Beacon frame but will 643 * not send any active report to userspace. 644 * 645 * The userspace can request the driver/firmware to stop reporting Beacon 646 * frames. If the driver/firmware is not able to receive Beacon frames due 647 * to other Wi-Fi operations such as off-channel activities, etc., the 648 * driver/firmware will send a pause event to userspace and stop reporting 649 * Beacon frames. Whether the beacon reporting will be automatically 650 * resumed or not by the driver/firmware later will be reported to 651 * userspace using the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES 652 * flag. The beacon reporting shall be resumed for all the cases except 653 * either when userspace sets 654 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_DO_NOT_RESUME flag in the command 655 * which triggered the current beacon reporting or during any disconnection 656 * case as indicated by setting 657 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAUSE_REASON to 658 * QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_DISCONNECTED by the 659 * driver. 660 * 661 * After QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_PAUSE event is received 662 * by userspace with QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES 663 * flag not set, the next first 664 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO event from the driver 665 * shall be considered as un-pause event. 666 * 667 * All the attributes used with this command are defined in 668 * enum qca_wlan_vendor_attr_beacon_reporting_params. 669 * @QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP: In practice, some APs have 670 * interop issues with the DUT. This sub command is used to transfer the 671 * AP info between the driver and user space. This works both as a command 672 * and an event. As a command, it configures the stored list of APs from 673 * user space to firmware; as an event, it indicates the AP info detected 674 * by the firmware to user space for persistent storage. The attributes 675 * defined in enum qca_vendor_attr_interop_issues_ap are used to deliver 676 * the parameters. 677 * @QCA_NL80211_VENDOR_SUBCMD_OEM_DATA: This command/event is used to 678 * send/receive OEM data binary blobs to/from application/service to/from 679 * firmware. The attributes defined in enum 680 * qca_wlan_vendor_attr_oem_data_params are used to deliver the 681 * parameters. 682 * @QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_EXT: This command/event is used 683 * to send/receive avoid frequency data using 684 * enum qca_wlan_vendor_attr_avoid_frequency_ext. 685 * This new command is alternative to existing command 686 * QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY since existing command/event 687 * is using stream of bytes instead of structured data using vendor 688 * attributes. User space sends unsafe frequency ranges to the driver using 689 * a nested attribute %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_RANGE. On 690 * reception of this command, the driver shall check if an interface is 691 * operating on an unsafe frequency and the driver shall try to move to a 692 * safe channel when needed. If the driver is not able to find a safe 693 * channel the interface can keep operating on an unsafe channel with the 694 * TX power limit derived based on internal configurations like 695 * regulatory/SAR rules. 696 * 697 * @QCA_NL80211_VENDOR_SUBCMD_ADD_STA_NODE: This vendor subcommand is used to 698 * add the STA node details in driver/firmware. Attributes for this event 699 * are specified in enum qca_wlan_vendor_attr_add_sta_node_params. 700 * @QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE: This command is used to set BT 701 * coex chain mode from application/service. 702 * The attributes defined in enum qca_vendor_attr_btc_chain_mode are used 703 * to deliver the parameters. 704 * 705 * @QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO: This vendor subcommand is used to 706 * get information of a station from driver to userspace. This command can 707 * be used in both STA and AP modes. For STA mode, it provides information 708 * of the current association when in connected state or the last 709 * association when in disconnected state. For AP mode, only information 710 * of the currently connected stations is available. This command uses 711 * attributes defined in enum qca_wlan_vendor_attr_get_sta_info. 712 * 713 * @QCA_NL80211_VENDOR_SUBCMD_REQUEST_SAR_LIMITS_EVENT: This acts as an event. 714 * Host drivers can request the user space entity to set the SAR power 715 * limits with this event. Accordingly, the user space entity is expected 716 * to set the SAR power limits. Host drivers can retry this event to the 717 * user space for the SAR power limits configuration from user space. If 718 * the driver does not get the SAR power limits from user space for all 719 * the retried attempts, it can configure a default SAR power limit. 720 * 721 * @QCA_NL80211_VENDOR_SUBCMD_UPDATE_STA_INFO: This acts as a vendor event and 722 * is used to update the information about the station from the driver to 723 * userspace. Uses attributes from enum 724 * qca_wlan_vendor_attr_update_sta_info. 725 * 726 * @QCA_NL80211_VENDOR_SUBCMD_DRIVER_DISCONNECT_REASON: This acts as an event. 727 * The host driver initiates the disconnection for scenarios such as beacon 728 * miss, NUD failure, peer kick out, etc. The disconnection indication 729 * through cfg80211_disconnected() expects the reason codes from enum 730 * ieee80211_reasoncode which does not signify these various reasons why 731 * the driver has triggered the disconnection. This event will be used to 732 * send the driver specific reason codes by the host driver to userspace. 733 * Host drivers should trigger this event and pass the respective reason 734 * code immediately prior to triggering cfg80211_disconnected(). The 735 * attributes used with this event are defined in enum 736 * qca_wlan_vendor_attr_driver_disconnect_reason. 737 * 738 * @QCA_NL80211_VENDOR_SUBCMD_CONFIG_TSPEC: This vendor subcommand is used to 739 * add/delete TSPEC for each AC. One command is for one specific AC only. 740 * This command can only be used in STA mode and the STA must be 741 * associated with an AP when the command is issued. Uses attributes 742 * defined in enum qca_wlan_vendor_attr_config_tspec. 743 * 744 * @QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT: Vendor subcommand to configure TWT. 745 * Uses attributes defined in enum qca_wlan_vendor_attr_config_twt. 746 * 747 * @QCA_NL80211_VENDOR_SUBCMD_GETBAND: Command to get the enabled band(s) from 748 * the driver. The band configurations obtained are referred through 749 * QCA_WLAN_VENDOR_ATTR_SETBAND_MASK. 750 * 751 * @QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS: Vendor subcommand/event for medium 752 * assessment. 753 * Uses attributes defined in enum qca_wlan_vendor_attr_medium_assess. 754 * 755 * @QCA_NL80211_VENDOR_SUBCMD_UPDATE_SSID: This acts as a vendor event and is 756 * used to update SSID information in hostapd when it is updated in the 757 * driver. Uses the attribute NL80211_ATTR_SSID. 758 * 759 * @QCA_NL80211_VENDOR_SUBCMD_WIFI_FW_STATS: This vendor subcommand is used by 760 * the driver to send opaque data from the firmware to userspace. The 761 * driver sends an event to userspace whenever such data is received from 762 * the firmware. 763 * 764 * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA is used as the attribute to 765 * send this opaque data for this event. 766 * 767 * The format of the opaque data is specific to the particular firmware 768 * version and there is no guarantee of the format remaining same. 769 * 770 * @QCA_NL80211_VENDOR_SUBCMD_MBSSID_TX_VDEV_STATUS: This acts as an event. 771 * The host driver selects Tx VDEV, and notifies user. The attributes 772 * used with this event are defined in enum 773 * qca_wlan_vendor_attr_mbssid_tx_vdev_status. 774 * This event contains Tx VDEV group information, other VDEVs 775 * interface index, and status information. 776 * 777 * @QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_POLICY: Vendor command to 778 * configure the concurrent session policies when multiple interfaces 779 * are (getting) active. The attributes used by this command are defined 780 * in enum qca_wlan_vendor_attr_concurrent_policy. 781 * 782 * @QCA_NL80211_VENDOR_SUBCMD_USABLE_CHANNELS: Userspace can use this command 783 * to query usable channels for different interface types such as STA, 784 * AP, P2P GO, P2P Client, NAN, etc. The driver shall report all usable 785 * channels in the response based on country code, different static 786 * configurations, concurrency combinations, etc. The attributes used 787 * with this command are defined in 788 * enum qca_wlan_vendor_attr_usable_channels. 789 * 790 * @QCA_NL80211_VENDOR_SUBCMD_GET_RADAR_HISTORY: This vendor subcommand is used 791 * to get DFS radar history from the driver to userspace. The driver 792 * returns QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_ENTRIES attribute with an 793 * array of nested entries. 794 * 795 * @QCA_NL80211_VENDOR_SUBCMD_MDNS_OFFLOAD: Userspace can use this command to 796 * enable/disable mDNS offload to the firmware. The attributes used with 797 * this command are defined in enum qca_wlan_vendor_attr_mdns_offload. 798 * 799 * @QCA_NL80211_VENDOR_SUBCMD_SET_MONITOR_MODE: This vendor subcommand is used 800 * to set packet monitor mode that aims to send the specified set of TX and 801 * RX frames on the current client interface to an active monitor 802 * interface. If this monitor mode is set, the driver will send the 803 * configured frames, from the interface on which the command is issued, to 804 * an active monitor interface. The attributes used with this command are 805 * defined in enum qca_wlan_vendor_attr_set_monitor_mode. 806 * 807 * Though the monitor mode is configured for the respective 808 * Data/Management/Control frames, it is up to the respective WLAN 809 * driver/firmware/hardware designs to consider the possibility of sending 810 * these frames over the monitor interface. For example, the Control frames 811 * are handled within the hardware and thus passing such frames over the 812 * monitor interface is left to the respective designs. 813 * 814 * Also, this monitor mode is governed to behave accordingly in 815 * suspend/resume states. If the firmware handles any of such frames in 816 * suspend state without waking up the host and if the monitor mode is 817 * configured to notify all such frames, the firmware is expected to resume 818 * the host and forward the respective frames to the monitor interface. 819 * Please note that such a request to get the frames over the monitor 820 * interface will have a definite power implication. 821 * 822 * @QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS: This vendor subcommand is used both 823 * as a request to set the driver/firmware with the parameters to trigger 824 * the roaming events, and also used by the driver/firmware to pass on the 825 * various roam events to userspace. 826 * Applicable only for the STA mode. The attributes used with this command 827 * are defined in enum qca_wlan_vendor_attr_roam_events. 828 * 829 * @QCA_NL80211_VENDOR_SUBCMD_RATEMASK_CONFIG: Subcommand to set or reset the 830 * rate mask config for a list of PHY types. Userspace shall provide an 831 * array of the vendor attributes defined in 832 * enum qca_wlan_vendor_attr_ratemask_params. 833 * 834 * @QCA_NL80211_VENDOR_SUBCMD_MCC_QUOTA: Multi-channel Concurrency (MCC) occurs 835 * when two interfaces are active on the same band, using two different 836 * home channels, and only supported by a single radio. In this scenario 837 * the device must split the use of the radio between the two interfaces. 838 * The percentage of time allocated to a given interface is the quota. 839 * Depending on the configuration, the quota can either be fixed or 840 * dynamic. 841 * 842 * When used as an event, the device will report the quota type, and for 843 * all interfaces operating in MCC it will report the current quota. 844 * When used as a command, the device can be configured for a specific 845 * quota type, and in the case of a fixed quota, the quota to apply to one 846 * of the interfaces. 847 * 848 * Applications can use the event to do TX bitrate control based on the 849 * information, and can use the command to explicitly set the quota to 850 * enhance performance in specific scenarios. 851 * 852 * The attributes used with this command are defined in 853 * enum qca_wlan_vendor_attr_mcc_quota. 854 * 855 * @QCA_NL80211_VENDOR_SUBCMD_GET_RADIO_COMBINATION_MATRIX: Vendor command to 856 * get the WLAN radio combinations matrix supported by the device which 857 * provides the device simultaneous radio configurations such as 858 * standalone, dual band simultaneous, and single band simultaneous. 859 * 860 * The attributes used with this command are defined in 861 * enum qca_wlan_vendor_attr_radio_combination_matrix. 862 * 863 * @QCA_NL80211_VENDOR_SUBCMD_DRIVER_READY: Event indicating to the user space 864 * that the driver is ready for operations again after recovering from 865 * internal failures. This occurs following a failure that was indicated by 866 * @QCA_NL80211_VENDOR_SUBCMD_HANG. 867 * 868 * @QCA_NL80211_VENDOR_SUBCMD_PASN: Subcommand used to offload preassociation 869 * security negotiation and key generation to user space. 870 * 871 * When used as an event, the driver requests userspace to trigger the PASN 872 * authentication or dropping of a PTKSA for the indicated peer devices. 873 * When used as a command response, userspace indicates a consolidated 874 * status report for all the peers that were requested for. 875 * 876 * The attributes used with this command are defined in 877 * enum qca_wlan_vendor_attr_pasn. 878 * 879 * @QCA_NL80211_VENDOR_SUBCMD_SECURE_RANGING_CONTEXT: Subcommand used to set 880 * secure ranging context such as TK and LTF keyseed for each peer 881 * requested by the driver with a @QCA_NL80211_VENDOR_SUBCMD_PASN event. 882 * 883 * The attributes used with this command are defined in 884 * enum qca_wlan_vendor_attr_secure_ranging_ctx. 885 * 886 * @QCA_NL80211_VENDOR_SUBCMD_COAP_OFFLOAD: This vendor subcommand is used to 887 * enable/disable offload processing in firmware during system/runtime 888 * suspend for CoAP messages (see RFC7252: The Constrained Application 889 * Protocol) and fetch information of the CoAP messages cached during 890 * offload processing. 891 * 892 * The attributes used with this command are defined in 893 * enum qca_wlan_vendor_attr_coap_offload. 894 * 895 * @QCA_NL80211_VENDOR_SUBCMD_SCS_RULE_CONFIG: Subcommand to configure 896 * (add, remove, or change) a Stream Classification Service (SCS) rule. 897 * 898 * The attributes used with this event are defined in 899 * enum qca_wlan_vendor_attr_scs_rule_config. 900 * 901 * @QCA_NL80211_VENDOR_SUBCMD_GET_SAR_CAPABILITY: Fetch SAR capabilities 902 * supported by the WLAN firmware. 903 * 904 * The attributes used with this command are defined in 905 * enum qca_wlan_vendor_attr_sar_capability. 906 * 907 * @QCA_NL80211_VENDOR_SUBCMD_SR: Subcommand used to implement Spatial Reuse 908 * (SR) feature. This command is used by userspace to configure SR 909 * parameters to the driver and to get the SR related parameters and 910 * statistics with synchronous responses from the driver. 911 * The driver also uses this command to send asynchronous events to 912 * userspace to indicate suspend/resume of SR feature and changes 913 * in SR parameters. 914 * 915 * The attributes used with this command are defined in 916 * enum qca_wlan_vendor_attr_sr. 917 * 918 * @QCA_NL80211_VENDOR_SUBCMD_MLO_PEER_PRIM_NETDEV_EVENT: Subcommand used to 919 * notify application layer about the primary netdev of an MLO connection. 920 * In some implementations, MLO has multiple netdevs out of which one 921 * netdev is designated as primary to provide a unified interface to the 922 * bridge. In those implementations this event is sent on every MLO peer 923 * connection. User applications on an AP MLD will use this event to get 924 * info for all the links from non-AP MLD that were negotiated to be used 925 * for the ML association. 926 * 927 * The attributes used with this event are defined in 928 * enum qca_wlan_vendor_attr_mlo_peer_prim_netdev_event. 929 * 930 * @QCA_NL80211_VENDOR_SUBCMD_AFC_EVENT: This vendor command is used by the 931 * driver to notify different AFC events to userspace. The attributes used 932 * with this command are defined in enum qca_wlan_vendor_attr_afc_event. 933 * 934 * @QCA_NL80211_VENDOR_SUBCMD_AFC_RESPONSE: This vendor command is used by 935 * userspace to deliver AFC response data to driver. The attributes used 936 * with this command are defined in enum qca_wlan_vendor_attr_afc_response. 937 * 938 * @QCA_NL80211_VENDOR_SUBCMD_DOZED_AP: Subcommand to configure AP interface to 939 * operate in doze mode. 940 * 941 * Userspace uses this command to configure the AP interface to enter or 942 * exit from doze mode. The driver sends this event after it enters or 943 * exits the doze mode with the updated AP doze mode settings. 944 * 945 * The attributes used with this subcommand are defined in 946 * enum qca_wlan_vendor_attr_dozed_ap. 947 * 948 * @QCA_NL80211_VENDOR_SUBCMD_GET_MONITOR_MODE: This vendor subcommand is used 949 * to get the status of local packet capture of monitor mode. The monitor 950 * mode can be started using QCA_NL80211_VENDOR_SUBCMD_SET_MONITOR_MODE 951 * subcommand. 952 * 953 * The attributes used with this command are defined in enum 954 * qca_wlan_vendor_attr_get_monitor_mode. 955 * 956 * @QCA_NL80211_VENDOR_SUBCMD_ROAM_STATS: This vendor command is used to 957 * get roam information from the driver to user space. It provides the 958 * latest several instances of roam information cached in the driver. 959 * The command is only used for STA mode. The attributes used with this 960 * command are defined in enum qca_wlan_vendor_attr_roam_cached_stats. 961 * 962 * @QCA_NL80211_VENDOR_SUBCMD_MLO_LINK_STATE: This vendor subcommand is used to 963 * configure and fetch the state information of the MLO links affiliated 964 * with the STA interface. The attributes used with this command are 965 * defined in enum qca_wlan_vendor_attr_mlo_link_state. 966 * 967 * @QCA_NL80211_VENDOR_SUBCMD_CONNECTED_CHANNEL_STATS: Userspace can use this 968 * vendor subcommand to trigger channel utilization measurement on entire 969 * channel width of the connected channel(s). For MLO connection, connected 970 * channel utilization measurement shall be done on all the MLO links. 971 * The driver may use regular scan or wideband energy detection feature 972 * based on the hardware capability for connected channel(s) utilization 973 * measurement. The driver indicates the connected channel(s) utilization 974 * measurement completion as an asynchronous event with this command ID to 975 * userspace. Upon receiving this event, userspace can use 976 * %NL80211_CMD_GET_INTERFACE to determine the channel width of the current 977 * connected channel(s) and can derive the channel utilization percentage 978 * (CU) of each 20 MHz sub-channel of the entire connected channel using 979 * %NL80211_CMD_GET_SURVEY response. 980 * CU = %NL80211_SURVEY_INFO_TIME_BUSY * 100 / %NL80211_SURVEY_INFO_TIME. 981 * This command is only used for STA mode. 982 * 983 * @QCA_NL80211_VENDOR_SUBCMD_TID_TO_LINK_MAP: This vendor subcommand is 984 * used as an event to notify the userspace of TID-to-link map changes 985 * negotiated by the driver or updated by associated AP MLD with Beacon, 986 * Probe Response, or Action frames. The attributes used with this command 987 * are defined in enum qca_wlan_vendor_attr_tid_to_link_map. 988 * 989 * Note that the attribute 990 * %QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_AP_MLD_ADDR may not correspond to 991 * the current connected AP MLD address. 992 * 993 * @QCA_NL80211_VENDOR_SUBCMD_LINK_RECONFIG: Notify userspace about the removal 994 * of STA MLD setup links due to the AP MLD removing the corresponding 995 * affiliated APs with Multi-Link reconfiguration. If all the STA MLD setup 996 * links are removed during Multi-Link reconfiguration, the driver shall 997 * use %NL80211_CMD_DISCONNECT instead of this command since it is a 998 * connection drop. The attributes used with this command are defined in 999 * enum qca_wlan_vendor_attr_link_reconfig. 1000 * Note that the attribute 1001 * %QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_AP_MLD_ADDR may not correspond to 1002 * the current connected AP MLD address. 1003 * 1004 * @QCA_NL80211_VENDOR_SUBCMD_TDLS_DISC_RSP_EXT: Vendor command to configure 1005 * the driver with MLO link id information on which to transmit the TDLS 1006 * discovery response frame on the configured MLO BSS link when the 1007 * local station is connected in MLO mode. This command is sent to the 1008 * driver prior to the TDLS discovery response management transmit 1009 * operation and is followed immediately by the TDLS discovery response 1010 * management frame transmit command. 1011 * 1012 * The driver saves the configured MLO link id information and uses it for 1013 * the following TDLS discovery response frame transmission on the 1014 * configured MLO BSS link and the link id information is cleared in the 1015 * driver after the TDLS discovery response frame is successfully 1016 * transmitted. This behavior is indepent of the TDLS peer STA connection 1017 * mode (MLO or non-MLO). 1018 * 1019 * Uses the attributes defined in 1020 * enum qca_wlan_vendor_attr_tdls_disc_rsp_ext. 1021 * 1022 * @QCA_NL80211_VENDOR_SUBCMD_TX_LATENCY: This vendor subcommand is used to 1023 * configure, retrieve, and report per-link transmit latency statistics. 1024 * 1025 * The attributes used with this subcommand are defined in 1026 * enum qca_wlan_vendor_attr_tx_latency. 1027 */ 1028 enum qca_nl80211_vendor_subcmds { 1029 QCA_NL80211_VENDOR_SUBCMD_UNSPEC = 0, 1030 QCA_NL80211_VENDOR_SUBCMD_TEST = 1, 1031 /* subcmds 2..8 not yet allocated */ 1032 QCA_NL80211_VENDOR_SUBCMD_ROAMING = 9, 1033 QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY = 10, 1034 QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY = 11, 1035 QCA_NL80211_VENDOR_SUBCMD_NAN = 12, 1036 QCA_NL80211_VENDOR_SUBCMD_STATS_EXT = 13, 1037 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_SET = 14, 1038 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET = 15, 1039 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_CLR = 16, 1040 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_RADIO_RESULTS = 17, 1041 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_IFACE_RESULTS = 18, 1042 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_PEERS_RESULTS = 19, 1043 QCA_NL80211_VENDOR_SUBCMD_GSCAN_START = 20, 1044 QCA_NL80211_VENDOR_SUBCMD_GSCAN_STOP = 21, 1045 QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_VALID_CHANNELS = 22, 1046 QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_CAPABILITIES = 23, 1047 QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_CACHED_RESULTS = 24, 1048 QCA_NL80211_VENDOR_SUBCMD_GSCAN_SCAN_RESULTS_AVAILABLE = 25, 1049 QCA_NL80211_VENDOR_SUBCMD_GSCAN_FULL_SCAN_RESULT = 26, 1050 QCA_NL80211_VENDOR_SUBCMD_GSCAN_SCAN_EVENT = 27, 1051 QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_AP_FOUND = 28, 1052 QCA_NL80211_VENDOR_SUBCMD_GSCAN_SET_BSSID_HOTLIST = 29, 1053 QCA_NL80211_VENDOR_SUBCMD_GSCAN_RESET_BSSID_HOTLIST = 30, 1054 QCA_NL80211_VENDOR_SUBCMD_GSCAN_SIGNIFICANT_CHANGE = 31, 1055 QCA_NL80211_VENDOR_SUBCMD_GSCAN_SET_SIGNIFICANT_CHANGE = 32, 1056 QCA_NL80211_VENDOR_SUBCMD_GSCAN_RESET_SIGNIFICANT_CHANGE = 33, 1057 QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE = 34, 1058 QCA_NL80211_VENDOR_SUBCMD_TDLS_DISABLE = 35, 1059 QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS = 36, 1060 QCA_NL80211_VENDOR_SUBCMD_TDLS_STATE = 37, 1061 QCA_NL80211_VENDOR_SUBCMD_GET_SUPPORTED_FEATURES = 38, 1062 QCA_NL80211_VENDOR_SUBCMD_SCANNING_MAC_OUI = 39, 1063 QCA_NL80211_VENDOR_SUBCMD_NO_DFS_FLAG = 40, 1064 QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_AP_LOST = 41, 1065 QCA_NL80211_VENDOR_SUBCMD_GET_CONCURRENCY_MATRIX = 42, 1066 /* 43..49 - reserved for QCA */ 1067 QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_SET_KEY = 50, 1068 QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_ROAM_AUTH = 51, 1069 QCA_NL80211_VENDOR_SUBCMD_APFIND = 52, 1070 /* 53 - reserved - was used by QCA, but not in use anymore */ 1071 QCA_NL80211_VENDOR_SUBCMD_DO_ACS = 54, 1072 QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES = 55, 1073 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_STARTED = 56, 1074 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_FINISHED = 57, 1075 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_ABORTED = 58, 1076 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_NOP_FINISHED = 59, 1077 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_RADAR_DETECTED = 60, 1078 QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_INFO = 61, 1079 QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_START = 62, 1080 QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_MEMORY_DUMP = 63, 1081 QCA_NL80211_VENDOR_SUBCMD_ROAM = 64, 1082 QCA_NL80211_VENDOR_SUBCMD_GSCAN_SET_SSID_HOTLIST = 65, 1083 QCA_NL80211_VENDOR_SUBCMD_GSCAN_RESET_SSID_HOTLIST = 66, 1084 QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_SSID_FOUND = 67, 1085 QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_SSID_LOST = 68, 1086 QCA_NL80211_VENDOR_SUBCMD_PNO_SET_LIST = 69, 1087 QCA_NL80211_VENDOR_SUBCMD_PNO_SET_PASSPOINT_LIST = 70, 1088 QCA_NL80211_VENDOR_SUBCMD_PNO_RESET_PASSPOINT_LIST = 71, 1089 QCA_NL80211_VENDOR_SUBCMD_PNO_NETWORK_FOUND = 72, 1090 QCA_NL80211_VENDOR_SUBCMD_PNO_PASSPOINT_NETWORK_FOUND = 73, 1091 /* Wi-Fi configuration subcommands */ 1092 QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION = 74, 1093 QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION = 75, 1094 QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET = 76, 1095 QCA_NL80211_VENDOR_SUBCMD_GET_RING_DATA = 77, 1096 QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_CAPABILITIES = 78, 1097 QCA_NL80211_VENDOR_SUBCMD_OFFLOADED_PACKETS = 79, 1098 QCA_NL80211_VENDOR_SUBCMD_MONITOR_RSSI = 80, 1099 QCA_NL80211_VENDOR_SUBCMD_NDP = 81, 1100 QCA_NL80211_VENDOR_SUBCMD_ND_OFFLOAD = 82, 1101 QCA_NL80211_VENDOR_SUBCMD_PACKET_FILTER = 83, 1102 QCA_NL80211_VENDOR_SUBCMD_GET_BUS_SIZE = 84, 1103 QCA_NL80211_VENDOR_SUBCMD_GET_WAKE_REASON_STATS = 85, 1104 /* 86-90 - reserved for QCA */ 1105 QCA_NL80211_VENDOR_SUBCMD_DATA_OFFLOAD = 91, 1106 QCA_NL80211_VENDOR_SUBCMD_OCB_SET_CONFIG = 92, 1107 QCA_NL80211_VENDOR_SUBCMD_OCB_SET_UTC_TIME = 93, 1108 QCA_NL80211_VENDOR_SUBCMD_OCB_START_TIMING_ADVERT = 94, 1109 QCA_NL80211_VENDOR_SUBCMD_OCB_STOP_TIMING_ADVERT = 95, 1110 QCA_NL80211_VENDOR_SUBCMD_OCB_GET_TSF_TIMER = 96, 1111 QCA_NL80211_VENDOR_SUBCMD_DCC_GET_STATS = 97, 1112 QCA_NL80211_VENDOR_SUBCMD_DCC_CLEAR_STATS = 98, 1113 QCA_NL80211_VENDOR_SUBCMD_DCC_UPDATE_NDL = 99, 1114 QCA_NL80211_VENDOR_SUBCMD_DCC_STATS_EVENT = 100, 1115 QCA_NL80211_VENDOR_SUBCMD_LINK_PROPERTIES = 101, 1116 QCA_NL80211_VENDOR_SUBCMD_GW_PARAM_CONFIG = 102, 1117 QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST = 103, 1118 QCA_NL80211_VENDOR_SUBCMD_SET_PROBABLE_OPER_CHANNEL = 104, 1119 QCA_NL80211_VENDOR_SUBCMD_SETBAND = 105, 1120 QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN = 106, 1121 QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE = 107, 1122 QCA_NL80211_VENDOR_SUBCMD_OTA_TEST = 108, 1123 QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE = 109, 1124 /* 110..114 - reserved for QCA */ 1125 QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_DECR_DB = 115, 1126 QCA_NL80211_VENDOR_SUBCMD_ACS_POLICY = 116, 1127 /* 117 - reserved for QCA */ 1128 QCA_NL80211_VENDOR_SUBCMD_SET_SAP_CONFIG = 118, 1129 QCA_NL80211_VENDOR_SUBCMD_TSF = 119, 1130 QCA_NL80211_VENDOR_SUBCMD_WISA = 120, 1131 /* 121 - reserved for QCA */ 1132 QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_START = 122, 1133 QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_STOP = 123, 1134 QCA_NL80211_VENDOR_SUBCMD_SAP_CONDITIONAL_CHAN_SWITCH = 124, 1135 QCA_NL80211_VENDOR_SUBCMD_GPIO_CONFIG_COMMAND = 125, 1136 QCA_NL80211_VENDOR_SUBCMD_GET_HW_CAPABILITY = 126, 1137 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_EXT = 127, 1138 /* FTM/indoor location subcommands */ 1139 QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA = 128, 1140 QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION = 129, 1141 QCA_NL80211_VENDOR_SUBCMD_FTM_ABORT_SESSION = 130, 1142 QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT = 131, 1143 QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE = 132, 1144 QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER = 133, 1145 QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS = 134, 1146 QCA_NL80211_VENDOR_SUBCMD_AOA_ABORT_MEAS = 135, 1147 QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT = 136, 1148 QCA_NL80211_VENDOR_SUBCMD_ENCRYPTION_TEST = 137, 1149 QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI = 138, 1150 /* DMG low level RF sector operations */ 1151 QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SECTOR_CFG = 139, 1152 QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SECTOR_CFG = 140, 1153 QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SELECTED_SECTOR = 141, 1154 QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SELECTED_SECTOR = 142, 1155 QCA_NL80211_VENDOR_SUBCMD_CONFIGURE_TDLS = 143, 1156 QCA_NL80211_VENDOR_SUBCMD_GET_HE_CAPABILITIES = 144, 1157 QCA_NL80211_VENDOR_SUBCMD_ABORT_SCAN = 145, 1158 QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS = 146, 1159 QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS = 147, 1160 QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE = 148, 1161 QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET = 149, 1162 QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET = 150, 1163 QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS = 151, 1164 QCA_NL80211_VENDOR_SUBCMD_SET_TRACE_LEVEL = 152, 1165 QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT = 153, 1166 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START = 154, 1167 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP = 155, 1168 QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS = 156, 1169 QCA_NL80211_VENDOR_SUBCMD_HANG = 157, 1170 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CONFIG = 158, 1171 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS = 159, 1172 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO = 160, 1173 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS = 161, 1174 /* Flush peer pending data */ 1175 QCA_NL80211_VENDOR_SUBCMD_PEER_FLUSH_PENDING = 162, 1176 QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO = 163, 1177 QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS = 164, 1178 QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO = 165, 1179 QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH = 166, 1180 /* Thermal shutdown commands to protect wifi chip */ 1181 QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD = 167, 1182 QCA_NL80211_VENDOR_SUBCMD_THERMAL_EVENT = 168, 1183 /* Wi-Fi test configuration subcommand */ 1184 QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION = 169, 1185 /* Frame filter operations for other BSSs/unassociated STAs */ 1186 QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER = 170, 1187 QCA_NL80211_VENDOR_SUBCMD_NAN_EXT = 171, 1188 QCA_NL80211_VENDOR_SUBCMD_ROAM_SCAN_EVENT = 172, 1189 QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG = 173, 1190 QCA_NL80211_VENDOR_SUBCMD_THROUGHPUT_CHANGE_EVENT = 174, 1191 QCA_NL80211_VENDOR_SUBCMD_COEX_CONFIG = 175, 1192 QCA_NL80211_VENDOR_SUBCMD_GET_SUPPORTED_AKMS = 176, 1193 QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE = 177, 1194 QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH = 178, 1195 QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG = 179, 1196 QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING = 180, 1197 QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP = 181, 1198 QCA_NL80211_VENDOR_SUBCMD_OEM_DATA = 182, 1199 QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_EXT = 183, 1200 QCA_NL80211_VENDOR_SUBCMD_ADD_STA_NODE = 184, 1201 QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE = 185, 1202 QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO = 186, 1203 QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS_EVENT = 187, 1204 QCA_NL80211_VENDOR_SUBCMD_UPDATE_STA_INFO = 188, 1205 QCA_NL80211_VENDOR_SUBCMD_DRIVER_DISCONNECT_REASON = 189, 1206 QCA_NL80211_VENDOR_SUBCMD_CONFIG_TSPEC = 190, 1207 QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT = 191, 1208 QCA_NL80211_VENDOR_SUBCMD_GETBAND = 192, 1209 QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS = 193, 1210 QCA_NL80211_VENDOR_SUBCMD_UPDATE_SSID = 194, 1211 QCA_NL80211_VENDOR_SUBCMD_WIFI_FW_STATS = 195, 1212 QCA_NL80211_VENDOR_SUBCMD_MBSSID_TX_VDEV_STATUS = 196, 1213 QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_POLICY = 197, 1214 QCA_NL80211_VENDOR_SUBCMD_USABLE_CHANNELS = 198, 1215 QCA_NL80211_VENDOR_SUBCMD_GET_RADAR_HISTORY = 199, 1216 QCA_NL80211_VENDOR_SUBCMD_MDNS_OFFLOAD = 200, 1217 /* 201 - reserved for QCA */ 1218 QCA_NL80211_VENDOR_SUBCMD_SET_MONITOR_MODE = 202, 1219 QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS = 203, 1220 QCA_NL80211_VENDOR_SUBCMD_RATEMASK_CONFIG = 204, 1221 QCA_NL80211_VENDOR_SUBCMD_MCC_QUOTA = 205, 1222 /* 206..212 - reserved for QCA */ 1223 QCA_NL80211_VENDOR_SUBCMD_GET_RADIO_COMBINATION_MATRIX = 213, 1224 QCA_NL80211_VENDOR_SUBCMD_DRIVER_READY = 214, 1225 QCA_NL80211_VENDOR_SUBCMD_PASN = 215, 1226 QCA_NL80211_VENDOR_SUBCMD_SECURE_RANGING_CONTEXT = 216, 1227 QCA_NL80211_VENDOR_SUBCMD_COAP_OFFLOAD = 217, 1228 QCA_NL80211_VENDOR_SUBCMD_SCS_RULE_CONFIG = 218, 1229 QCA_NL80211_VENDOR_SUBCMD_GET_SAR_CAPABILITY = 219, 1230 QCA_NL80211_VENDOR_SUBCMD_SR = 220, 1231 QCA_NL80211_VENDOR_SUBCMD_MLO_PEER_PRIM_NETDEV_EVENT = 221, 1232 QCA_NL80211_VENDOR_SUBCMD_AFC_EVENT = 222, 1233 QCA_NL80211_VENDOR_SUBCMD_AFC_RESPONSE = 223, 1234 QCA_NL80211_VENDOR_SUBCMD_DOZED_AP = 224, 1235 QCA_NL80211_VENDOR_SUBCMD_GET_MONITOR_MODE = 225, 1236 QCA_NL80211_VENDOR_SUBCMD_ROAM_STATS = 226, 1237 QCA_NL80211_VENDOR_SUBCMD_MLO_LINK_STATE = 227, 1238 QCA_NL80211_VENDOR_SUBCMD_CONNECTED_CHANNEL_STATS = 228, 1239 QCA_NL80211_VENDOR_SUBCMD_TID_TO_LINK_MAP = 229, 1240 QCA_NL80211_VENDOR_SUBCMD_LINK_RECONFIG = 230, 1241 QCA_NL80211_VENDOR_SUBCMD_TDLS_DISC_RSP_EXT = 231, 1242 /* 232 - reserved for QCA */ 1243 QCA_NL80211_VENDOR_SUBCMD_TX_LATENCY = 233, 1244 /* 234 - reserved for QCA */ 1245 }; 1246 1247 /* Compatibility defines for previously used subcmd names. 1248 * These values should not be used in any new implementation. 1249 */ 1250 #define QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_MULTI_STA_POLICY \ 1251 QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_POLICY 1252 1253 enum qca_wlan_vendor_attr { 1254 QCA_WLAN_VENDOR_ATTR_INVALID = 0, 1255 /* used by QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY */ 1256 QCA_WLAN_VENDOR_ATTR_DFS = 1, 1257 /* Used only when driver sends vendor events to the userspace under the 1258 * command QCA_NL80211_VENDOR_SUBCMD_NAN. Not used when userspace sends 1259 * commands to the driver. 1260 */ 1261 QCA_WLAN_VENDOR_ATTR_NAN = 2, 1262 /* used by QCA_NL80211_VENDOR_SUBCMD_STATS_EXT */ 1263 QCA_WLAN_VENDOR_ATTR_STATS_EXT = 3, 1264 /* used by QCA_NL80211_VENDOR_SUBCMD_STATS_EXT */ 1265 QCA_WLAN_VENDOR_ATTR_IFINDEX = 4, 1266 /* used by QCA_NL80211_VENDOR_SUBCMD_ROAMING, u32 with values defined 1267 * by enum qca_roaming_policy. 1268 */ 1269 QCA_WLAN_VENDOR_ATTR_ROAMING_POLICY = 5, 1270 QCA_WLAN_VENDOR_ATTR_MAC_ADDR = 6, 1271 /* used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES */ 1272 QCA_WLAN_VENDOR_ATTR_FEATURE_FLAGS = 7, 1273 QCA_WLAN_VENDOR_ATTR_TEST = 8, 1274 /* used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES */ 1275 /* Unsigned 32-bit value. */ 1276 QCA_WLAN_VENDOR_ATTR_CONCURRENCY_CAPA = 9, 1277 /* Unsigned 32-bit value */ 1278 QCA_WLAN_VENDOR_ATTR_MAX_CONCURRENT_CHANNELS_2_4_BAND = 10, 1279 /* Unsigned 32-bit value */ 1280 QCA_WLAN_VENDOR_ATTR_MAX_CONCURRENT_CHANNELS_5_0_BAND = 11, 1281 /* Unsigned 32-bit value from enum qca_set_band. The allowed values for 1282 * this attribute are limited to QCA_SETBAND_AUTO, QCA_SETBAND_5G, and 1283 * QCA_SETBAND_2G. This attribute is deprecated. Recommendation is to 1284 * use QCA_WLAN_VENDOR_ATTR_SETBAND_MASK instead. 1285 */ 1286 QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE = 12, 1287 /* Attribute used for padding for 64-bit alignment */ 1288 QCA_WLAN_VENDOR_ATTR_PAD = 13, 1289 /* Unique FTM session cookie (Unsigned 64 bit). Specified in 1290 * QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION. Reported in 1291 * the session in QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT and 1292 * QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE. 1293 */ 1294 QCA_WLAN_VENDOR_ATTR_FTM_SESSION_COOKIE = 14, 1295 /* Indoor location capabilities, returned by 1296 * QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA. 1297 * see enum qca_wlan_vendor_attr_loc_capa. 1298 */ 1299 QCA_WLAN_VENDOR_ATTR_LOC_CAPA = 15, 1300 /* Array of nested attributes containing information about each peer 1301 * in FTM measurement session. See enum qca_wlan_vendor_attr_peer_info 1302 * for supported attributes for each peer. 1303 */ 1304 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEERS = 16, 1305 /* Array of nested attributes containing measurement results for 1306 * one or more peers, reported by the 1307 * QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT event. 1308 * See enum qca_wlan_vendor_attr_peer_result for list of supported 1309 * attributes. 1310 */ 1311 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEER_RESULTS = 17, 1312 /* Flag attribute for enabling or disabling responder functionality. */ 1313 QCA_WLAN_VENDOR_ATTR_FTM_RESPONDER_ENABLE = 18, 1314 /* Used in the QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER 1315 * command to specify the LCI report that will be sent by 1316 * the responder during a measurement exchange. The format is 1317 * defined in IEEE P802.11-REVmc/D7.0, 9.4.2.22.10. 1318 */ 1319 QCA_WLAN_VENDOR_ATTR_FTM_LCI = 19, 1320 /* Used in the QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER 1321 * command to specify the location civic report that will 1322 * be sent by the responder during a measurement exchange. 1323 * The format is defined in IEEE P802.11-REVmc/D7.0, 9.4.2.22.13. 1324 */ 1325 QCA_WLAN_VENDOR_ATTR_FTM_LCR = 20, 1326 /* Session/measurement completion status code, 1327 * reported in QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE and 1328 * QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT 1329 * see enum qca_vendor_attr_loc_session_status. 1330 */ 1331 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS = 21, 1332 /* Initial dialog token used by responder (0 if not specified), 1333 * unsigned 8 bit value. 1334 */ 1335 QCA_WLAN_VENDOR_ATTR_FTM_INITIAL_TOKEN = 22, 1336 /* AOA measurement type. Requested in QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS 1337 * and optionally in QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION if 1338 * AOA measurements are needed as part of an FTM session. 1339 * Reported by QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT. See 1340 * enum qca_wlan_vendor_attr_aoa_type. 1341 */ 1342 QCA_WLAN_VENDOR_ATTR_AOA_TYPE = 23, 1343 /* A bit mask (unsigned 32 bit value) of antenna arrays used 1344 * by indoor location measurements. Refers to the antenna 1345 * arrays described by QCA_VENDOR_ATTR_LOC_CAPA_ANTENNA_ARRAYS. 1346 */ 1347 QCA_WLAN_VENDOR_ATTR_LOC_ANTENNA_ARRAY_MASK = 24, 1348 /* AOA measurement data. Its contents depends on the AOA measurement 1349 * type and antenna array mask: 1350 * QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE: array of U16 values, 1351 * phase of the strongest CIR path for each antenna in the measured 1352 * array(s). 1353 * QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP: array of 2 U16 1354 * values, phase and amplitude of the strongest CIR path for each 1355 * antenna in the measured array(s). 1356 */ 1357 QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT = 25, 1358 /* Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command 1359 * to specify the chain number (unsigned 32 bit value) to inquire 1360 * the corresponding antenna RSSI value 1361 */ 1362 QCA_WLAN_VENDOR_ATTR_CHAIN_INDEX = 26, 1363 /* Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command 1364 * to report the specific antenna RSSI value (unsigned 32 bit value) 1365 */ 1366 QCA_WLAN_VENDOR_ATTR_CHAIN_RSSI = 27, 1367 /* Frequency in MHz, various uses. Unsigned 32 bit value */ 1368 QCA_WLAN_VENDOR_ATTR_FREQ = 28, 1369 /* TSF timer value, unsigned 64 bit value. 1370 * May be returned by various commands. 1371 */ 1372 QCA_WLAN_VENDOR_ATTR_TSF = 29, 1373 /* DMG RF sector index, unsigned 16 bit number. Valid values are 1374 * 0..127 for sector indices or 65535 as special value used to 1375 * unlock sector selection in 1376 * QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SELECTED_SECTOR. 1377 */ 1378 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX = 30, 1379 /* DMG RF sector type, unsigned 8 bit value. One of the values 1380 * in enum qca_wlan_vendor_attr_dmg_rf_sector_type. 1381 */ 1382 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE = 31, 1383 /* Bitmask of DMG RF modules for which information is requested. Each 1384 * bit corresponds to an RF module with the same index as the bit 1385 * number. Unsigned 32 bit number but only low 8 bits can be set since 1386 * all DMG chips currently have up to 8 RF modules. 1387 */ 1388 QCA_WLAN_VENDOR_ATTR_DMG_RF_MODULE_MASK = 32, 1389 /* Array of nested attributes where each entry is DMG RF sector 1390 * configuration for a single RF module. 1391 * Attributes for each entry are taken from enum 1392 * qca_wlan_vendor_attr_dmg_rf_sector_cfg. 1393 * Specified in QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SECTOR_CFG 1394 * and returned by QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SECTOR_CFG. 1395 */ 1396 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG = 33, 1397 /* Used in QCA_NL80211_VENDOR_SUBCMD_STATS_EXT command 1398 * to report frame aggregation statistics to userspace. 1399 */ 1400 QCA_WLAN_VENDOR_ATTR_RX_AGGREGATION_STATS_HOLES_NUM = 34, 1401 QCA_WLAN_VENDOR_ATTR_RX_AGGREGATION_STATS_HOLES_INFO = 35, 1402 /* Unsigned 8-bit value representing MBO transition reason code as 1403 * provided by the AP used by subcommand 1404 * QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS. This is 1405 * specified by the userspace in the request to the driver. 1406 */ 1407 QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON = 36, 1408 /* Array of nested attributes, BSSID and status code, used by subcommand 1409 * QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS, where each 1410 * entry is taken from enum qca_wlan_vendor_attr_btm_candidate_info. 1411 * The userspace space specifies the list/array of candidate BSSIDs in 1412 * the order of preference in the request. The driver specifies the 1413 * status code, for each BSSID in the list, in the response. The 1414 * acceptable candidates are listed in the order preferred by the 1415 * driver. 1416 */ 1417 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO = 37, 1418 /* Used in QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT command 1419 * See enum qca_wlan_vendor_attr_brp_ant_limit_mode. 1420 */ 1421 QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE = 38, 1422 /* Used in QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT command 1423 * to define the number of antennas to use for BRP. 1424 * different purpose in each ANT_LIMIT_MODE: 1425 * DISABLE - ignored 1426 * EFFECTIVE - upper limit to number of antennas to be used 1427 * FORCE - exact number of antennas to be used 1428 * unsigned 8 bit value 1429 */ 1430 QCA_WLAN_VENDOR_ATTR_BRP_ANT_NUM_LIMIT = 39, 1431 /* Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command 1432 * to report the corresponding antenna index to the chain RSSI value 1433 */ 1434 QCA_WLAN_VENDOR_ATTR_ANTENNA_INFO = 40, 1435 /* Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command to report 1436 * the specific antenna EVM value (unsigned 32 bit value). With a 1437 * determinate group of antennas, the driver specifies the EVM value 1438 * for each antenna ID, and application extract them in user space. 1439 */ 1440 QCA_WLAN_VENDOR_ATTR_CHAIN_EVM = 41, 1441 /* 1442 * Used in QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE command to report 1443 * wlan firmware current state. FW state is an unsigned 8 bit value, 1444 * one of the values in enum qca_wlan_vendor_attr_fw_state. 1445 */ 1446 QCA_WLAN_VENDOR_ATTR_FW_STATE = 42, 1447 1448 /* Unsigned 32-bitmask value from enum qca_set_band. Substitutes the 1449 * attribute QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE for which only a subset 1450 * of single values from enum qca_set_band are valid. This attribute 1451 * uses bitmask combinations to define the respective allowed band 1452 * combinations and this attributes takes precedence over 1453 * QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE if both attributes are included. 1454 */ 1455 QCA_WLAN_VENDOR_ATTR_SETBAND_MASK = 43, 1456 1457 /* Unsigned 8-bit used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES. 1458 * This field describes the maximum number of links supported by the 1459 * chip for MLO association. 1460 * This is an optional attribute. 1461 */ 1462 QCA_WLAN_VENDOR_ATTR_MLO_CAPABILITY_MAX_ASSOCIATION_COUNT = 44, 1463 1464 /* Unsigned 8-bit used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES. 1465 * This field describes the maximum number of Simultaneous Transmit 1466 * and Receive (STR) links used in Multi-Link Operation. 1467 * The maximum number of STR links used can be different 1468 * from the maximum number of radios supported by the chip. 1469 * This is a static configuration of the chip. 1470 * This is an optional attribute. 1471 */ 1472 QCA_WLAN_VENDOR_ATTR_MLO_CAPABILITY_MAX_STR_LINK_COUNT = 45, 1473 1474 /* keep last */ 1475 QCA_WLAN_VENDOR_ATTR_AFTER_LAST, 1476 QCA_WLAN_VENDOR_ATTR_MAX = QCA_WLAN_VENDOR_ATTR_AFTER_LAST - 1, 1477 }; 1478 1479 enum qca_roaming_policy { 1480 QCA_ROAMING_NOT_ALLOWED, 1481 QCA_ROAMING_ALLOWED_WITHIN_ESS, 1482 }; 1483 1484 /** 1485 * enum qca_roam_reason - Represents the reason codes for roaming. Used by 1486 * QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REASON. 1487 * 1488 * @QCA_ROAM_REASON_UNKNOWN: Any reason that do not classify under the below 1489 * reasons. 1490 * 1491 * @QCA_ROAM_REASON_PER: Roam triggered when packet error rates (PER) breached 1492 * the configured threshold. 1493 * 1494 * @QCA_ROAM_REASON_BEACON_MISS: Roam triggered due to the continuous configured 1495 * beacon misses from the then connected AP. 1496 * 1497 * @QCA_ROAM_REASON_POOR_RSSI: Roam triggered due to the poor RSSI reported 1498 * by the connected AP. 1499 * 1500 * @QCA_ROAM_REASON_BETTER_RSSI: Roam triggered for finding a BSS with a better 1501 * RSSI than the connected BSS. Here the RSSI of the current BSS is not poor. 1502 * 1503 * @QCA_ROAM_REASON_CONGESTION: Roam triggered considering the connected channel 1504 * or environment being very noisy or congested. 1505 * 1506 * @QCA_ROAM_REASON_USER_TRIGGER: Roam triggered due to an explicit request 1507 * from the user (user space). 1508 * 1509 * @QCA_ROAM_REASON_BTM: Roam triggered due to BTM Request frame received from 1510 * the connected AP. 1511 * 1512 * @QCA_ROAM_REASON_BSS_LOAD: Roam triggered due to the channel utilization 1513 * breaching out the configured threshold. 1514 * 1515 * @QCA_ROAM_REASON_WTC: Roam triggered due to Wireless to Cellular BSS 1516 * transition request. 1517 * 1518 * @QCA_ROAM_REASON_IDLE: Roam triggered when device is suspended, there is no 1519 * data activity with the AP and the current RSSI falls below a certain 1520 * threshold. 1521 * 1522 * @QCA_ROAM_REASON_DISCONNECTION: Roam triggered due to Deauthentication or 1523 * Disassociation frames received from the connected AP. 1524 * 1525 * @QCA_ROAM_REASON_PERIODIC_TIMER: Roam triggered as part of the periodic scan 1526 * that happens when there is no candidate AP found during the poor RSSI scan 1527 * trigger. 1528 * 1529 * @QCA_ROAM_REASON_BACKGROUND_SCAN: Roam triggered based on the scan results 1530 * obtained from an external scan (not aimed at roaming). 1531 * 1532 * @QCA_ROAM_REASON_BT_ACTIVITY: Roam triggered due to Bluetooth connection is 1533 * established when the station is connected in the 2.4 GHz band. 1534 * 1535 * @QCA_ROAM_REASON_STA_KICKOUT: Roam triggered due to continuous TX Data frame 1536 * failures to the connected AP. 1537 */ 1538 enum qca_roam_reason { 1539 QCA_ROAM_REASON_UNKNOWN, 1540 QCA_ROAM_REASON_PER, 1541 QCA_ROAM_REASON_BEACON_MISS, 1542 QCA_ROAM_REASON_POOR_RSSI, 1543 QCA_ROAM_REASON_BETTER_RSSI, 1544 QCA_ROAM_REASON_CONGESTION, 1545 QCA_ROAM_REASON_USER_TRIGGER, 1546 QCA_ROAM_REASON_BTM, 1547 QCA_ROAM_REASON_BSS_LOAD, 1548 QCA_ROAM_REASON_WTC, 1549 QCA_ROAM_REASON_IDLE, 1550 QCA_ROAM_REASON_DISCONNECTION, 1551 QCA_ROAM_REASON_PERIODIC_TIMER, 1552 QCA_ROAM_REASON_BACKGROUND_SCAN, 1553 QCA_ROAM_REASON_BT_ACTIVITY, 1554 QCA_ROAM_REASON_STA_KICKOUT, 1555 }; 1556 1557 enum qca_wlan_vendor_attr_roam_auth { 1558 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_INVALID = 0, 1559 /* Indicates BSSID of the roamed AP for non-MLO roaming and MLD address 1560 * of the roamed AP for MLO roaming. 1561 */ 1562 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_BSSID, 1563 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REQ_IE, 1564 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RESP_IE, 1565 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AUTHORIZED, 1566 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_KEY_REPLAY_CTR, 1567 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KCK, 1568 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KEK, 1569 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_SUBNET_STATUS, 1570 /* Indicates the status of re-association requested by user space for 1571 * the BSSID specified by QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_BSSID. 1572 * Type u16. 1573 * Represents the status code from AP. Use 1574 * %WLAN_STATUS_UNSPECIFIED_FAILURE if the device cannot give you the 1575 * real status code for failures. 1576 */ 1577 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_STATUS, 1578 /* This attribute indicates that the old association was maintained when 1579 * a re-association is requested by user space and that re-association 1580 * attempt fails (i.e., cannot connect to the requested BSS, but can 1581 * remain associated with the BSS with which the association was in 1582 * place when being requested to roam). Used along with 1583 * WLAN_VENDOR_ATTR_ROAM_AUTH_STATUS to indicate the current 1584 * re-association status. Type flag. 1585 * This attribute is applicable only for re-association failure cases. 1586 */ 1587 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RETAIN_CONNECTION, 1588 /* This attribute specifies the PMK if one was newly generated during 1589 * FILS roaming. This is added to the PMKSA cache and is used in 1590 * subsequent connections with PMKSA caching. 1591 */ 1592 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMK = 11, 1593 /* This attribute specifies the PMKID used/generated for the current 1594 * FILS roam. This is used in subsequent connections with PMKSA caching. 1595 */ 1596 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMKID = 12, 1597 /* A 16-bit unsigned value specifying the next sequence number to use 1598 * in ERP message in the currently associated realm. This is used in 1599 * doing subsequent ERP based connections in the same realm. 1600 */ 1601 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_FILS_ERP_NEXT_SEQ_NUM = 13, 1602 /* A 16-bit unsigned value representing the reasons for the roaming. 1603 * Defined by enum qca_roam_reason. 1604 */ 1605 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REASON = 14, 1606 /* A nested attribute containing per-link information of all the links 1607 * of MLO connection done while roaming. The attributes used inside this 1608 * nested attribute are defined in enum qca_wlan_vendor_attr_mlo_links. 1609 */ 1610 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_MLO_LINKS = 15, 1611 1612 /* keep last */ 1613 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AFTER_LAST, 1614 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_MAX = 1615 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AFTER_LAST - 1 1616 }; 1617 1618 enum qca_wlan_vendor_attr_p2p_listen_offload { 1619 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INVALID = 0, 1620 /* A 32-bit unsigned value; the P2P listen frequency (MHz); must be one 1621 * of the social channels. 1622 */ 1623 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CHANNEL, 1624 /* A 32-bit unsigned value; the P2P listen offload period (ms). 1625 */ 1626 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_PERIOD, 1627 /* A 32-bit unsigned value; the P2P listen interval duration (ms). 1628 */ 1629 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INTERVAL, 1630 /* A 32-bit unsigned value; number of interval times the firmware needs 1631 * to run the offloaded P2P listen operation before it stops. 1632 */ 1633 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_COUNT, 1634 /* An array of arbitrary binary data with one or more 8-byte values. 1635 * The device types include both primary and secondary device types. 1636 */ 1637 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_DEVICE_TYPES, 1638 /* An array of unsigned 8-bit characters; vendor information elements. 1639 */ 1640 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_VENDOR_IE, 1641 /* A 32-bit unsigned value; a control flag to indicate whether listen 1642 * results need to be flushed to wpa_supplicant. 1643 */ 1644 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CTRL_FLAG, 1645 /* A 8-bit unsigned value; reason code for P2P listen offload stop 1646 * event. 1647 */ 1648 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_STOP_REASON, 1649 /* keep last */ 1650 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST, 1651 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_MAX = 1652 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST - 1 1653 }; 1654 1655 /** 1656 * enum qca_wlan_vendor_attr_acs_offload - Defines attributes to be used with 1657 * vendor command/event QCA_NL80211_VENDOR_SUBCMD_DO_ACS. 1658 * 1659 * @QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL: Required (u8). 1660 * Used with event to notify the primary channel number selected in ACS 1661 * operation. 1662 * Note: If both the driver and user-space application supports the 6 GHz band, 1663 * QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL is deprecated; use 1664 * QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY instead. 1665 * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL 1666 * is still used if either of the driver or user space application doesn't 1667 * support the 6 GHz band. 1668 * 1669 * @QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL: Required (u8). 1670 * Used with event to notify the secondary channel number selected in ACS 1671 * operation. 1672 * Note: If both the driver and user-space application supports the 6 GHz band, 1673 * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL is deprecated; use 1674 * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY instead. 1675 * To maintain backward compatibility, 1676 * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL is still used if either of 1677 * the driver or user space application doesn't support 6 GHz band. 1678 * 1679 * @QCA_WLAN_VENDOR_ATTR_ACS_HW_MODE: Required (u8). 1680 * (a) Used with command to configure hw_mode from 1681 * enum qca_wlan_vendor_acs_hw_mode for ACS operation. 1682 * (b) Also used with event to notify the hw_mode of selected primary channel 1683 * in ACS operation. 1684 * 1685 * @QCA_WLAN_VENDOR_ATTR_ACS_HT_ENABLED: Flag attribute. 1686 * Used with command to configure ACS operation for HT mode. 1687 * Disable (flag attribute not present) - HT disabled and 1688 * Enable (flag attribute present) - HT enabled. 1689 * 1690 * @QCA_WLAN_VENDOR_ATTR_ACS_HT40_ENABLED: Flag attribute. 1691 * Used with command to configure ACS operation for HT40 mode. 1692 * Disable (flag attribute not present) - HT40 disabled and 1693 * Enable (flag attribute present) - HT40 enabled. 1694 * 1695 * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_ENABLED: Flag attribute. 1696 * Used with command to configure ACS operation for VHT mode. 1697 * Disable (flag attribute not present) - VHT disabled and 1698 * Enable (flag attribute present) - VHT enabled. 1699 * 1700 * @QCA_WLAN_VENDOR_ATTR_ACS_CHWIDTH: Optional (u16) with command and 1701 * mandatory with event. 1702 * If specified in command path, ACS operation is configured with the given 1703 * channel width (in MHz). 1704 * In event path, specifies the channel width of the primary channel selected. 1705 * 1706 * @QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST: Required and type is NLA_UNSPEC. 1707 * Used with command to configure channel list using an array of 1708 * channel numbers (u8). 1709 * Note: If both the driver and user-space application supports the 6 GHz band, 1710 * the driver mandates use of QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST whereas 1711 * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST is optional. 1712 * 1713 * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL: Required (u8). 1714 * Used with event to notify the VHT segment 0 center channel number selected in 1715 * ACS operation. The value is the index of the channel center frequency for 1716 * 20 MHz, 40 MHz, and 80 MHz channels. The value is the center frequency index 1717 * of the primary 80 MHz segment for 160 MHz and 80+80 MHz channels. 1718 * Note: If both the driver and user-space application supports the 6 GHz band, 1719 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL is deprecated; use 1720 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY instead. 1721 * To maintain backward compatibility, 1722 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL is still used if either of 1723 * the driver or user space application doesn't support the 6 GHz band. 1724 * 1725 * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL: Required (u8). 1726 * Used with event to notify the VHT segment 1 center channel number selected in 1727 * ACS operation. The value is zero for 20 MHz, 40 MHz, and 80 MHz channels. 1728 * The value is the index of the channel center frequency for 160 MHz channels 1729 * and the center frequency index of the secondary 80 MHz segment for 80+80 MHz 1730 * channels. 1731 * Note: If both the driver and user-space application supports the 6 GHz band, 1732 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL is deprecated; use 1733 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY instead. 1734 * To maintain backward compatibility, 1735 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL is still used if either of 1736 * the driver or user space application doesn't support the 6 GHz band. 1737 * 1738 * @QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST: Required and type is NLA_UNSPEC. 1739 * Used with command to configure the channel list using an array of channel 1740 * center frequencies in MHz (u32). 1741 * Note: If both the driver and user-space application supports the 6 GHz band, 1742 * the driver first parses the frequency list and if it fails to get a frequency 1743 * list, parses the channel list specified using 1744 * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST (considers only 2 GHz and 5 GHz channels in 1745 * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST). 1746 * 1747 * @QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY: Required (u32). 1748 * Used with event to notify the primary channel center frequency (MHz) selected 1749 * in ACS operation. 1750 * Note: If the driver supports the 6 GHz band, the event sent from the driver 1751 * includes this attribute along with QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL. 1752 * 1753 * @QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY: Required (u32). 1754 * Used with event to notify the secondary channel center frequency (MHz) 1755 * selected in ACS operation. 1756 * Note: If the driver supports the 6 GHz band, the event sent from the driver 1757 * includes this attribute along with 1758 * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL. 1759 * 1760 * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY: Required (u32). 1761 * Used with event to notify the VHT segment 0 center channel frequency (MHz) 1762 * selected in ACS operation. 1763 * Note: If the driver supports the 6 GHz band, the event sent from the driver 1764 * includes this attribute along with 1765 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL. 1766 * 1767 * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY: Required (u32). 1768 * Used with event to notify the VHT segment 1 center channel frequency (MHz) 1769 * selected in ACS operation. 1770 * Note: If the driver supports the 6 GHz band, the event sent from the driver 1771 * includes this attribute along with 1772 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL. 1773 * 1774 * @QCA_WLAN_VENDOR_ATTR_ACS_EDMG_ENABLED: Flag attribute. 1775 * Used with command to notify the driver of EDMG request for ACS 1776 * operation. 1777 * 1778 * @QCA_WLAN_VENDOR_ATTR_ACS_EDMG_CHANNEL: Optional (u8). 1779 * Used with event to notify the EDMG channel number selected in ACS 1780 * operation. 1781 * EDMG primary channel is indicated by QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL 1782 * 1783 * @QCA_WLAN_VENDOR_ATTR_ACS_PUNCTURE_BITMAP: Optional (u16). 1784 * Used with event to notify the puncture pattern selected in ACS operation. 1785 * Encoding for this attribute will follow the convention used in the Disabled 1786 * Subchannel Bitmap field of the EHT Operation IE. 1787 * 1788 * @QCA_WLAN_VENDOR_ATTR_ACS_EHT_ENABLED: Flag attribute. 1789 * Used with command to configure ACS operation for EHT mode. 1790 * Disable (flag attribute not present) - EHT disabled and 1791 * Enable (flag attribute present) - EHT enabled. 1792 * 1793 * @QCA_WLAN_VENDOR_ATTR_ACS_LAST_SCAN_AGEOUT_TIME: Optional (u32). 1794 * Used with command to configure how older scan can be considered for ACS 1795 * scoring. In case scan was performed on a partial set of channels configured 1796 * with this command within last QCA_WLAN_VENDOR_ATTR_ACS_LAST_SCAN_AGEOUT_TIME 1797 * (in ms), scan only the remaining channels. 1798 */ 1799 enum qca_wlan_vendor_attr_acs_offload { 1800 QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_INVALID = 0, 1801 QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL = 1, 1802 QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL = 2, 1803 QCA_WLAN_VENDOR_ATTR_ACS_HW_MODE = 3, 1804 QCA_WLAN_VENDOR_ATTR_ACS_HT_ENABLED = 4, 1805 QCA_WLAN_VENDOR_ATTR_ACS_HT40_ENABLED = 5, 1806 QCA_WLAN_VENDOR_ATTR_ACS_VHT_ENABLED = 6, 1807 QCA_WLAN_VENDOR_ATTR_ACS_CHWIDTH = 7, 1808 QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST = 8, 1809 QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL = 9, 1810 QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL = 10, 1811 QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST = 11, 1812 QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY = 12, 1813 QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY = 13, 1814 QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY = 14, 1815 QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY = 15, 1816 QCA_WLAN_VENDOR_ATTR_ACS_EDMG_ENABLED = 16, 1817 QCA_WLAN_VENDOR_ATTR_ACS_EDMG_CHANNEL = 17, 1818 QCA_WLAN_VENDOR_ATTR_ACS_PUNCTURE_BITMAP = 18, 1819 QCA_WLAN_VENDOR_ATTR_ACS_EHT_ENABLED = 19, 1820 QCA_WLAN_VENDOR_ATTR_ACS_LAST_SCAN_AGEOUT_TIME = 20, 1821 1822 /* keep last */ 1823 QCA_WLAN_VENDOR_ATTR_ACS_AFTER_LAST, 1824 QCA_WLAN_VENDOR_ATTR_ACS_MAX = 1825 QCA_WLAN_VENDOR_ATTR_ACS_AFTER_LAST - 1 1826 }; 1827 1828 /** 1829 * enum qca_wlan_vendor_acs_hw_mode - Defines HW mode to be used with the 1830 * vendor command/event QCA_NL80211_VENDOR_SUBCMD_DO_ACS. 1831 * 1832 * @QCA_ACS_MODE_IEEE80211B: 802.11b mode 1833 * @QCA_ACS_MODE_IEEE80211G: 802.11g mode 1834 * @QCA_ACS_MODE_IEEE80211A: 802.11a mode 1835 * @QCA_ACS_MODE_IEEE80211AD: 802.11ad mode 1836 * @QCA_ACS_MODE_IEEE80211ANY: all modes 1837 * @QCA_ACS_MODE_IEEE80211AX: 802.11ax mode 1838 */ 1839 enum qca_wlan_vendor_acs_hw_mode { 1840 QCA_ACS_MODE_IEEE80211B, 1841 QCA_ACS_MODE_IEEE80211G, 1842 QCA_ACS_MODE_IEEE80211A, 1843 QCA_ACS_MODE_IEEE80211AD, 1844 QCA_ACS_MODE_IEEE80211ANY, 1845 QCA_ACS_MODE_IEEE80211AX, 1846 }; 1847 1848 /** 1849 * enum qca_wlan_vendor_features - Vendor device/driver feature flags 1850 * 1851 * @QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD: Device supports key 1852 * management offload, a mechanism where the station's firmware 1853 * does the exchange with the AP to establish the temporal keys 1854 * after roaming, rather than having the user space wpa_supplicant do it. 1855 * @QCA_WLAN_VENDOR_FEATURE_SUPPORT_HW_MODE_ANY: Device supports automatic 1856 * band selection based on channel selection results. 1857 * @QCA_WLAN_VENDOR_FEATURE_OFFCHANNEL_SIMULTANEOUS: Device supports 1858 * simultaneous off-channel operations. 1859 * @QCA_WLAN_VENDOR_FEATURE_P2P_LISTEN_OFFLOAD: Device supports P2P 1860 * Listen offload; a mechanism where the station's firmware takes care of 1861 * responding to incoming Probe Request frames received from other P2P 1862 * Devices whilst in Listen state, rather than having the user space 1863 * wpa_supplicant do it. Information from received P2P requests are 1864 * forwarded from firmware to host whenever the host processor wakes up. 1865 * @QCA_WLAN_VENDOR_FEATURE_OCE_STA: Device supports all OCE non-AP STA 1866 * specific features. 1867 * @QCA_WLAN_VENDOR_FEATURE_OCE_AP: Device supports all OCE AP specific 1868 * features. 1869 * @QCA_WLAN_VENDOR_FEATURE_OCE_STA_CFON: Device supports OCE STA-CFON 1870 * specific features only. If a Device sets this bit but not the 1871 * %QCA_WLAN_VENDOR_FEATURE_OCE_AP, the userspace shall assume that 1872 * this Device may not support all OCE AP functionalities but can support 1873 * only OCE STA-CFON functionalities. 1874 * @QCA_WLAN_VENDOR_FEATURE_SELF_MANAGED_REGULATORY: Device supports self 1875 * managed regulatory. 1876 * @QCA_WLAN_VENDOR_FEATURE_TWT: Device supports TWT (Target Wake Time). 1877 * @QCA_WLAN_VENDOR_FEATURE_11AX: Device supports 802.11ax (HE) 1878 * @QCA_WLAN_VENDOR_FEATURE_6GHZ_SUPPORT: Device supports 6 GHz band operation 1879 * @QCA_WLAN_VENDOR_FEATURE_THERMAL_CONFIG: Device is capable of receiving 1880 * and applying thermal configuration through 1881 * %QCA_WLAN_VENDOR_ATTR_THERMAL_LEVEL and 1882 * %QCA_WLAN_VENDOR_ATTR_THERMAL_COMPLETION_WINDOW attributes from 1883 * userspace. 1884 * @QCA_WLAN_VENDOR_FEATURE_ADAPTIVE_11R: Device supports Adaptive 11r. 1885 * With Adaptive 11r feature, access points advertise the vendor 1886 * specific IEs and MDE but do not include FT AKM in the RSNE. 1887 * The Adaptive 11r supported stations are expected to identify 1888 * such vendor specific IEs and connect to the AP in FT mode though 1889 * the profile is configured in non-FT mode. 1890 * The driver-based SME cases also need to have this support for 1891 * Adaptive 11r to handle the connection and roaming scenarios. 1892 * This flag indicates the support for the same to the user space. 1893 * @QCA_WLAN_VENDOR_FEATURE_CONCURRENT_BAND_SESSIONS: Device supports 1894 * concurrent network sessions on different Wi-Fi bands. This feature 1895 * capability is attributed to the hardware's capability to support 1896 * the same (e.g., DBS). 1897 * @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT: Flag indicating whether the 1898 * responses for the respective TWT operations are asynchronous (separate 1899 * event message) from the driver. If not specified, the responses are 1900 * synchronous (in vendor command reply) to the request. Each TWT 1901 * operation is specifically mentioned (against its respective 1902 * documentation) to support either of these or both modes. 1903 * @QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI: Flag indicates 1904 * that the driver requires add/del virtual interface path using the 1905 * generic nl80211 commands for NDP interface create/delete and to 1906 * register/unregister the netdev instead of creating/deleting the NDP 1907 * interface using the vendor commands 1908 * QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_CREATE and 1909 * QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_DELETE. With the latest kernel 1910 * (5.12 version onward), interface creation/deletion is not allowed using 1911 * vendor commands as it leads to a deadlock while acquiring the RTNL_LOCK 1912 * during the register/unregister of netdev. Create and delete NDP 1913 * interface using NL80211_CMD_NEW_INTERFACE and NL80211_CMD_DEL_INTERFACE 1914 * commands respectively if the driver advertises this capability set. 1915 * @QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_STA: Flag indicates that the device in 1916 * station mode supports secure LTF. If NL80211_EXT_FEATURE_SECURE_LTF is 1917 * set, then QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_STA will be ignored. 1918 * @QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_AP: Flag indicates that the device in AP 1919 * mode supports secure LTF. If NL80211_EXT_FEATURE_SECURE_LTF is set, then 1920 * QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_AP will be ignored. 1921 * @QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_STA: Flag indicates that the device in 1922 * station mode supports secure RTT measurement exchange. If 1923 * NL80211_EXT_FEATURE_SECURE_RTT is set, 1924 * QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_STA will be ignored. 1925 * @QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_AP: Flag indicates that the device in AP 1926 * mode supports secure RTT measurement exchange. If 1927 * NL80211_EXT_FEATURE_SECURE_RTT is set, 1928 * QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_AP will be ignored. 1929 * @QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_STA: Flag indicates that 1930 * the device in station mode supports protection of range negotiation and 1931 * measurement management frames. If 1932 * NL80211_EXT_FEATURE_PROT_RANGE_NEGO_AND_MEASURE is set, then 1933 * QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_STA will be ignored. 1934 * @QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_AP: Flag indicates that 1935 * the device in AP mode supports protection of range negotiation and 1936 * measurement management frames. If 1937 * NL80211_EXT_FEATURE_PROT_RANGE_NEGO_AND_MEASURE is set, then 1938 * QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_AP will be ignored. 1939 * @QCA_WLAN_VENDOR_FEATURE_AP_ALLOWED_FREQ_LIST: Flag indicates that the device 1940 * in AP mode supports configuring allowed frequency list for AP operation 1941 * with %QCA_WLAN_VENDOR_ATTR_CONFIG_AP_ALLOWED_FREQ_LIST. 1942 * @QCA_WLAN_VENDOR_FEATURE_ENHANCED_AUDIO_EXPERIENCE_OVER_WLAN: Flag indicates 1943 * that the device supports enhanced audio experience over WLAN feature. 1944 * @NUM_QCA_WLAN_VENDOR_FEATURES: Number of assigned feature bits 1945 */ 1946 enum qca_wlan_vendor_features { 1947 QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD = 0, 1948 QCA_WLAN_VENDOR_FEATURE_SUPPORT_HW_MODE_ANY = 1, 1949 QCA_WLAN_VENDOR_FEATURE_OFFCHANNEL_SIMULTANEOUS = 2, 1950 QCA_WLAN_VENDOR_FEATURE_P2P_LISTEN_OFFLOAD = 3, 1951 QCA_WLAN_VENDOR_FEATURE_OCE_STA = 4, 1952 QCA_WLAN_VENDOR_FEATURE_OCE_AP = 5, 1953 QCA_WLAN_VENDOR_FEATURE_OCE_STA_CFON = 6, 1954 QCA_WLAN_VENDOR_FEATURE_SELF_MANAGED_REGULATORY = 7, 1955 QCA_WLAN_VENDOR_FEATURE_TWT = 8, 1956 QCA_WLAN_VENDOR_FEATURE_11AX = 9, 1957 QCA_WLAN_VENDOR_FEATURE_6GHZ_SUPPORT = 10, 1958 QCA_WLAN_VENDOR_FEATURE_THERMAL_CONFIG = 11, 1959 QCA_WLAN_VENDOR_FEATURE_ADAPTIVE_11R = 12, 1960 QCA_WLAN_VENDOR_FEATURE_CONCURRENT_BAND_SESSIONS = 13, 1961 QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT = 14, 1962 QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI = 15, 1963 QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_STA = 16, 1964 QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_AP = 17, 1965 QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_STA = 18, 1966 QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_AP = 19, 1967 QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_STA = 20, 1968 QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_AP = 21, 1969 QCA_WLAN_VENDOR_FEATURE_AP_ALLOWED_FREQ_LIST = 22, 1970 QCA_WLAN_VENDOR_FEATURE_ENHANCED_AUDIO_EXPERIENCE_OVER_WLAN = 23, 1971 NUM_QCA_WLAN_VENDOR_FEATURES /* keep last */ 1972 }; 1973 1974 /** 1975 * enum qca_wlan_vendor_attr_data_offload_ind - Vendor Data Offload Indication 1976 * 1977 * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_SESSION: Session corresponding to 1978 * the offloaded data. 1979 * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_PROTOCOL: Protocol of the offloaded 1980 * data. 1981 * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_EVENT: Event type for the data offload 1982 * indication. 1983 */ 1984 enum qca_wlan_vendor_attr_data_offload_ind { 1985 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_INVALID = 0, 1986 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_SESSION, 1987 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_PROTOCOL, 1988 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_EVENT, 1989 1990 /* keep last */ 1991 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_AFTER_LAST, 1992 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_MAX = 1993 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_AFTER_LAST - 1 1994 }; 1995 1996 /** 1997 * enum qca_wlan_vendor_attr_ocb_set_config - Vendor subcmd attributes to set 1998 * OCB config 1999 * 2000 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_CHANNEL_COUNT: Number of channels in the 2001 * configuration 2002 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_SCHEDULE_SIZE: Size of the schedule 2003 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_CHANNEL_ARRAY: Array of channels 2004 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_SCHEDULE_ARRAY: Array of channels to be 2005 * scheduled 2006 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_NDL_CHANNEL_ARRAY: Array of NDL channel 2007 * information 2008 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_NDL_ACTIVE_STATE_ARRAY: Array of NDL 2009 * active state configuration 2010 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_FLAGS: Configuration flags such as 2011 * OCB_CONFIG_FLAG_80211_FRAME_MODE 2012 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_DEF_TX_PARAM: Default TX parameters to 2013 * use in the case that a packet is sent without a TX control header 2014 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_TA_MAX_DURATION: Max duration after the 2015 * last TA received that the local time set by TA is synchronous to other 2016 * communicating OCB STAs. 2017 */ 2018 enum qca_wlan_vendor_attr_ocb_set_config { 2019 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_INVALID = 0, 2020 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_CHANNEL_COUNT = 1, 2021 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_SCHEDULE_SIZE = 2, 2022 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_CHANNEL_ARRAY = 3, 2023 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_SCHEDULE_ARRAY = 4, 2024 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_NDL_CHANNEL_ARRAY = 5, 2025 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_NDL_ACTIVE_STATE_ARRAY = 6, 2026 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_FLAGS = 7, 2027 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_DEF_TX_PARAM = 8, 2028 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_TA_MAX_DURATION = 9, 2029 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_AFTER_LAST, 2030 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_MAX = 2031 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_AFTER_LAST - 1 2032 }; 2033 2034 /** 2035 * enum qca_wlan_vendor_attr_ocb_set_utc_time - Vendor subcmd attributes to set 2036 * UTC time 2037 * 2038 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_VALUE: The UTC time as an array of 2039 * 10 bytes 2040 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_ERROR: The time error as an array of 2041 * 5 bytes 2042 */ 2043 enum qca_wlan_vendor_attr_ocb_set_utc_time { 2044 QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_INVALID = 0, 2045 QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_VALUE = 1, 2046 QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_ERROR = 2, 2047 QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_AFTER_LAST, 2048 QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_MAX = 2049 QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_AFTER_LAST - 1 2050 }; 2051 2052 /** 2053 * enum qca_wlan_vendor_attr_ocb_start_timing_advert - Vendor subcmd attributes 2054 * to start sending timing advert frames 2055 * 2056 * @QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_CHANNEL_FREQ: Cannel frequency 2057 * on which to send the frames 2058 * @QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_REPEAT_RATE: Number of times 2059 * the frame is sent in 5 seconds 2060 */ 2061 enum qca_wlan_vendor_attr_ocb_start_timing_advert { 2062 QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_INVALID = 0, 2063 QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_CHANNEL_FREQ = 1, 2064 QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_REPEAT_RATE = 2, 2065 QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_AFTER_LAST, 2066 QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_MAX = 2067 QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_AFTER_LAST - 1 2068 }; 2069 2070 /** 2071 * enum qca_wlan_vendor_attr_ocb_stop_timing_advert - Vendor subcmd attributes 2072 * to stop timing advert 2073 * 2074 * @QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_CHANNEL_FREQ: The channel 2075 * frequency on which to stop the timing advert 2076 */ 2077 enum qca_wlan_vendor_attr_ocb_stop_timing_advert { 2078 QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_INVALID = 0, 2079 QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_CHANNEL_FREQ = 1, 2080 QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_AFTER_LAST, 2081 QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_MAX = 2082 QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_AFTER_LAST - 1 2083 }; 2084 2085 /** 2086 * enum qca_wlan_vendor_attr_ocb_get_tsf_response - Vendor subcmd attributes to 2087 * get TSF timer value 2088 * 2089 * @QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_TIMER_HIGH: Higher 32 bits of the 2090 * timer 2091 * @QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_TIMER_LOW: Lower 32 bits of the timer 2092 */ 2093 enum qca_wlan_vendor_attr_ocb_get_tsf_resp { 2094 QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_INVALID = 0, 2095 QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_TIMER_HIGH = 1, 2096 QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_TIMER_LOW = 2, 2097 QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_AFTER_LAST, 2098 QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_MAX = 2099 QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_AFTER_LAST - 1 2100 }; 2101 2102 enum qca_vendor_attr_get_preferred_freq_list { 2103 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_INVALID, 2104 /* A 32-unsigned value; the interface type/mode for which the preferred 2105 * frequency list is requested (see enum qca_iface_type for possible 2106 * values); used in GET_PREFERRED_FREQ_LIST command from user-space to 2107 * kernel and in the kernel response back to user-space. 2108 */ 2109 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_IFACE_TYPE, 2110 /* An array of 32-unsigned values; values are frequency (MHz); sent 2111 * from kernel space to user space. 2112 */ 2113 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST, 2114 /* An array of nested values as per enum qca_wlan_vendor_attr_pcl 2115 * attribute. Each element contains frequency (MHz), weight, and flag 2116 * bit mask indicating how the frequency should be used in P2P 2117 * negotiation; sent from kernel space to user space. 2118 */ 2119 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_WEIGHED_PCL, 2120 /* keep last */ 2121 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST, 2122 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_MAX = 2123 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST - 1 2124 }; 2125 2126 enum qca_vendor_attr_probable_oper_channel { 2127 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_INVALID, 2128 /* 32-bit unsigned value; indicates the connection/iface type likely to 2129 * come on this channel (see enum qca_iface_type). 2130 */ 2131 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_IFACE_TYPE, 2132 /* 32-bit unsigned value; the frequency (MHz) of the probable channel */ 2133 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_FREQ, 2134 /* keep last */ 2135 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST, 2136 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_MAX = 2137 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST - 1 2138 }; 2139 2140 enum qca_iface_type { 2141 QCA_IFACE_TYPE_STA, 2142 QCA_IFACE_TYPE_AP, 2143 QCA_IFACE_TYPE_P2P_CLIENT, 2144 QCA_IFACE_TYPE_P2P_GO, 2145 QCA_IFACE_TYPE_IBSS, 2146 QCA_IFACE_TYPE_TDLS, 2147 }; 2148 2149 enum qca_set_band { 2150 QCA_SETBAND_AUTO = 0, 2151 QCA_SETBAND_5G = BIT(0), 2152 QCA_SETBAND_2G = BIT(1), 2153 QCA_SETBAND_6G = BIT(2), 2154 }; 2155 2156 /** 2157 * enum qca_access_policy - Access control policy 2158 * 2159 * Access control policy is applied on the configured IE 2160 * (QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE). 2161 * To be set with QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY. 2162 * 2163 * @QCA_ACCESS_POLICY_ACCEPT_UNLESS_LISTED: Deny Wi-Fi connections which match 2164 * the specific configuration (IE) set, i.e., allow all the 2165 * connections which do not match the configuration. 2166 * @QCA_ACCESS_POLICY_DENY_UNLESS_LISTED: Accept Wi-Fi connections which match 2167 * the specific configuration (IE) set, i.e., deny all the 2168 * connections which do not match the configuration. 2169 */ 2170 enum qca_access_policy { 2171 QCA_ACCESS_POLICY_ACCEPT_UNLESS_LISTED, 2172 QCA_ACCESS_POLICY_DENY_UNLESS_LISTED, 2173 }; 2174 2175 /** 2176 * enum qca_vendor_attr_tsf_cmd: Vendor attributes for TSF capture 2177 * @QCA_WLAN_VENDOR_ATTR_TSF_CMD: Required (u32) 2178 * Specify the TSF command. Possible values are defined in 2179 * &enum qca_tsf_cmd. 2180 * @QCA_WLAN_VENDOR_ATTR_TSF_TIMER_VALUE: Optional (u64) 2181 * This attribute contains TSF timer value. This attribute is only available 2182 * in %QCA_TSF_GET or %QCA_TSF_SYNC_GET response. 2183 * @QCA_WLAN_VENDOR_ATTR_TSF_SOC_TIMER_VALUE: Optional (u64) 2184 * This attribute contains SOC timer value at TSF capture. This attribute is 2185 * only available in %QCA_TSF_GET or %QCA_TSF_SYNC_GET response. 2186 * @QCA_WLAN_VENDOR_ATTR_TSF_SYNC_INTERVAL: Optional (u32) 2187 * This attribute is used to provide TSF sync interval and only applicable when 2188 * TSF command is %QCA_TSF_SYNC_START. If this attribute is not provided, the 2189 * driver will use the default value. Time unit is in milliseconds. 2190 * @QCA_WLAN_VENDOR_ATTR_TSF_PAD: Attribute used for padding for 64-bit 2191 * alignment. 2192 */ 2193 enum qca_vendor_attr_tsf_cmd { 2194 QCA_WLAN_VENDOR_ATTR_TSF_INVALID = 0, 2195 QCA_WLAN_VENDOR_ATTR_TSF_CMD, 2196 QCA_WLAN_VENDOR_ATTR_TSF_TIMER_VALUE, 2197 QCA_WLAN_VENDOR_ATTR_TSF_SOC_TIMER_VALUE, 2198 QCA_WLAN_VENDOR_ATTR_TSF_SYNC_INTERVAL, 2199 QCA_WLAN_VENDOR_ATTR_TSF_PAD, 2200 QCA_WLAN_VENDOR_ATTR_TSF_AFTER_LAST, 2201 QCA_WLAN_VENDOR_ATTR_TSF_MAX = 2202 QCA_WLAN_VENDOR_ATTR_TSF_AFTER_LAST - 1 2203 }; 2204 2205 /** 2206 * enum qca_tsf_cmd: TSF driver commands 2207 * @QCA_TSF_CAPTURE: Initiate TSF Capture 2208 * @QCA_TSF_GET: Get TSF capture value 2209 * @QCA_TSF_SYNC_GET: Initiate TSF capture and return with captured value 2210 * @QCA_TSF_AUTO_REPORT_ENABLE: Used in STA mode only. Once set, the target 2211 * will automatically send TSF report to the host. To query 2212 * %QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY, this operation needs to be 2213 * initiated first. 2214 * @QCA_TSF_AUTO_REPORT_DISABLE: Used in STA mode only. Once set, the target 2215 * will not automatically send TSF report to the host. If 2216 * %QCA_TSF_AUTO_REPORT_ENABLE is initiated and 2217 * %QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY is not queried anymore, this 2218 * operation needs to be initiated. 2219 * @QCA_TSF_SYNC_START: Start periodic TSF sync feature. The driver periodically 2220 * fetches TSF and host time mapping from the firmware with interval configured 2221 * through the %QCA_WLAN_VENDOR_ATTR_TSF_SYNC_INTERVAL attribute. If the 2222 * interval value is not provided the driver will use the default value. The 2223 * userspace can query the TSF and host time mapping via the %QCA_TSF_GET 2224 * command. 2225 * @QCA_TSF_SYNC_STOP: Stop periodic TSF sync feature. 2226 */ 2227 enum qca_tsf_cmd { 2228 QCA_TSF_CAPTURE, 2229 QCA_TSF_GET, 2230 QCA_TSF_SYNC_GET, 2231 QCA_TSF_AUTO_REPORT_ENABLE, 2232 QCA_TSF_AUTO_REPORT_DISABLE, 2233 QCA_TSF_SYNC_START, 2234 QCA_TSF_SYNC_STOP, 2235 }; 2236 2237 /** 2238 * enum qca_vendor_attr_wisa_cmd 2239 * @QCA_WLAN_VENDOR_ATTR_WISA_MODE: WISA mode value (u32) 2240 * WISA setup vendor commands 2241 */ 2242 enum qca_vendor_attr_wisa_cmd { 2243 QCA_WLAN_VENDOR_ATTR_WISA_INVALID = 0, 2244 QCA_WLAN_VENDOR_ATTR_WISA_MODE, 2245 QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST, 2246 QCA_WLAN_VENDOR_ATTR_WISA_MAX = 2247 QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST - 1 2248 }; 2249 2250 /* IEEE 802.11 Vendor Specific elements */ 2251 2252 /** 2253 * enum qca_vendor_element_id - QCA Vendor Specific element types 2254 * 2255 * These values are used to identify QCA Vendor Specific elements. The 2256 * payload of the element starts with the three octet OUI (OUI_QCA) and 2257 * is followed by a single octet type which is defined by this enum. 2258 * 2259 * @QCA_VENDOR_ELEM_P2P_PREF_CHAN_LIST: P2P preferred channel list. 2260 * This element can be used to specify preference order for supported 2261 * channels. The channels in this list are in preference order (the first 2262 * one has the highest preference) and are described as a pair of 2263 * (global) Operating Class and Channel Number (each one octet) fields. 2264 * 2265 * This extends the standard P2P functionality by providing option to have 2266 * more than one preferred operating channel. When this element is present, 2267 * it replaces the preference indicated in the Operating Channel attribute. 2268 * For supporting other implementations, the Operating Channel attribute is 2269 * expected to be used with the highest preference channel. Similarly, all 2270 * the channels included in this Preferred channel list element are 2271 * expected to be included in the Channel List attribute. 2272 * 2273 * This vendor element may be included in GO Negotiation Request, P2P 2274 * Invitation Request, and Provision Discovery Request frames. 2275 * 2276 * @QCA_VENDOR_ELEM_HE_CAPAB: HE Capabilities element. 2277 * This element can be used for pre-standard publication testing of HE 2278 * before P802.11ax draft assigns the element ID. The payload of this 2279 * vendor specific element is defined by the latest P802.11ax draft. 2280 * Please note that the draft is still work in progress and this element 2281 * payload is subject to change. 2282 * 2283 * @QCA_VENDOR_ELEM_HE_OPER: HE Operation element. 2284 * This element can be used for pre-standard publication testing of HE 2285 * before P802.11ax draft assigns the element ID. The payload of this 2286 * vendor specific element is defined by the latest P802.11ax draft. 2287 * Please note that the draft is still work in progress and this element 2288 * payload is subject to change. 2289 * 2290 * @QCA_VENDOR_ELEM_RAPS: RAPS element (OFDMA-based Random Access Parameter Set 2291 * element). 2292 * This element can be used for pre-standard publication testing of HE 2293 * before P802.11ax draft assigns the element ID extension. The payload of 2294 * this vendor specific element is defined by the latest P802.11ax draft 2295 * (not including the Element ID Extension field). Please note that the 2296 * draft is still work in progress and this element payload is subject to 2297 * change. 2298 * 2299 * @QCA_VENDOR_ELEM_MU_EDCA_PARAMS: MU EDCA Parameter Set element. 2300 * This element can be used for pre-standard publication testing of HE 2301 * before P802.11ax draft assigns the element ID extension. The payload of 2302 * this vendor specific element is defined by the latest P802.11ax draft 2303 * (not including the Element ID Extension field). Please note that the 2304 * draft is still work in progress and this element payload is subject to 2305 * change. 2306 * 2307 * @QCA_VENDOR_ELEM_BSS_COLOR_CHANGE: BSS Color Change Announcement element. 2308 * This element can be used for pre-standard publication testing of HE 2309 * before P802.11ax draft assigns the element ID extension. The payload of 2310 * this vendor specific element is defined by the latest P802.11ax draft 2311 * (not including the Element ID Extension field). Please note that the 2312 * draft is still work in progress and this element payload is subject to 2313 * change. 2314 * 2315 * @QCA_VENDOR_ELEM_ALLPLAY: Allplay element 2316 */ 2317 enum qca_vendor_element_id { 2318 QCA_VENDOR_ELEM_P2P_PREF_CHAN_LIST = 0, 2319 QCA_VENDOR_ELEM_HE_CAPAB = 1, 2320 QCA_VENDOR_ELEM_HE_OPER = 2, 2321 QCA_VENDOR_ELEM_RAPS = 3, 2322 QCA_VENDOR_ELEM_MU_EDCA_PARAMS = 4, 2323 QCA_VENDOR_ELEM_BSS_COLOR_CHANGE = 5, 2324 QCA_VENDOR_ELEM_ALLPLAY = 6, 2325 }; 2326 2327 /** 2328 * enum qca_wlan_vendor_scan_priority - Specifies the valid values that the 2329 * vendor scan attribute QCA_WLAN_VENDOR_ATTR_SCAN_PRIORITY can take. 2330 * @QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_LOW: Very low priority 2331 * @QCA_WLAN_VENDOR_SCAN_PRIORITY_LOW: Low priority 2332 * @QCA_WLAN_VENDOR_SCAN_PRIORITY_MEDIUM: Medium priority 2333 * @QCA_WLAN_VENDOR_SCAN_PRIORITY_HIGH: High priority 2334 * @QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_HIGH: Very high priority 2335 */ 2336 enum qca_wlan_vendor_scan_priority { 2337 QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_LOW = 0, 2338 QCA_WLAN_VENDOR_SCAN_PRIORITY_LOW = 1, 2339 QCA_WLAN_VENDOR_SCAN_PRIORITY_MEDIUM = 2, 2340 QCA_WLAN_VENDOR_SCAN_PRIORITY_HIGH = 3, 2341 QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_HIGH = 4, 2342 }; 2343 2344 /** 2345 * enum qca_wlan_vendor_attr_scan - Specifies vendor scan attributes 2346 * 2347 * @QCA_WLAN_VENDOR_ATTR_SCAN_IE: IEs that should be included as part of scan 2348 * @QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES: Nested unsigned 32-bit attributes 2349 * with frequencies to be scanned (in MHz) 2350 * @QCA_WLAN_VENDOR_ATTR_SCAN_SSIDS: Nested attribute with SSIDs to be scanned 2351 * @QCA_WLAN_VENDOR_ATTR_SCAN_SUPP_RATES: Nested array attribute of supported 2352 * rates to be included 2353 * @QCA_WLAN_VENDOR_ATTR_SCAN_TX_NO_CCK_RATE: flag used to send probe requests 2354 * at non CCK rate in 2GHz band 2355 * @QCA_WLAN_VENDOR_ATTR_SCAN_FLAGS: Unsigned 32-bit scan flags 2356 * @QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE: Unsigned 64-bit cookie provided by the 2357 * driver for the specific scan request 2358 * @QCA_WLAN_VENDOR_ATTR_SCAN_STATUS: Unsigned 8-bit status of the scan 2359 * request decoded as in enum scan_status 2360 * @QCA_WLAN_VENDOR_ATTR_SCAN_MAC: 6-byte MAC address to use when randomisation 2361 * scan flag is set 2362 * @QCA_WLAN_VENDOR_ATTR_SCAN_MAC_MASK: 6-byte MAC address mask to be used with 2363 * randomisation 2364 * @QCA_WLAN_VENDOR_ATTR_SCAN_BSSID: 6-byte MAC address representing the 2365 * specific BSSID to scan for. 2366 * @QCA_WLAN_VENDOR_ATTR_SCAN_DWELL_TIME: Unsigned 64-bit dwell time in 2367 * microseconds. This is a common value which applies across all 2368 * frequencies specified by QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES. 2369 * @QCA_WLAN_VENDOR_ATTR_SCAN_PRIORITY: Priority of vendor scan relative to 2370 * other scan requests. It is a u32 attribute and takes values from enum 2371 * qca_wlan_vendor_scan_priority. This is an optional attribute. 2372 * If this attribute is not configured, the driver shall use 2373 * QCA_WLAN_VENDOR_SCAN_PRIORITY_HIGH as the priority of vendor scan. 2374 * @QCA_WLAN_VENDOR_ATTR_SCAN_PAD: Attribute used for padding for 64-bit 2375 * alignment. 2376 */ 2377 enum qca_wlan_vendor_attr_scan { 2378 QCA_WLAN_VENDOR_ATTR_SCAN_INVALID_PARAM = 0, 2379 QCA_WLAN_VENDOR_ATTR_SCAN_IE = 1, 2380 QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES = 2, 2381 QCA_WLAN_VENDOR_ATTR_SCAN_SSIDS = 3, 2382 QCA_WLAN_VENDOR_ATTR_SCAN_SUPP_RATES = 4, 2383 QCA_WLAN_VENDOR_ATTR_SCAN_TX_NO_CCK_RATE = 5, 2384 QCA_WLAN_VENDOR_ATTR_SCAN_FLAGS = 6, 2385 QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE = 7, 2386 QCA_WLAN_VENDOR_ATTR_SCAN_STATUS = 8, 2387 QCA_WLAN_VENDOR_ATTR_SCAN_MAC = 9, 2388 QCA_WLAN_VENDOR_ATTR_SCAN_MAC_MASK = 10, 2389 QCA_WLAN_VENDOR_ATTR_SCAN_BSSID = 11, 2390 QCA_WLAN_VENDOR_ATTR_SCAN_DWELL_TIME = 12, 2391 QCA_WLAN_VENDOR_ATTR_SCAN_PRIORITY = 13, 2392 QCA_WLAN_VENDOR_ATTR_SCAN_PAD = 14, 2393 QCA_WLAN_VENDOR_ATTR_SCAN_AFTER_LAST, 2394 QCA_WLAN_VENDOR_ATTR_SCAN_MAX = 2395 QCA_WLAN_VENDOR_ATTR_SCAN_AFTER_LAST - 1 2396 }; 2397 2398 /** 2399 * enum scan_status - Specifies the valid values the vendor scan attribute 2400 * QCA_WLAN_VENDOR_ATTR_SCAN_STATUS can take 2401 * 2402 * @VENDOR_SCAN_STATUS_NEW_RESULTS: implies the vendor scan is successful with 2403 * new scan results 2404 * @VENDOR_SCAN_STATUS_ABORTED: implies the vendor scan was aborted in-between 2405 */ 2406 enum scan_status { 2407 VENDOR_SCAN_STATUS_NEW_RESULTS, 2408 VENDOR_SCAN_STATUS_ABORTED, 2409 VENDOR_SCAN_STATUS_MAX, 2410 }; 2411 2412 /** 2413 * enum qca_vendor_attr_ota_test - Specifies the values for vendor 2414 * command QCA_NL80211_VENDOR_SUBCMD_OTA_TEST 2415 * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_ENABLE: enable ota test 2416 */ 2417 enum qca_vendor_attr_ota_test { 2418 QCA_WLAN_VENDOR_ATTR_OTA_TEST_INVALID, 2419 /* 8-bit unsigned value to indicate if OTA test is enabled */ 2420 QCA_WLAN_VENDOR_ATTR_OTA_TEST_ENABLE, 2421 /* keep last */ 2422 QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST, 2423 QCA_WLAN_VENDOR_ATTR_OTA_TEST_MAX = 2424 QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST - 1 2425 }; 2426 2427 /** 2428 * enum qca_vendor_attr_txpower_scale - vendor sub commands index 2429 * 2430 * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE: scaling value 2431 */ 2432 enum qca_vendor_attr_txpower_scale { 2433 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_INVALID, 2434 /* 8-bit unsigned value to indicate the scaling of tx power */ 2435 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE, 2436 /* keep last */ 2437 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST, 2438 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_MAX = 2439 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST - 1 2440 }; 2441 2442 /** 2443 * enum qca_vendor_attr_txpower_decr_db - Attributes for TX power decrease 2444 * 2445 * These attributes are used with QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_DECR_DB. 2446 */ 2447 enum qca_vendor_attr_txpower_decr_db { 2448 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_INVALID, 2449 /* 8-bit unsigned value to indicate the reduction of TX power in dB for 2450 * a virtual interface. 2451 */ 2452 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB, 2453 /* keep last */ 2454 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_AFTER_LAST, 2455 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_MAX = 2456 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_AFTER_LAST - 1 2457 }; 2458 2459 /* Attributes for data used by 2460 * QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION and 2461 * QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION subcommands. 2462 */ 2463 enum qca_wlan_vendor_attr_config { 2464 QCA_WLAN_VENDOR_ATTR_CONFIG_INVALID = 0, 2465 /* Unsigned 32-bit value to set the DTIM period. 2466 * Whether the wifi chipset wakes at every dtim beacon or a multiple of 2467 * the DTIM period. If DTIM is set to 3, the STA shall wake up every 3 2468 * DTIM beacons. 2469 */ 2470 QCA_WLAN_VENDOR_ATTR_CONFIG_DYNAMIC_DTIM = 1, 2471 /* Unsigned 32-bit value to set the wifi_iface stats averaging factor 2472 * used to calculate statistics like average the TSF offset or average 2473 * number of frame leaked. 2474 * For instance, upon Beacon frame reception: 2475 * current_avg = ((beacon_TSF - TBTT) * factor + 2476 * previous_avg * (0x10000 - factor)) / 0x10000 2477 * For instance, when evaluating leaky APs: 2478 * current_avg = ((num frame received within guard time) * factor + 2479 * previous_avg * (0x10000 - factor)) / 0x10000 2480 */ 2481 QCA_WLAN_VENDOR_ATTR_CONFIG_STATS_AVG_FACTOR = 2, 2482 /* Unsigned 32-bit value to configure guard time, i.e., when 2483 * implementing IEEE power management based on frame control PM bit, how 2484 * long the driver waits before shutting down the radio and after 2485 * receiving an ACK frame for a Data frame with PM bit set. 2486 */ 2487 QCA_WLAN_VENDOR_ATTR_CONFIG_GUARD_TIME = 3, 2488 /* Unsigned 32-bit value to change the FTM capability dynamically */ 2489 QCA_WLAN_VENDOR_ATTR_CONFIG_FINE_TIME_MEASUREMENT = 4, 2490 /* Unsigned 16-bit value to configure maximum TX rate dynamically */ 2491 QCA_WLAN_VENDOR_ATTR_CONF_TX_RATE = 5, 2492 /* Unsigned 32-bit value to configure the number of continuous 2493 * Beacon Miss which shall be used by the firmware to penalize 2494 * the RSSI. 2495 */ 2496 QCA_WLAN_VENDOR_ATTR_CONFIG_PENALIZE_AFTER_NCONS_BEACON_MISS = 6, 2497 /* Unsigned 8-bit value to configure the channel avoidance indication 2498 * behavior. Firmware to send only one indication and ignore duplicate 2499 * indications when set to avoid multiple Apps wakeups. 2500 */ 2501 QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_AVOIDANCE_IND = 7, 2502 /* 8-bit unsigned value to configure the maximum TX MPDU for 2503 * aggregation. 2504 */ 2505 QCA_WLAN_VENDOR_ATTR_CONFIG_TX_MPDU_AGGREGATION = 8, 2506 /* 8-bit unsigned value to configure the maximum RX MPDU for 2507 * aggregation. 2508 */ 2509 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_MPDU_AGGREGATION = 9, 2510 /* 8-bit unsigned value to configure the Non aggregrate/11g sw 2511 * retry threshold (0 disable, 31 max). 2512 */ 2513 QCA_WLAN_VENDOR_ATTR_CONFIG_NON_AGG_RETRY = 10, 2514 /* 8-bit unsigned value to configure the aggregrate sw 2515 * retry threshold (0 disable, 31 max). 2516 */ 2517 QCA_WLAN_VENDOR_ATTR_CONFIG_AGG_RETRY = 11, 2518 /* 8-bit unsigned value to configure the MGMT frame 2519 * retry threshold (0 disable, 31 max). 2520 */ 2521 QCA_WLAN_VENDOR_ATTR_CONFIG_MGMT_RETRY = 12, 2522 /* 8-bit unsigned value to configure the CTRL frame 2523 * retry threshold (0 disable, 31 max). 2524 */ 2525 QCA_WLAN_VENDOR_ATTR_CONFIG_CTRL_RETRY = 13, 2526 /* 8-bit unsigned value to configure the propagation delay for 2527 * 2G/5G band (0~63, units in us) 2528 */ 2529 QCA_WLAN_VENDOR_ATTR_CONFIG_PROPAGATION_DELAY = 14, 2530 /* Unsigned 32-bit value to configure the number of unicast TX fail 2531 * packet count. The peer is disconnected once this threshold is 2532 * reached. 2533 */ 2534 QCA_WLAN_VENDOR_ATTR_CONFIG_TX_FAIL_COUNT = 15, 2535 /* Attribute used to set scan default IEs to the driver. 2536 * 2537 * These IEs can be used by scan operations that will be initiated by 2538 * the driver/firmware. 2539 * 2540 * For further scan requests coming to the driver, these IEs should be 2541 * merged with the IEs received along with scan request coming to the 2542 * driver. If a particular IE is present in the scan default IEs but not 2543 * present in the scan request, then that IE should be added to the IEs 2544 * sent in the Probe Request frames for that scan request. 2545 */ 2546 QCA_WLAN_VENDOR_ATTR_CONFIG_SCAN_DEFAULT_IES = 16, 2547 /* Unsigned 32-bit attribute for generic commands */ 2548 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_COMMAND = 17, 2549 /* Unsigned 32-bit value attribute for generic commands */ 2550 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_VALUE = 18, 2551 /* Unsigned 32-bit data attribute for generic command response */ 2552 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA = 19, 2553 /* Unsigned 32-bit length attribute for 2554 * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA 2555 */ 2556 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_LENGTH = 20, 2557 /* Unsigned 32-bit flags attribute for 2558 * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA 2559 */ 2560 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_FLAGS = 21, 2561 /* Unsigned 32-bit, defining the access policy. 2562 * See enum qca_access_policy. Used with 2563 * QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE_LIST. 2564 */ 2565 QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY = 22, 2566 /* Sets the list of full set of IEs for which a specific access policy 2567 * has to be applied. Used along with 2568 * QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY to control the access. 2569 * Zero length payload can be used to clear this access constraint. 2570 */ 2571 QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE_LIST = 23, 2572 /* Unsigned 32-bit, specifies the interface index (netdev) for which the 2573 * corresponding configurations are applied. If the interface index is 2574 * not specified, the configurations are attributed to the respective 2575 * wiphy. 2576 */ 2577 QCA_WLAN_VENDOR_ATTR_CONFIG_IFINDEX = 24, 2578 /* 8-bit unsigned value to trigger QPower: 1-Enable, 0-Disable */ 2579 QCA_WLAN_VENDOR_ATTR_CONFIG_QPOWER = 25, 2580 /* 8-bit unsigned value to configure the driver and below layers to 2581 * ignore the assoc disallowed set by APs while connecting 2582 * 1-Ignore, 0-Don't ignore 2583 */ 2584 QCA_WLAN_VENDOR_ATTR_CONFIG_IGNORE_ASSOC_DISALLOWED = 26, 2585 /* 32-bit unsigned value to trigger antenna diversity features: 2586 * 1-Enable, 0-Disable 2587 */ 2588 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_ENA = 27, 2589 /* 32-bit unsigned value to configure specific chain antenna */ 2590 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_CHAIN = 28, 2591 /* 32-bit unsigned value to trigger cycle selftest 2592 * 1-Enable, 0-Disable 2593 */ 2594 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SELFTEST = 29, 2595 /* 32-bit unsigned to configure the cycle time of selftest 2596 * the unit is micro-second 2597 */ 2598 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SELFTEST_INTVL = 30, 2599 /* 32-bit unsigned value to set reorder timeout for AC_VO */ 2600 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_VOICE = 31, 2601 /* 32-bit unsigned value to set reorder timeout for AC_VI */ 2602 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_VIDEO = 32, 2603 /* 32-bit unsigned value to set reorder timeout for AC_BE */ 2604 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_BESTEFFORT = 33, 2605 /* 32-bit unsigned value to set reorder timeout for AC_BK */ 2606 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_BACKGROUND = 34, 2607 /* 6-byte MAC address to point out the specific peer */ 2608 QCA_WLAN_VENDOR_ATTR_CONFIG_PEER_MAC = 35, 2609 /* Backward compatibility with the original name */ 2610 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_BLOCKSIZE_PEER_MAC = 2611 QCA_WLAN_VENDOR_ATTR_CONFIG_PEER_MAC, 2612 /* 32-bit unsigned value to set window size for specific peer */ 2613 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_BLOCKSIZE_WINLIMIT = 36, 2614 /* 8-bit unsigned value to set the beacon miss threshold in 2.4 GHz */ 2615 QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_MISS_THRESHOLD_24 = 37, 2616 /* 8-bit unsigned value to set the beacon miss threshold in 5 GHz */ 2617 QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_MISS_THRESHOLD_5 = 38, 2618 /* 32-bit unsigned value to configure 5 or 10 MHz channel width for 2619 * station device while in disconnect state. The attribute use the 2620 * value of enum nl80211_chan_width: NL80211_CHAN_WIDTH_5 means 5 MHz, 2621 * NL80211_CHAN_WIDTH_10 means 10 MHz. If set, the device work in 5 or 2622 * 10 MHz channel width, the station will not connect to a BSS using 20 2623 * MHz or higher bandwidth. Set to NL80211_CHAN_WIDTH_20_NOHT to 2624 * clear this constraint. 2625 */ 2626 QCA_WLAN_VENDOR_ATTR_CONFIG_SUB20_CHAN_WIDTH = 39, 2627 /* 32-bit unsigned value to configure the propagation absolute delay 2628 * for 2G/5G band (units in us) 2629 */ 2630 QCA_WLAN_VENDOR_ATTR_CONFIG_PROPAGATION_ABS_DELAY = 40, 2631 /* 32-bit unsigned value to set probe period */ 2632 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_PROBE_PERIOD = 41, 2633 /* 32-bit unsigned value to set stay period */ 2634 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_STAY_PERIOD = 42, 2635 /* 32-bit unsigned value to set snr diff */ 2636 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SNR_DIFF = 43, 2637 /* 32-bit unsigned value to set probe dwell time */ 2638 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_PROBE_DWELL_TIME = 44, 2639 /* 32-bit unsigned value to set mgmt snr weight */ 2640 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_MGMT_SNR_WEIGHT = 45, 2641 /* 32-bit unsigned value to set data snr weight */ 2642 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_DATA_SNR_WEIGHT = 46, 2643 /* 32-bit unsigned value to set ack snr weight */ 2644 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_ACK_SNR_WEIGHT = 47, 2645 /* 32-bit unsigned value to configure the listen interval. 2646 * This is in units of beacon intervals. This configuration alters 2647 * the negotiated listen interval with the AP during the connection. 2648 * It is highly recommended to configure a value less than or equal to 2649 * the one negotiated during the association. Configuring any greater 2650 * value can have adverse effects (frame loss, AP disassociating STA, 2651 * etc.). 2652 */ 2653 QCA_WLAN_VENDOR_ATTR_CONFIG_LISTEN_INTERVAL = 48, 2654 /* 2655 * 8 bit unsigned value that is set on an AP/GO virtual interface to 2656 * disable operations that would cause the AP/GO to leave its operating 2657 * channel. 2658 * 2659 * This will restrict the scans to the AP/GO operating channel and the 2660 * channels of the other band, if DBS is supported.A STA/CLI interface 2661 * brought up after this setting is enabled, will be restricted to 2662 * connecting to devices only on the AP/GO interface's operating channel 2663 * or on the other band in DBS case. P2P supported channel list is 2664 * modified, to only include AP interface's operating-channel and the 2665 * channels of the other band if DBS is supported. 2666 * 2667 * These restrictions are only applicable as long as the AP/GO interface 2668 * is alive. If the AP/GO interface is brought down then this 2669 * setting/restriction is forgotten. 2670 * 2671 * If this variable is set on an AP/GO interface while a multi-channel 2672 * concurrent session is active, it has no effect on the operation of 2673 * the current interfaces, other than restricting the scan to the AP/GO 2674 * operating channel and the other band channels if DBS is supported. 2675 * However, if the STA is brought down and restarted then the new STA 2676 * connection will either be formed on the AP/GO channel or on the 2677 * other band in a DBS case. This is because of the scan being 2678 * restricted on these channels as mentioned above. 2679 * 2680 * 1-Restrict / 0-Don't restrict offchannel operations. 2681 */ 2682 QCA_WLAN_VENDOR_ATTR_CONFIG_RESTRICT_OFFCHANNEL = 49, 2683 /* 2684 * 8 bit unsigned value to enable/disable LRO (Large Receive Offload) 2685 * on an interface. 2686 * 1 - Enable, 0 - Disable. 2687 */ 2688 QCA_WLAN_VENDOR_ATTR_CONFIG_LRO = 50, 2689 2690 /* 2691 * 8 bit unsigned value to globally enable/disable scan 2692 * 1 - Enable, 0 - Disable. 2693 */ 2694 QCA_WLAN_VENDOR_ATTR_CONFIG_SCAN_ENABLE = 51, 2695 2696 /* 8-bit unsigned value to set the total beacon miss count 2697 * This parameter will set the total beacon miss count. 2698 */ 2699 QCA_WLAN_VENDOR_ATTR_CONFIG_TOTAL_BEACON_MISS_COUNT = 52, 2700 2701 /* Unsigned 32-bit value to configure the number of continuous 2702 * Beacon Miss which shall be used by the firmware to penalize 2703 * the RSSI for BTC. 2704 */ 2705 QCA_WLAN_VENDOR_ATTR_CONFIG_PENALIZE_AFTER_NCONS_BEACON_MISS_BTC = 53, 2706 2707 /* 8-bit unsigned value to configure the driver and below layers to 2708 * enable/disable all FILS features. 2709 * 0-enable, 1-disable 2710 */ 2711 QCA_WLAN_VENDOR_ATTR_CONFIG_DISABLE_FILS = 54, 2712 2713 /* 16-bit unsigned value to configure the level of WLAN latency 2714 * module. See enum qca_wlan_vendor_attr_config_latency_level. 2715 */ 2716 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL = 55, 2717 2718 /* 8-bit unsigned value indicating the driver to use the RSNE as-is from 2719 * the connect interface. Exclusively used for the scenarios where the 2720 * device is used as a test bed device with special functionality and 2721 * not recommended for production. This helps driver to not validate the 2722 * RSNE passed from user space and thus allow arbitrary IE data to be 2723 * used for testing purposes. 2724 * 1-enable, 0-disable. 2725 * Applications set/reset this configuration. If not reset, this 2726 * parameter remains in use until the driver is unloaded. 2727 */ 2728 QCA_WLAN_VENDOR_ATTR_CONFIG_RSN_IE = 56, 2729 2730 /* 8-bit unsigned value to trigger green Tx power saving. 2731 * 1-Enable, 0-Disable 2732 */ 2733 QCA_WLAN_VENDOR_ATTR_CONFIG_GTX = 57, 2734 2735 /* Attribute to configure disconnect IEs to the driver. 2736 * This carries an array of unsigned 8-bit characters. 2737 * 2738 * If this is configured, driver shall fill the IEs in disassoc/deauth 2739 * frame. 2740 * These IEs are expected to be considered only for the next 2741 * immediate disconnection (disassoc/deauth frame) originated by 2742 * the DUT, irrespective of the entity (user space/driver/firmware) 2743 * triggering the disconnection. 2744 * The host drivers are not expected to use the IEs set through 2745 * this interface for further disconnections after the first immediate 2746 * disconnection initiated post the configuration. 2747 * If the IEs are also updated through cfg80211 interface (after the 2748 * enhancement to cfg80211_disconnect), host driver is expected to 2749 * take the union of IEs from both of these interfaces and send in 2750 * further disassoc/deauth frames. 2751 */ 2752 QCA_WLAN_VENDOR_ATTR_CONFIG_DISCONNECT_IES = 58, 2753 2754 /* 8-bit unsigned value for ELNA bypass. 2755 * 0 - Disable eLNA bypass. 2756 * 1 - Enable eLNA bypass. 2757 * 2 - Reset eLNA bypass configuration, the driver should 2758 * revert to the default configuration of eLNA bypass. 2759 */ 2760 QCA_WLAN_VENDOR_ATTR_CONFIG_ELNA_BYPASS = 59, 2761 2762 /* 8-bit unsigned value. This attribute enables/disables the host driver 2763 * to send the Beacon Report Response with failure reason for the 2764 * scenarios where STA cannot honor the Beacon Report Request from AP. 2765 * 1-Enable, 0-Disable. 2766 */ 2767 QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_REPORT_FAIL = 60, 2768 2769 /* 8-bit unsigned value. This attribute enables/disables the host driver 2770 * to send roam reason information in the Reassociation Request frame to 2771 * the target AP when roaming within the same ESS. 2772 * 1-Enable, 0-Disable. 2773 */ 2774 QCA_WLAN_VENDOR_ATTR_CONFIG_ROAM_REASON = 61, 2775 2776 /* 32-bit unsigned value to configure different PHY modes to the 2777 * driver/firmware. The possible values are defined in 2778 * enum qca_wlan_vendor_phy_mode. The configuration will be reset to 2779 * default value, i.e., QCA_WLAN_VENDOR_PHY_MODE_AUTO upon restarting 2780 * the driver. 2781 */ 2782 QCA_WLAN_VENDOR_ATTR_CONFIG_PHY_MODE = 62, 2783 2784 /* 8-bit unsigned value to configure the maximum supported channel width 2785 * for STA mode. If this value is configured when STA is in connected 2786 * state, it should not exceed the negotiated channel width. If it is 2787 * configured when STA is in disconnected state, the configured value 2788 * will take effect for the next immediate connection. 2789 * This configuration can be sent inside 2790 * %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINKS to specify the maximum 2791 * supported channel width per-MLO link. 2792 * 2793 * This uses values defined in enum nl80211_chan_width. 2794 */ 2795 QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_WIDTH = 63, 2796 2797 /* 8-bit unsigned value to enable/disable dynamic bandwidth adjustment. 2798 * This attribute is only applicable for STA mode. When dynamic 2799 * bandwidth adjustment is disabled, STA will use static channel width 2800 * the value of which is negotiated during connection. 2801 * 1-enable (default), 0-disable 2802 */ 2803 QCA_WLAN_VENDOR_ATTR_CONFIG_DYNAMIC_BW = 64, 2804 2805 /* 8-bit unsigned value to configure the maximum number of subframes of 2806 * TX MSDU for aggregation. Possible values are 0-31. When set to 0, 2807 * it is decided by the hardware. 2808 */ 2809 QCA_WLAN_VENDOR_ATTR_CONFIG_TX_MSDU_AGGREGATION = 65, 2810 2811 /* 8-bit unsigned value to configure the maximum number of subframes of 2812 * RX MSDU for aggregation. Possible values are 0-31. When set to 0, 2813 * it is decided by the hardware. 2814 */ 2815 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_MSDU_AGGREGATION = 66, 2816 2817 /* 8-bit unsigned value. This attribute is used to dynamically 2818 * enable/disable the LDPC capability of the device. When configured in 2819 * the disconnected state, the updated configuration will be considered 2820 * for the immediately following connection attempt. If this 2821 * configuration is modified while the device is in the connected state, 2822 * the LDPC TX will be updated with this configuration immediately, 2823 * while the LDPC RX configuration update will take place starting from 2824 * the subsequent association attempt. 2825 * 1-Enable, 0-Disable. 2826 */ 2827 QCA_WLAN_VENDOR_ATTR_CONFIG_LDPC = 67, 2828 2829 /* 8-bit unsigned value. This attribute is used to dynamically 2830 * enable/disable the TX STBC capability of the device. When configured 2831 * in the disconnected state, the updated configuration will be 2832 * considered for the immediately following connection attempt. If the 2833 * connection is formed with TX STBC enabled and if this configuration 2834 * is disabled during that association, the TX will be impacted 2835 * immediately. Further connection attempts will disable TX STBC. 2836 * However, enabling the TX STBC for a connected session with disabled 2837 * capability is not allowed and will fail. 2838 * 1-Enable, 0-Disable. 2839 */ 2840 QCA_WLAN_VENDOR_ATTR_CONFIG_TX_STBC = 68, 2841 2842 /* 8-bit unsigned value. This attribute is used to dynamically 2843 * enable/disable the RX STBC capability of the device. When configured 2844 * in the disconnected state, the updated configuration will be 2845 * considered for the immediately following connection attempt. If the 2846 * configuration is modified in the connected state, there will be no 2847 * impact for the current association, but further connection attempts 2848 * will use the updated configuration. 2849 * 1-Enable, 0-Disable. 2850 */ 2851 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_STBC = 69, 2852 2853 /* 8-bit unsigned value. This attribute is used to dynamically configure 2854 * the number of spatial streams. When configured in the disconnected 2855 * state, the updated configuration will be considered for the 2856 * immediately following connection attempt. If the NSS is updated after 2857 * the connection, the updated NSS value is notified to the peer using 2858 * the Operating Mode Notification/Spatial Multiplexing Power Save 2859 * frame. The updated NSS value after the connection shall not be 2860 * greater than the one negotiated during the connection. Any such 2861 * higher value configuration shall be returned with a failure. 2862 * Only symmetric NSS configuration (such as 2X2 or 1X1) can be done 2863 * using this attribute. QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS and 2864 * QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS attributes shall be used to 2865 * configure the asymmetric NSS configuration (such as 1X2). 2866 */ 2867 QCA_WLAN_VENDOR_ATTR_CONFIG_NSS = 70, 2868 /* 8-bit unsigned value to configure Optimized Power Management mode: 2869 * Modes are defined by enum qca_wlan_vendor_opm_mode. 2870 * 2871 * This attribute shall be configured along with 2872 * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_ITO and 2873 * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_SPEC_WAKE_INTERVAL attributes 2874 * when its value is set to %QCA_WLAN_VENDOR_OPM_MODE_USER_DEFINED. 2875 */ 2876 QCA_WLAN_VENDOR_ATTR_CONFIG_OPTIMIZED_POWER_MANAGEMENT = 71, 2877 2878 /* 8-bit unsigned value. This attribute takes the QoS/access category 2879 * value represented by the enum qca_wlan_ac_type and expects the driver 2880 * to upgrade the UDP frames to this access category. The value of 2881 * QCA_WLAN_AC_ALL is invalid for this attribute. This will override the 2882 * DSCP value configured in the frame with the intention to only upgrade 2883 * the access category. That said, it is not intended to downgrade the 2884 * access category for the frames. 2885 * Set the value to QCA_WLAN_AC_BK if the QoS upgrade needs to be 2886 * disabled, as BK is of the lowest priority and an upgrade to it does 2887 * not result in any changes for the frames. 2888 * 2889 * If only UDP frames of BE or BK access category needs to be upgraded 2890 * without changing the access category of VO or VI UDP frames, refer to 2891 * attribute QCA_WLAN_VENDOR_ATTR_CONFIG_UDP_QOS_UPGRADE_FOR_BE_BK. 2892 * 2893 * This attribute is not recommended to be used as it blindly forces all 2894 * UDP packets to a higher access category which could impact the 2895 * traffic pattern of all apps using UDP and can cause unknown behavior. 2896 */ 2897 QCA_WLAN_VENDOR_ATTR_CONFIG_UDP_QOS_UPGRADE = 72, 2898 2899 /* 8-bit unsigned value. This attribute is used to dynamically configure 2900 * the number of chains to be used for transmitting data. This 2901 * configuration is allowed only when in connected state and will be 2902 * effective until disconnected. The driver rejects this configuration 2903 * if the number of spatial streams being used in the current connection 2904 * cannot be supported by this configuration. 2905 */ 2906 QCA_WLAN_VENDOR_ATTR_CONFIG_NUM_TX_CHAINS = 73, 2907 /* 8-bit unsigned value. This attribute is used to dynamically configure 2908 * the number of chains to be used for receiving data. This 2909 * configuration is allowed only when in connected state and will be 2910 * effective until disconnected. The driver rejects this configuration 2911 * if the number of spatial streams being used in the current connection 2912 * cannot be supported by this configuration. 2913 */ 2914 QCA_WLAN_VENDOR_ATTR_CONFIG_NUM_RX_CHAINS = 74, 2915 2916 /* 8-bit unsigned value to configure ANI setting type. 2917 * See &enum qca_wlan_ani_setting for possible values. 2918 */ 2919 QCA_WLAN_VENDOR_ATTR_CONFIG_ANI_SETTING = 75, 2920 /* 32-bit signed value to configure ANI level. This is used when 2921 * ANI settings type is &QCA_WLAN_ANI_SETTING_FIXED. 2922 * The set and get of ANI level with &QCA_WLAN_ANI_SETTING_AUTO 2923 * is invalid, the driver will return a failure. 2924 */ 2925 QCA_WLAN_VENDOR_ATTR_CONFIG_ANI_LEVEL = 76, 2926 2927 /* 8-bit unsigned value. This attribute is used to dynamically configure 2928 * the number of spatial streams used for transmitting the data. When 2929 * configured in the disconnected state, the configured value will 2930 * be considered for the following connection attempt. 2931 * If the NSS is updated after the connection, the updated NSS value 2932 * is notified to the peer using the Operating Mode Notification/Spatial 2933 * Multiplexing Power Save frame. 2934 * The TX NSS value configured after the connection shall not be greater 2935 * than the value negotiated during the connection. Any such higher 2936 * value configuration shall be treated as invalid configuration by 2937 * the driver. This attribute shall be configured along with 2938 * QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS attribute to define the symmetric 2939 * configuration (such as 2X2 or 1X1) or the asymmetric 2940 * configuration (such as 1X2). 2941 * If QCA_WLAN_VENDOR_ATTR_CONFIG_NSS attribute is also provided along 2942 * with this QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS attribute the driver 2943 * will update the TX NSS based on QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS. 2944 */ 2945 QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS = 77, 2946 2947 /* 8-bit unsigned value. This attribute is used to dynamically configure 2948 * the number of spatial streams used for receiving the data. When 2949 * configured in the disconnected state, the configured value will 2950 * be considered for the following connection attempt. 2951 * If the NSS is updated after the connection, the updated NSS value 2952 * is notified to the peer using the Operating Mode Notification/Spatial 2953 * Multiplexing Power Save frame. 2954 * The RX NSS value configured after the connection shall not be greater 2955 * than the value negotiated during the connection. Any such higher 2956 * value configuration shall be treated as invalid configuration by 2957 * the driver. This attribute shall be configured along with 2958 * QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS attribute to define the symmetric 2959 * configuration (such as 2X2 or 1X1) or the asymmetric 2960 * configuration (such as 1X2). 2961 * If QCA_WLAN_VENDOR_ATTR_CONFIG_NSS attribute is also provided along 2962 * with this QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS attribute the driver 2963 * will update the RX NSS based on QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS. 2964 */ 2965 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS = 78, 2966 2967 /* 2968 * 8-bit unsigned value. This attribute, when set, indicates whether the 2969 * specified interface is the primary STA interface when there are more 2970 * than one STA interfaces concurrently active. 2971 * 2972 * This configuration helps the firmware/hardware to support certain 2973 * features (e.g., roaming) on this primary interface, if the same 2974 * cannot be supported on the concurrent STA interfaces simultaneously. 2975 * 2976 * This configuration is only applicable for a single STA interface on 2977 * a device and gives the priority for it only over other concurrent STA 2978 * interfaces. 2979 * 2980 * If the device is a multi wiphy/soc, this configuration applies to a 2981 * single STA interface across the wiphys. 2982 * 2983 * 1-Enable (is the primary STA), 0-Disable (is not the primary STA) 2984 */ 2985 QCA_WLAN_VENDOR_ATTR_CONFIG_CONCURRENT_STA_PRIMARY = 79, 2986 2987 /* 2988 * 8-bit unsigned value. This attribute can be used to configure the 2989 * driver to enable/disable FT-over-DS feature. Possible values for 2990 * this attribute are 1-Enable and 0-Disable. 2991 */ 2992 QCA_WLAN_VENDOR_ATTR_CONFIG_FT_OVER_DS = 80, 2993 2994 /* 2995 * 8-bit unsigned value. This attribute can be used to configure the 2996 * firmware to enable/disable ARP/NS offload feature. Possible values 2997 * for this attribute are 0-Disable and 1-Enable. 2998 * 2999 * This attribute is only applicable for STA/P2P-Client interface, 3000 * and is optional, default behavior is ARP/NS offload enabled. 3001 * 3002 * This attribute can be set in disconnected and connected state, and 3003 * will restore to the default behavior if the interface is closed. 3004 */ 3005 QCA_WLAN_VENDOR_ATTR_CONFIG_ARP_NS_OFFLOAD = 81, 3006 3007 /* 3008 * 8-bit unsigned value. This attribute can be used to configure the 3009 * data path mode to be followed for audio traffic. Possible values 3010 * are defined in enum qca_wlan_audio_data_path. 3011 * 3012 * This attribute is used only when the driver advertises support for 3013 * QCA_WLAN_VENDOR_FEATURE_ENHANCED_AUDIO_EXPERIENCE_OVER_WLAN. 3014 */ 3015 QCA_WLAN_VENDOR_ATTR_CONFIG_AUDIO_DATA_PATH = 82, 3016 3017 /* 3018 * 8-bit unsigned value. This attribute can be used to configure the 3019 * Dedicated Bluetooth Antenna Mode (DBAM) feature. Possible values for 3020 * this attribute are defined in the enum qca_wlan_dbam_config. 3021 */ 3022 QCA_WLAN_VENDOR_ATTR_CONFIG_DBAM = 83, 3023 3024 /* 8-bit unsigned value. This attribute takes the QoS/access category 3025 * value represented by the enum qca_wlan_ac_type and expects the driver 3026 * to upgrade the UDP frames of BE or BK access category to this access 3027 * category. This attribute will not modify UDP frames of VO or VI 3028 * access category. The value of QCA_WLAN_AC_ALL is invalid for this 3029 * attribute. 3030 * 3031 * This will override the DSCP value configured in the frame with the 3032 * intention to only upgrade the access category. That said, it is not 3033 * intended to downgrade the access category for the frames. 3034 * Set the value to QCA_WLAN_AC_BK if the QoS upgrade needs to be 3035 * disabled, as BK is of the lowest priority and an upgrade to it does 3036 * not result in any changes for the frames. 3037 * 3038 * This attribute behavior is similar to 3039 * QCA_WLAN_VENDOR_ATTR_CONFIG_UDP_QOS_UPGRADE with the difference that 3040 * only UDP frames of BE or BK access category are upgraded and not 3041 * UDP frames of VI or VO access category. 3042 * 3043 * This attribute is not recommended to be used as it blindly forces all 3044 * UDP packets of BE or BK access category to a higher access category 3045 * which could impact the traffic pattern of all apps using UDP and can 3046 * cause unknown behavior. 3047 */ 3048 QCA_WLAN_VENDOR_ATTR_CONFIG_UDP_QOS_UPGRADE_FOR_BE_BK = 84, 3049 3050 /* 8-bit unsigned value to configure the driver to enable/disable the 3051 * periodic sounding for Tx beamformer functionality. The default 3052 * behavior uses algorithm to do sounding based on packet stats. 3053 * 3054 * 0 - Default behavior. 3055 * 1 - Enable the periodic sounding for Tx beamformer. 3056 */ 3057 QCA_WLAN_VENDOR_ATTR_CONFIG_BEAMFORMER_PERIODIC_SOUNDING = 85, 3058 3059 /* 8-bit unsigned value, whenever wifi calling (wfc) begins or ends, 3060 * userspace sends this information to the driver/firmware to configure 3061 * wfc state. The driver/firmware uses this information to 3062 * optimize power savings, rate adaption, roaming, etc. 3063 * 3064 * 1 - wfc is on. 3065 * 0 - wfc is off. 3066 */ 3067 QCA_WLAN_VENDOR_ATTR_CONFIG_WFC_STATE = 86, 3068 3069 /* 8-bit unsigned value to configure the driver to enable/disable the 3070 * EHT EML capability in management frame EHT capabilities. 3071 * 1 - Enable, 0 - Disable. 3072 */ 3073 QCA_WLAN_VENDOR_ATTR_CONFIG_EHT_EML_CAPABILITY = 87, 3074 3075 /* 8-bit unsigned value to configure the driver with EHT MLO max 3076 * simultaneous links to be used for MLO connection. 3077 * The range of the value is 0 to 14. 3078 */ 3079 QCA_WLAN_VENDOR_ATTR_CONFIG_EHT_MLO_MAX_SIMULTANEOUS_LINKS = 88, 3080 3081 /* 8-bit unsigned value to configure the driver with EHT MLO maximum 3082 * number of links to be used for MLO connection. Value 0 restores the 3083 * default value of the maximum MLO links capability of the device. 3084 * The range of the value is 0 to 15. 3085 * 3086 * 0 - Restore default device limit. 3087 * 1 to 15 - Set the maximum number of links to be used for an MLO 3088 * connection. 3089 */ 3090 QCA_WLAN_VENDOR_ATTR_CONFIG_EHT_MLO_MAX_NUM_LINKS = 89, 3091 3092 /* 8-bit unsigned value to configure the driver with EHT MLO mode. 3093 * Uses enum qca_wlan_eht_mlo_mode values. 3094 */ 3095 QCA_WLAN_VENDOR_ATTR_CONFIG_EHT_MLO_MODE = 90, 3096 3097 /* Nested attribute with frequencies in u32 attributes to configure a 3098 * list of allowed 20 MHz channel center frequencies in MHz for AP 3099 * operation. Whenever performing a channel selection operation, the 3100 * driver shall generate a new list based on this provided list by 3101 * filtering out channels that cannot be used at that time due to 3102 * regulatory or other constraints. The resulting list is used as the 3103 * list of all allowed channels, i.e., operation on any channel that is 3104 * not included is not allowed, whenever performing operations like ACS 3105 * and DFS. 3106 * 3107 * Userspace shall configure this before starting the AP and the 3108 * configuration is valid only from the next BSS start and until the 3109 * BSS is stopped. The driver shall clear this configuration when the 3110 * AP is stopped and fall back to the default behavior for subsequent 3111 * AP operation. 3112 * 3113 * The default behavior when this configuration is not applicable is the 3114 * driver can choose any of the channels supported by the hardware 3115 * except the channels that cannot be used due to regulatory or other 3116 * constraints. 3117 * 3118 * The driver shall reject this configuration if done after the AP is 3119 * started. This attribute can be used to specify user's choice of 3120 * frequencies and static puncture channel list, etc. 3121 */ 3122 QCA_WLAN_VENDOR_ATTR_CONFIG_AP_ALLOWED_FREQ_LIST = 91, 3123 3124 /* Nested attribute to indicate EHT MLO links to be forced active. 3125 * It contains link MAC address attributes. These nested attributes are 3126 * of the type NL80211_ATTR_MAC and are used to force enabling of the 3127 * MLO links corresponding to the indicated link MAC addresses. 3128 * Subsequently, the links corresponding to the link MAC addresses that 3129 * are not indicated are forced inactive. 3130 */ 3131 QCA_WLAN_VENDOR_ATTR_CONFIG_EHT_MLO_ACTIVE_LINKS = 92, 3132 3133 /* 8-bit unsigned value to configure EMLSR mode entry or exit. 3134 * Uses enum qca_wlan_emlsr_mode values. 3135 */ 3136 QCA_WLAN_VENDOR_ATTR_CONFIG_EMLSR_MODE_SWITCH = 93, 3137 3138 /* 8-bit unsigned value to configure the channel bandwidth 3139 * for CTS frame transmission during the dymamic bandwidth 3140 * signaling CTS procedure referred in IEEE Std 802.11-2020, 3141 * 10.3.2.9 CTS and DMG CTS procedure. 3142 * This configuration is used for testing purposes. 3143 * 3144 * This uses values defined in enum nl80211_chan_width. 3145 */ 3146 QCA_WLAN_VENDOR_ATTR_CONFIG_CTS_CHANNEL_WIDTH = 94, 3147 3148 /* 8-bit unsigned value. This attribute is used to dynamically 3149 * enable/suspend trigger based UL MU transmission. 3150 * This is supported in STA mode and the device sends Operating 3151 * Mode Indication to inform the change as described in 3152 * IEEE Std 802.11ax-2021, 26.9. 3153 * 3154 * This attribute can be configured when the STA is associated 3155 * to an AP and the configuration is maintained until the current 3156 * association terminates. 3157 * 3158 * By default all UL MU transmissions are enabled. 3159 * 3160 * Uses enum qca_ul_mu_config values. 3161 */ 3162 QCA_WLAN_VENDOR_ATTR_CONFIG_UL_MU_CONFIG = 95, 3163 3164 /* 8-bit unsigned value. Optionally specified along with 3165 * %QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_WIDTH when STA is in connected 3166 * state. This configuration is applicable only for the current 3167 * connection. This configuration not allowed in disconnected state. 3168 * This configuration can be sent inside 3169 * %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINKS to specify the maximum 3170 * supported channel width update type per-MLO link. 3171 * 3172 * Uses enum qca_chan_width_update_type values. 3173 */ 3174 QCA_WLAN_VENDOR_ATTR_CONFIG_CHAN_WIDTH_UPDATE_TYPE = 96, 3175 3176 /* 8-bit unsigned value to set EPCS (Emergency Preparedness 3177 * Communications Service) feature capability 3178 * 1 - Enable, 0 - Disable. 3179 * 3180 * This configuration is used for testing purposes. 3181 */ 3182 QCA_WLAN_VENDOR_ATTR_CONFIG_EPCS_CAPABILITY = 97, 3183 3184 /* 8-bit unsigned value to enable/disable EPCS priority access 3185 * 1 - Enable, 0 - Disable. 3186 * The EPCS priority access shall be enabled only when EPCS feature 3187 * capability is also enabled (see 3188 * QCA_WLAN_VENDOR_ATTR_CONFIG_EPCS_CAPABILITY). 3189 * 3190 * This configuration is used for testing purposes. 3191 */ 3192 QCA_WLAN_VENDOR_ATTR_CONFIG_EPCS_FUNCTION = 98, 3193 3194 /* 8-bit unsigned value. Used to specify the MLO link ID of a link 3195 * that is being configured. This attribute must be included in each 3196 * record nested inside %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINKS, and 3197 * may be included without nesting to indicate the link that is the 3198 * target of other configuration attributes. 3199 */ 3200 QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINK_ID = 99, 3201 3202 /* Array of nested links each identified by 3203 * %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINK_ID. This uses values defined in 3204 * enum qca_wlan_vendor_attr_config, explicit documentation shall be 3205 * added for the attributes in enum qca_wlan_vendor_attr_config to 3206 * support per-MLO link configuration through 3207 * %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINKS. 3208 * 3209 * Userspace can configure a single link or multiple links with this 3210 * attribute by nesting the corresponding configuration attributes and 3211 * %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINK_ID for each link. 3212 * 3213 * Userspace can fetch the configuration attribute values for a single 3214 * link or multiple links with this attribute by nesting the 3215 * corresponding configuration attributes and 3216 * %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINK_ID for each link. 3217 * 3218 * For STA interface, this attribute is applicable only in connected 3219 * state when the current connection is MLO capable. The valid values of 3220 * %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINK_ID are the link IDs of the 3221 * connected AP MLD links. 3222 * 3223 * For AP interface, this configuration applicable only after adding 3224 * MLO links to the AP interface with %NL80211_CMD_ADD_LINK and the 3225 * valid values of %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINK_ID are the link 3226 * IDs specified in %NL80211_CMD_ADD_LINK while adding the MLO links to 3227 * the AP interface. 3228 */ 3229 QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINKS = 100, 3230 3231 /* 16-bit unsigned value to configure power save inactivity timeout in 3232 * milliseconds. 3233 * 3234 * STA enters into power save mode (PM=1) after TX/RX inactivity of time 3235 * duration specified by %QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_ITO. 3236 * 3237 * This attribute shall be configured along with 3238 * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_SPEC_WAKE_INTERVAL when 3239 * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPTIMIZED_POWER_MANAGEMENT 3240 * is set to %QCA_WLAN_VENDOR_OPM_MODE_USER_DEFINED mode. 3241 */ 3242 QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_ITO = 101, 3243 3244 /* 16-bit unsigned value to configure speculative wake interval in 3245 * milliseconds. 3246 * 3247 * STA speculatively wakes up to look for buffered data by AP at 3248 * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_SPEC_WAKE_INTERVAL interval after 3249 * entering into power save. If configured zero, STA wakes up at 3250 * upcoming DTIM beacon. 3251 * 3252 * This attribute shall be configured along with 3253 * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_ITO and 3254 * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPTIMIZED_POWER_MANAGEMENT 3255 * to %QCA_WLAN_VENDOR_OPM_MODE_USER_DEFINED mode. 3256 */ 3257 QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_SPEC_WAKE_INTERVAL = 102, 3258 3259 /* 3260 * 16-bit unsigned value to configure TX max A-MPDU count. 3261 * 3262 * For STA interface, this attribute is applicable only in connected 3263 * state, peer MAC address is not required to be provided. 3264 * 3265 * For AP interface, this attribute is applicable only in started 3266 * state and one of the associated peer STAs must be specified with 3267 * QCA_WLAN_VENDOR_ATTR_CONFIG_PEER_MAC. If this is for an ML 3268 * association, the peer MAC address provided is the link address of 3269 * the non-AP MLD. 3270 * 3271 * This attribute runtime configures the TX maximum aggregation size. 3272 * The value must be in range of 1 to BA window size for the specific 3273 * peer. 3274 */ 3275 QCA_WLAN_VENDOR_ATTR_CONFIG_PEER_AMPDU_CNT = 103, 3276 3277 /* 3278 * 8-bit unsigned value to configure TID-to-link mapping negotiation 3279 * type. 3280 * Uses enum qca_wlan_ttlm_negotiation_support values. 3281 * 3282 * This value applies to the complete AP/non-AP MLD interface, and the 3283 * MLD advertises it within the Basic Multi-Link element in the 3284 * association frames. If a new value is configured during an active 3285 * connection, it will take effect in the subsequent associations and 3286 * is not reset during disconnection. 3287 * 3288 * This attribute is used for testing purposes. 3289 */ 3290 QCA_WLAN_VENDOR_ATTR_CONFIG_TTLM_NEGOTIATION_SUPPORT = 104, 3291 3292 /* 8-bit unsigned value. 3293 * 3294 * This attribute configures a traffic shaping mode 3295 * applied during coex scenarios. 3296 * By default all coex traffic shaping modes are enabled, 3297 * i.e., shape WLAN traffic based on coex traffic pattern and priority. 3298 * To shape traffic, STA may enter in power save mode 3299 * and AP may send CTS-to-self frame. 3300 * 3301 * Uses enum qca_coex_traffic_shaping_mode values. 3302 */ 3303 QCA_WLAN_VENDOR_ATTR_CONFIG_COEX_TRAFFIC_SHAPING_MODE = 105, 3304 3305 /* keep last */ 3306 QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST, 3307 QCA_WLAN_VENDOR_ATTR_CONFIG_MAX = 3308 QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST - 1, 3309 }; 3310 3311 /* Compatibility defines for previously used incorrect enum 3312 * qca_wlan_vendor_attr_config names. These values should not be used in any 3313 * new implementation. */ 3314 #define QCA_WLAN_VENDOR_ATTR_DISCONNECT_IES \ 3315 QCA_WLAN_VENDOR_ATTR_CONFIG_DISCONNECT_IES 3316 #define QCA_WLAN_VENDOR_ATTR_BEACON_REPORT_FAIL \ 3317 QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_REPORT_FAIL 3318 3319 /** 3320 * enum qca_ul_mu_config - UL MU configuration 3321 * @QCA_UL_MU_SUSPEND - All trigger based UL MU transmission is suspended 3322 * @QCA_UL_MU_ENABLE - All trigger based UL MU transmission is enabled 3323 */ 3324 enum qca_ul_mu_config { 3325 QCA_UL_MU_SUSPEND = 0, 3326 QCA_UL_MU_ENABLE = 1, 3327 }; 3328 3329 /** 3330 * enum qca_dbam_config - Specifies DBAM config mode 3331 * @QCA_DBAM_DISABLE: Firmware disables DBAM 3332 * @QCA_DBAM_ENABLE: Firmware enables DBAM opportunistically when 3333 * internal criteria are met. 3334 * @QCA_DBAM_FORCE_ENABLE: Firmware enables DBAM forcefully. 3335 */ 3336 enum qca_dbam_config { 3337 QCA_DBAM_DISABLE = 0, 3338 QCA_DBAM_ENABLE = 1, 3339 QCA_DBAM_FORCE_ENABLE = 2, 3340 }; 3341 3342 /** 3343 * enum qca_wlan_ani_setting - ANI setting type 3344 * @QCA_WLAN_ANI_SETTING_AUTO: Automatically determine ANI level 3345 * @QCA_WLAN_ANI_SETTING_FIXED: Fix ANI level to the dBm parameter 3346 */ 3347 enum qca_wlan_ani_setting { 3348 QCA_WLAN_ANI_SETTING_AUTO = 0, 3349 QCA_WLAN_ANI_SETTING_FIXED = 1, 3350 }; 3351 3352 /** 3353 * enum qca_wlan_vendor_attr_sap_config - Parameters for AP configuration 3354 * 3355 * @QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL: Optional (u8) 3356 * Channel number on which Access Point should restart. 3357 * Note: If both the driver and user space application supports the 6 GHz band, 3358 * this attribute is deprecated and QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY 3359 * should be used. 3360 * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL 3361 * is still used if either of the driver or user space application doesn't 3362 * support the 6 GHz band. 3363 * 3364 * @QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY: Optional (u32) 3365 * Channel center frequency (MHz) on which the access point should restart. 3366 */ 3367 enum qca_wlan_vendor_attr_sap_config { 3368 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_INVALID = 0, 3369 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL = 1, 3370 3371 /* List of frequencies on which AP is expected to operate. 3372 * This is irrespective of ACS configuration. This list is a priority 3373 * based one and is looked for before the AP is created to ensure the 3374 * best concurrency sessions (avoid MCC and use DBS/SCC) co-exist in 3375 * the system. 3376 */ 3377 QCA_WLAN_VENDOR_ATTR_SAP_MANDATORY_FREQUENCY_LIST = 2, 3378 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY = 3, 3379 3380 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_AFTER_LAST, 3381 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_MAX = 3382 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_AFTER_LAST - 1, 3383 }; 3384 3385 /** 3386 * enum qca_wlan_vendor_attr_sap_conditional_chan_switch - Parameters for AP 3387 * conditional channel switch 3388 */ 3389 enum qca_wlan_vendor_attr_sap_conditional_chan_switch { 3390 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_INVALID = 0, 3391 /* Priority based frequency list (an array of u32 values in host byte 3392 * order) 3393 */ 3394 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST = 1, 3395 /* Status of the conditional switch (u32). 3396 * 0: Success, Non-zero: Failure 3397 */ 3398 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS = 2, 3399 3400 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST, 3401 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_MAX = 3402 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST - 1, 3403 }; 3404 3405 /** 3406 * enum qca_wlan_gpio_attr - Parameters for GPIO configuration 3407 * 3408 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND: Required (u32) 3409 * value to specify the GPIO command. Please refer to enum qca_gpio_cmd_type 3410 * for the available values. 3411 * 3412 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM: Required (u32) 3413 * value to specify the GPIO number. 3414 * This is required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is 3415 * %QCA_WLAN_VENDOR_GPIO_CONFIG or %QCA_WLAN_VENDOR_GPIO_OUTPUT. 3416 * 3417 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_VALUE: Required (u32) 3418 * value to specify the GPIO output level. Please refer to enum qca_gpio_value 3419 * for the available values. 3420 * This is required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is 3421 * %QCA_WLAN_VENDOR_GPIO_OUTPUT. 3422 * 3423 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PULL_TYPE: Optional (u32) 3424 * value to specify the GPIO pull type. Please refer to enum qca_gpio_pull_type 3425 * for the available values. 3426 * This is required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is 3427 * %QCA_WLAN_VENDOR_GPIO_CONFIG and 3428 * %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG attribute is not present. 3429 * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG 3430 * attribute is present. 3431 * 3432 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTR_MODE: Optional (u32) 3433 * value to specify the GPIO interrupt mode. Please refer to enum 3434 * qca_gpio_interrupt_mode for the available values. 3435 * This is required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is 3436 * %QCA_WLAN_VENDOR_GPIO_CONFIG and 3437 * %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG attribute is not present. 3438 * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG 3439 * attribute is present. 3440 * 3441 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DIR: Optional (u32) 3442 * value to specify the GPIO direction. Please refer to enum qca_gpio_direction 3443 * for the available values. 3444 * This is required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is 3445 * %QCA_WLAN_VENDOR_GPIO_CONFIG and 3446 * %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG attribute is not present. 3447 * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG 3448 * attribute is present. 3449 * 3450 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MUX_CONFIG: Optional (u32) 3451 * Value to specify the mux config. Meaning of a given value is dependent 3452 * on the target chipset and GPIO pin. Must be of the range 0-15. 3453 * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is 3454 * %QCA_WLAN_VENDOR_GPIO_CONFIG. Defaults to 0. 3455 * 3456 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DRIVE: Optional (u32) 3457 * Value to specify the drive, refer to enum qca_gpio_drive. 3458 * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is 3459 * %QCA_WLAN_VENDOR_GPIO_CONFIG. Defaults to QCA_WLAN_GPIO_DRIVE_2MA(0). 3460 * 3461 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG: Optional (flag) 3462 * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is 3463 * %QCA_WLAN_VENDOR_GPIO_CONFIG. When present this attribute signals that all 3464 * other parameters for the given GPIO will be obtained from internal 3465 * configuration. Only %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM must be 3466 * specified to indicate the GPIO pin being configured. 3467 */ 3468 enum qca_wlan_gpio_attr { 3469 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INVALID = 0, 3470 /* Unsigned 32-bit attribute for GPIO command */ 3471 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND = 1, 3472 /* Unsigned 32-bit attribute for GPIO PIN number to configure */ 3473 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM = 2, 3474 /* Unsigned 32-bit attribute for GPIO value to configure */ 3475 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_VALUE = 3, 3476 /* Unsigned 32-bit attribute for GPIO pull type */ 3477 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PULL_TYPE = 4, 3478 /* Unsigned 32-bit attribute for GPIO interrupt mode */ 3479 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTR_MODE = 5, 3480 /* Unsigned 32-bit attribute for GPIO direction to configure */ 3481 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DIR = 6, 3482 /* Unsigned 32-bit attribute for GPIO mux config */ 3483 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MUX_CONFIG = 7, 3484 /* Unsigned 32-bit attribute for GPIO drive */ 3485 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DRIVE = 8, 3486 /* Flag attribute for using internal GPIO configuration */ 3487 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG = 9, 3488 3489 /* keep last */ 3490 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_LAST, 3491 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MAX = 3492 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_LAST - 1 3493 }; 3494 3495 /** 3496 * enum gpio_cmd_type - GPIO configuration command type 3497 * @QCA_WLAN_VENDOR_GPIO_CONFIG: Set GPIO configuration info 3498 * @QCA_WLAN_VENDOR_GPIO_OUTPUT: Set GPIO output level 3499 */ 3500 enum qca_gpio_cmd_type { 3501 QCA_WLAN_VENDOR_GPIO_CONFIG = 0, 3502 QCA_WLAN_VENDOR_GPIO_OUTPUT = 1, 3503 }; 3504 3505 /** 3506 * enum qca_gpio_pull_type - GPIO pull type 3507 * @QCA_WLAN_GPIO_PULL_NONE: Set GPIO pull type to none 3508 * @QCA_WLAN_GPIO_PULL_UP: Set GPIO pull up 3509 * @QCA_WLAN_GPIO_PULL_DOWN: Set GPIO pull down 3510 */ 3511 enum qca_gpio_pull_type { 3512 QCA_WLAN_GPIO_PULL_NONE = 0, 3513 QCA_WLAN_GPIO_PULL_UP = 1, 3514 QCA_WLAN_GPIO_PULL_DOWN = 2, 3515 QCA_WLAN_GPIO_PULL_MAX, 3516 }; 3517 3518 /** 3519 * enum qca_gpio_direction - GPIO direction 3520 * @QCA_WLAN_GPIO_INPUT: Set GPIO as input mode 3521 * @QCA_WLAN_GPIO_OUTPUT: Set GPIO as output mode 3522 * @QCA_WLAN_GPIO_VALUE_MAX: Invalid value 3523 */ 3524 enum qca_gpio_direction { 3525 QCA_WLAN_GPIO_INPUT = 0, 3526 QCA_WLAN_GPIO_OUTPUT = 1, 3527 QCA_WLAN_GPIO_DIR_MAX, 3528 }; 3529 3530 /** 3531 * enum qca_gpio_value - GPIO Value 3532 * @QCA_WLAN_GPIO_LEVEL_LOW: set gpio output level to low 3533 * @QCA_WLAN_GPIO_LEVEL_HIGH: set gpio output level to high 3534 * @QCA_WLAN_GPIO_LEVEL_MAX: Invalid value 3535 */ 3536 enum qca_gpio_value { 3537 QCA_WLAN_GPIO_LEVEL_LOW = 0, 3538 QCA_WLAN_GPIO_LEVEL_HIGH = 1, 3539 QCA_WLAN_GPIO_LEVEL_MAX, 3540 }; 3541 3542 /** 3543 * enum gpio_interrupt_mode - GPIO interrupt mode 3544 * @QCA_WLAN_GPIO_INTMODE_DISABLE: Disable interrupt trigger 3545 * @QCA_WLAN_GPIO_INTMODE_RISING_EDGE: Interrupt with GPIO rising edge trigger 3546 * @QCA_WLAN_GPIO_INTMODE_FALLING_EDGE: Interrupt with GPIO falling edge trigger 3547 * @QCA_WLAN_GPIO_INTMODE_BOTH_EDGE: Interrupt with GPIO both edge trigger 3548 * @QCA_WLAN_GPIO_INTMODE_LEVEL_LOW: Interrupt with GPIO level low trigger 3549 * @QCA_WLAN_GPIO_INTMODE_LEVEL_HIGH: Interrupt with GPIO level high trigger 3550 * @QCA_WLAN_GPIO_INTMODE_MAX: Invalid value 3551 */ 3552 enum qca_gpio_interrupt_mode { 3553 QCA_WLAN_GPIO_INTMODE_DISABLE = 0, 3554 QCA_WLAN_GPIO_INTMODE_RISING_EDGE = 1, 3555 QCA_WLAN_GPIO_INTMODE_FALLING_EDGE = 2, 3556 QCA_WLAN_GPIO_INTMODE_BOTH_EDGE = 3, 3557 QCA_WLAN_GPIO_INTMODE_LEVEL_LOW = 4, 3558 QCA_WLAN_GPIO_INTMODE_LEVEL_HIGH = 5, 3559 QCA_WLAN_GPIO_INTMODE_MAX, 3560 }; 3561 3562 /** 3563 * enum qca_gpio_drive - GPIO drive 3564 * @QCA_WLAN_GPIO_DRIVE_2MA: drive 2MA 3565 * @QCA_WLAN_GPIO_DRIVE_4MA: drive 4MA 3566 * @QCA_WLAN_GPIO_DRIVE_6MA: drive 6MA 3567 * @QCA_WLAN_GPIO_DRIVE_8MA: drive 8MA 3568 * @QCA_WLAN_GPIO_DRIVE_10MA: drive 10MA 3569 * @QCA_WLAN_GPIO_DRIVE_12MA: drive 12MA 3570 * @QCA_WLAN_GPIO_DRIVE_14MA: drive 14MA 3571 * @QCA_WLAN_GPIO_DRIVE_16MA: drive 16MA 3572 * @QCA_WLAN_GPIO_DRIVE_MAX: invalid GPIO drive 3573 */ 3574 enum qca_gpio_drive { 3575 QCA_WLAN_GPIO_DRIVE_2MA = 0, 3576 QCA_WLAN_GPIO_DRIVE_4MA = 1, 3577 QCA_WLAN_GPIO_DRIVE_6MA = 2, 3578 QCA_WLAN_GPIO_DRIVE_8MA = 3, 3579 QCA_WLAN_GPIO_DRIVE_10MA = 4, 3580 QCA_WLAN_GPIO_DRIVE_12MA = 5, 3581 QCA_WLAN_GPIO_DRIVE_14MA = 6, 3582 QCA_WLAN_GPIO_DRIVE_16MA = 7, 3583 QCA_WLAN_GPIO_DRIVE_MAX, 3584 }; 3585 3586 /** 3587 * qca_wlan_set_qdepth_thresh_attr - Parameters for setting 3588 * MSDUQ depth threshold per peer per tid in the target 3589 * 3590 * Associated Vendor Command: 3591 * QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH 3592 */ 3593 enum qca_wlan_set_qdepth_thresh_attr { 3594 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_INVALID = 0, 3595 /* 6-byte MAC address */ 3596 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_MAC_ADDR, 3597 /* Unsigned 32-bit attribute for holding the TID */ 3598 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_TID, 3599 /* Unsigned 32-bit attribute for holding the update mask 3600 * bit 0 - Update high priority msdu qdepth threshold 3601 * bit 1 - Update low priority msdu qdepth threshold 3602 * bit 2 - Update UDP msdu qdepth threshold 3603 * bit 3 - Update Non UDP msdu qdepth threshold 3604 * rest of bits are reserved 3605 */ 3606 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_UPDATE_MASK, 3607 /* Unsigned 32-bit attribute for holding the threshold value */ 3608 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_VALUE, 3609 3610 /* keep last */ 3611 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_LAST, 3612 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_MAX = 3613 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_LAST - 1, 3614 }; 3615 3616 /** 3617 * enum qca_acs_dfs_mode - Defines different types of DFS channel 3618 * configurations for ACS operation. 3619 * 3620 * @QCA_ACS_DFS_MODE_NONE: Refer to invalid DFS mode 3621 * @QCA_ACS_DFS_MODE_ENABLE: Consider DFS channels in ACS operation 3622 * @QCA_ACS_DFS_MODE_DISABLE: Do not consider DFS channels in ACS operation 3623 * @QCA_ACS_DFS_MODE_DEPRIORITIZE: Deprioritize DFS channels in ACS operation 3624 */ 3625 enum qca_acs_dfs_mode { 3626 QCA_ACS_DFS_MODE_NONE = 0, 3627 QCA_ACS_DFS_MODE_ENABLE = 1, 3628 QCA_ACS_DFS_MODE_DISABLE = 2, 3629 QCA_ACS_DFS_MODE_DEPRIORITIZE = 3, 3630 }; 3631 3632 /** 3633 * enum qca_wlan_vendor_attr_acs_config - Defines Configuration attributes 3634 * used by the vendor command QCA_NL80211_VENDOR_SUBCMD_ACS_POLICY. 3635 * 3636 * @QCA_WLAN_VENDOR_ATTR_ACS_DFS_MODE: Required (u8) 3637 * DFS mode for ACS operation from enum qca_acs_dfs_mode. 3638 * 3639 * @QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT: Required (u8) 3640 * channel number hint for ACS operation, if valid channel is specified then 3641 * ACS operation gives priority to this channel. 3642 * Note: If both the driver and user space application supports the 6 GHz band, 3643 * this attribute is deprecated and QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT 3644 * should be used. 3645 * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT 3646 * is still used if either of the driver or user space application doesn't 3647 * support the 6 GHz band. 3648 * 3649 * @QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT: Required (u32). 3650 * Channel center frequency (MHz) hint for ACS operation, if a valid center 3651 * frequency is specified, ACS operation gives priority to this channel. 3652 */ 3653 enum qca_wlan_vendor_attr_acs_config { 3654 QCA_WLAN_VENDOR_ATTR_ACS_MODE_INVALID = 0, 3655 QCA_WLAN_VENDOR_ATTR_ACS_DFS_MODE = 1, 3656 QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT = 2, 3657 QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT = 3, 3658 3659 QCA_WLAN_VENDOR_ATTR_ACS_DFS_AFTER_LAST, 3660 QCA_WLAN_VENDOR_ATTR_ACS_DFS_MAX = 3661 QCA_WLAN_VENDOR_ATTR_ACS_DFS_AFTER_LAST - 1, 3662 }; 3663 3664 /** 3665 * enum qca_wlan_vendor_attr_get_hw_capability - Wi-Fi hardware capability 3666 */ 3667 enum qca_wlan_vendor_attr_get_hw_capability { 3668 QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_INVALID, 3669 /* Antenna isolation 3670 * An attribute used in the response. 3671 * The content of this attribute is encoded in a byte array. Each byte 3672 * value is an antenna isolation value. The array length is the number 3673 * of antennas. 3674 */ 3675 QCA_WLAN_VENDOR_ATTR_ANTENNA_ISOLATION, 3676 /* Request HW capability 3677 * An attribute used in the request. 3678 * The content of this attribute is a u32 array for one or more of 3679 * hardware capabilities (attribute IDs) that are being requested. Each 3680 * u32 value has a value from this 3681 * enum qca_wlan_vendor_attr_get_hw_capability 3682 * identifying which capabilities are requested. 3683 */ 3684 QCA_WLAN_VENDOR_ATTR_GET_HW_CAPABILITY, 3685 3686 /* keep last */ 3687 QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_AFTER_LAST, 3688 QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_MAX = 3689 QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_AFTER_LAST - 1, 3690 }; 3691 3692 /** 3693 * enum qca_wlan_vendor_attr_ll_stats_ext - Attributes for MAC layer monitoring 3694 * offload which is an extension for LL_STATS. 3695 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_PERIOD: Monitoring period. Unit in ms. 3696 * If MAC counters do not exceed the threshold, FW will report monitored 3697 * link layer counters periodically as this setting. The first report is 3698 * always triggered by this timer. 3699 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_THRESHOLD: It is a percentage (1-99). 3700 * For each MAC layer counter, FW holds two copies. One is the current value. 3701 * The other is the last report. Once a current counter's increment is larger 3702 * than the threshold, FW will indicate that counter to host even if the 3703 * monitoring timer does not expire. 3704 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_CHG: Peer STA power state change 3705 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TID: TID of MSDU 3706 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NUM_MSDU: Count of MSDU with the same 3707 * failure code. 3708 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_STATUS: TX failure code 3709 * 1: TX packet discarded 3710 * 2: No ACK 3711 * 3: Postpone 3712 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_MAC_ADDRESS: peer MAC address 3713 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_STATE: Peer STA current state 3714 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_GLOBAL: Global threshold. 3715 * Threshold for all monitored parameters. If per counter dedicated threshold 3716 * is not enabled, this threshold will take effect. 3717 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_EVENT_MODE: Indicate what triggers this 3718 * event, PERORID_TIMEOUT == 1, THRESH_EXCEED == 0. 3719 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_ID: interface ID 3720 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ID: peer ID 3721 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BITMAP: bitmap for TX counters 3722 * Bit0: TX counter unit in MSDU 3723 * Bit1: TX counter unit in MPDU 3724 * Bit2: TX counter unit in PPDU 3725 * Bit3: TX counter unit in byte 3726 * Bit4: Dropped MSDUs 3727 * Bit5: Dropped Bytes 3728 * Bit6: MPDU retry counter 3729 * Bit7: MPDU failure counter 3730 * Bit8: PPDU failure counter 3731 * Bit9: MPDU aggregation counter 3732 * Bit10: MCS counter for ACKed MPDUs 3733 * Bit11: MCS counter for Failed MPDUs 3734 * Bit12: TX Delay counter 3735 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BITMAP: bitmap for RX counters 3736 * Bit0: MAC RX counter unit in MPDU 3737 * Bit1: MAC RX counter unit in byte 3738 * Bit2: PHY RX counter unit in PPDU 3739 * Bit3: PHY RX counter unit in byte 3740 * Bit4: Disorder counter 3741 * Bit5: Retry counter 3742 * Bit6: Duplication counter 3743 * Bit7: Discard counter 3744 * Bit8: MPDU aggregation size counter 3745 * Bit9: MCS counter 3746 * Bit10: Peer STA power state change (wake to sleep) counter 3747 * Bit11: Peer STA power save counter, total time in PS mode 3748 * Bit12: Probe request counter 3749 * Bit13: Other management frames counter 3750 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS_BITMAP: bitmap for CCA 3751 * Bit0: Idle time 3752 * Bit1: TX time 3753 * Bit2: time RX in current bss 3754 * Bit3: Out of current bss time 3755 * Bit4: Wireless medium busy time 3756 * Bit5: RX in bad condition time 3757 * Bit6: TX in bad condition time 3758 * Bit7: time wlan card not available 3759 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_SIGNAL_BITMAP: bitmap for signal 3760 * Bit0: Per channel SNR counter 3761 * Bit1: Per channel noise floor counter 3762 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_NUM: number of peers 3763 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CHANNEL_NUM: number of channels 3764 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_AC_RX_NUM: number of RX stats 3765 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS: per channel BSS CCA stats 3766 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER: container for per PEER stats 3767 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MSDU: Number of total TX MSDUs 3768 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MPDU: Number of total TX MPDUs 3769 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_PPDU: Number of total TX PPDUs 3770 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BYTES: bytes of TX data 3771 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP: Number of dropped TX packets 3772 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP_BYTES: Bytes dropped 3773 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_RETRY: waiting time without an ACK 3774 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_ACK: number of MPDU not-ACKed 3775 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_BACK: number of PPDU not-ACKed 3776 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR_NUM: 3777 * aggregation stats buffer length 3778 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS_NUM: length of mcs stats 3779 * buffer for ACKed MPDUs. 3780 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS_NUM: length of mcs stats 3781 * buffer for failed MPDUs. 3782 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_DELAY_ARRAY_SIZE: 3783 * length of delay stats array. 3784 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR: TX aggregation stats 3785 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS: MCS stats for ACKed MPDUs 3786 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS: MCS stats for failed MPDUs 3787 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DELAY: tx delay stats 3788 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU: MPDUs received 3789 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_BYTES: bytes received 3790 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU: PPDU received 3791 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU_BYTES: PPDU bytes received 3792 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_LOST: packets lost 3793 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_RETRY: number of RX packets 3794 * flagged as retransmissions 3795 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DUP: number of RX packets 3796 * flagged as duplicated 3797 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DISCARD: number of RX 3798 * packets discarded 3799 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR_NUM: length of RX aggregation 3800 * stats buffer. 3801 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS_NUM: length of RX mcs 3802 * stats buffer. 3803 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS: RX mcs stats buffer 3804 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR: aggregation stats buffer 3805 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_TIMES: times STAs go to sleep 3806 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_DURATION: STAs' total sleep time 3807 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PROBE_REQ: number of probe 3808 * requests received 3809 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MGMT: number of other mgmt 3810 * frames received 3811 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IDLE_TIME: Percentage of idle time 3812 * there is no TX, nor RX, nor interference. 3813 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_TIME: percentage of time 3814 * transmitting packets. 3815 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_TIME: percentage of time 3816 * for receiving. 3817 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BUSY: percentage of time 3818 * interference detected. 3819 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BAD: percentage of time 3820 * receiving packets with errors. 3821 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BAD: percentage of time 3822 * TX no-ACK. 3823 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NO_AVAIL: percentage of time 3824 * the chip is unable to work in normal conditions. 3825 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IN_BSS_TIME: percentage of time 3826 * receiving packets in current BSS. 3827 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_OUT_BSS_TIME: percentage of time 3828 * receiving packets not in current BSS. 3829 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ANT_NUM: number of antennas 3830 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_SIGNAL: 3831 * This is a container for per antenna signal stats. 3832 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_SNR: per antenna SNR value 3833 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_NF: per antenna NF value 3834 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_RSSI_BEACON: RSSI of beacon 3835 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_SNR_BEACON: SNR of beacon 3836 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_REPORT_TIME: u64 3837 * Absolute timestamp from 1970/1/1, unit in ms. After receiving the 3838 * message, user layer APP could call gettimeofday to get another 3839 * timestamp and calculate transfer delay for the message. 3840 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_MEASUREMENT_TIME: u32 3841 * Real period for this measurement, unit in us. 3842 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PAD: Attribute used for padding for 3843 * 64-bit alignment. 3844 */ 3845 enum qca_wlan_vendor_attr_ll_stats_ext { 3846 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_INVALID = 0, 3847 3848 /* Attributes for configurations */ 3849 QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_PERIOD, 3850 QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_THRESHOLD, 3851 3852 /* Peer STA power state change */ 3853 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_CHG, 3854 3855 /* TX failure event */ 3856 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TID, 3857 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NUM_MSDU, 3858 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_STATUS, 3859 3860 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_STATE, 3861 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_MAC_ADDRESS, 3862 3863 /* MAC counters */ 3864 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_GLOBAL, 3865 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_EVENT_MODE, 3866 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_ID, 3867 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ID, 3868 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BITMAP, 3869 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BITMAP, 3870 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS_BITMAP, 3871 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_SIGNAL_BITMAP, 3872 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_NUM, 3873 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CHANNEL_NUM, 3874 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS, 3875 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER, 3876 3877 /* Sub-attributes for PEER_AC_TX */ 3878 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MSDU, 3879 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MPDU, 3880 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_PPDU, 3881 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BYTES, 3882 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP, 3883 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP_BYTES, 3884 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_RETRY, 3885 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_ACK, 3886 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_BACK, 3887 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR_NUM, 3888 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS_NUM, 3889 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS_NUM, 3890 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR, 3891 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS, 3892 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS, 3893 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_DELAY_ARRAY_SIZE, 3894 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DELAY, 3895 3896 /* Sub-attributes for PEER_AC_RX */ 3897 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU, 3898 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_BYTES, 3899 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU, 3900 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU_BYTES, 3901 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_LOST, 3902 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_RETRY, 3903 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DUP, 3904 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DISCARD, 3905 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR_NUM, 3906 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS_NUM, 3907 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS, 3908 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR, 3909 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_TIMES, 3910 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_DURATION, 3911 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PROBE_REQ, 3912 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MGMT, 3913 3914 /* Sub-attributes for CCA_BSS */ 3915 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IDLE_TIME, 3916 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_TIME, 3917 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_TIME, 3918 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BUSY, 3919 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BAD, 3920 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BAD, 3921 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NO_AVAIL, 3922 3923 /* sub-attribute for BSS_RX_TIME */ 3924 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IN_BSS_TIME, 3925 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_OUT_BSS_TIME, 3926 3927 /* Sub-attributes for PEER_SIGNAL */ 3928 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ANT_NUM, 3929 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_SIGNAL, 3930 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_SNR, 3931 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_NF, 3932 3933 /* Sub-attributes for IFACE_BSS */ 3934 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_RSSI_BEACON, 3935 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_SNR_BEACON, 3936 3937 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_REPORT_TIME, 3938 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_MEASUREMENT_TIME, 3939 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PAD, 3940 3941 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_LAST, 3942 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_MAX = 3943 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_LAST - 1 3944 }; 3945 3946 /* Attributes for FTM commands and events */ 3947 3948 /** 3949 * enum qca_wlan_vendor_attr_loc_capa - Indoor location capabilities 3950 * 3951 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAGS: Various flags. See 3952 * enum qca_wlan_vendor_attr_loc_capa_flags. 3953 * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_SESSIONS: Maximum number 3954 * of measurement sessions that can run concurrently. 3955 * Default is one session (no session concurrency). 3956 * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_PEERS: The total number of unique 3957 * peers that are supported in running sessions. For example, 3958 * if the value is 8 and maximum number of sessions is 2, you can 3959 * have one session with 8 unique peers, or 2 sessions with 4 unique 3960 * peers each, and so on. 3961 * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_BURSTS_EXP: Maximum number 3962 * of bursts per peer, as an exponent (2^value). Default is 0, 3963 * meaning no multi-burst support. 3964 * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_MEAS_PER_BURST: Maximum number 3965 * of measurement exchanges allowed in a single burst. 3966 * @QCA_WLAN_VENDOR_ATTR_AOA_CAPA_SUPPORTED_TYPES: Supported AOA measurement 3967 * types. A bit mask (unsigned 32 bit value), each bit corresponds 3968 * to an AOA type as defined by enum qca_vendor_attr_aoa_type. 3969 */ 3970 enum qca_wlan_vendor_attr_loc_capa { 3971 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_INVALID, 3972 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAGS, 3973 QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_SESSIONS, 3974 QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_PEERS, 3975 QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_BURSTS_EXP, 3976 QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_MEAS_PER_BURST, 3977 QCA_WLAN_VENDOR_ATTR_AOA_CAPA_SUPPORTED_TYPES, 3978 /* keep last */ 3979 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_AFTER_LAST, 3980 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_MAX = 3981 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_AFTER_LAST - 1, 3982 }; 3983 3984 /** 3985 * enum qca_wlan_vendor_attr_loc_capa_flags: Indoor location capability flags 3986 * 3987 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_RESPONDER: Set if driver 3988 * can be configured as an FTM responder (for example, an AP that 3989 * services FTM requests). QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER 3990 * will be supported if set. 3991 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_INITIATOR: Set if driver 3992 * can run FTM sessions. QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION 3993 * will be supported if set. 3994 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_ASAP: Set if FTM responder 3995 * supports immediate (ASAP) response. 3996 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA: Set if driver supports standalone 3997 * AOA measurement using QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS. 3998 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA_IN_FTM: Set if driver supports 3999 * requesting AOA measurements as part of an FTM session. 4000 */ 4001 enum qca_wlan_vendor_attr_loc_capa_flags { 4002 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_RESPONDER = 1 << 0, 4003 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_INITIATOR = 1 << 1, 4004 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_ASAP = 1 << 2, 4005 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA = 1 << 3, 4006 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA_IN_FTM = 1 << 4, 4007 }; 4008 4009 /** 4010 * enum qca_wlan_vendor_attr_ftm_peer_info: Information about 4011 * a single peer in a measurement session. 4012 * 4013 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAC_ADDR: The MAC address of the peer. 4014 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAGS: Various flags related 4015 * to measurement. See enum qca_wlan_vendor_attr_ftm_peer_meas_flags. 4016 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_PARAMS: Nested attribute of 4017 * FTM measurement parameters, as specified by IEEE P802.11-REVmc/D7.0 4018 * 9.4.2.167. See enum qca_wlan_vendor_attr_ftm_meas_param for 4019 * list of supported attributes. 4020 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID: Initial token ID for 4021 * secure measurement. 4022 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_AOA_BURST_PERIOD: Request AOA 4023 * measurement every <value> bursts. If 0 or not specified, 4024 * AOA measurements will be disabled for this peer. 4025 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_FREQ: Frequency in MHz where 4026 * the measurement frames are exchanged. Optional; if not 4027 * specified, try to locate the peer in the kernel scan 4028 * results cache and use frequency from there. 4029 */ 4030 enum qca_wlan_vendor_attr_ftm_peer_info { 4031 QCA_WLAN_VENDOR_ATTR_FTM_PEER_INVALID, 4032 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAC_ADDR, 4033 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAGS, 4034 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_PARAMS, 4035 QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID, 4036 QCA_WLAN_VENDOR_ATTR_FTM_PEER_AOA_BURST_PERIOD, 4037 QCA_WLAN_VENDOR_ATTR_FTM_PEER_FREQ, 4038 /* keep last */ 4039 QCA_WLAN_VENDOR_ATTR_FTM_PEER_AFTER_LAST, 4040 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAX = 4041 QCA_WLAN_VENDOR_ATTR_FTM_PEER_AFTER_LAST - 1, 4042 }; 4043 4044 /** 4045 * enum qca_wlan_vendor_attr_ftm_peer_meas_flags: Measurement request flags, 4046 * per-peer 4047 * 4048 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_ASAP: If set, request 4049 * immediate (ASAP) response from peer. 4050 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCI: If set, request 4051 * LCI report from peer. The LCI report includes the absolute 4052 * location of the peer in "official" coordinates (similar to GPS). 4053 * See IEEE P802.11-REVmc/D7.0, 11.24.6.7 for more information. 4054 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCR: If set, request 4055 * Location civic report from peer. The LCR includes the location 4056 * of the peer in free-form format. See IEEE P802.11-REVmc/D7.0, 4057 * 11.24.6.7 for more information. 4058 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_SECURE: If set, 4059 * request a secure measurement. 4060 * QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID must also be provided. 4061 */ 4062 enum qca_wlan_vendor_attr_ftm_peer_meas_flags { 4063 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_ASAP = 1 << 0, 4064 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCI = 1 << 1, 4065 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCR = 1 << 2, 4066 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_SECURE = 1 << 3, 4067 }; 4068 4069 /** 4070 * enum qca_wlan_vendor_attr_ftm_meas_param: Measurement parameters 4071 * 4072 * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MEAS_PER_BURST: Number of measurements 4073 * to perform in a single burst. 4074 * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_NUM_BURSTS_EXP: Number of bursts to 4075 * perform, specified as an exponent (2^value). 4076 * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION: Duration of burst 4077 * instance, as specified in IEEE P802.11-REVmc/D7.0, 9.4.2.167. 4078 * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_PERIOD: Time between bursts, 4079 * as specified in IEEE P802.11-REVmc/D7.0, 9.4.2.167. Must 4080 * be larger than QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION. 4081 */ 4082 enum qca_wlan_vendor_attr_ftm_meas_param { 4083 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_INVALID, 4084 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MEAS_PER_BURST, 4085 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_NUM_BURSTS_EXP, 4086 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION, 4087 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_PERIOD, 4088 /* keep last */ 4089 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_AFTER_LAST, 4090 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MAX = 4091 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_AFTER_LAST - 1, 4092 }; 4093 4094 /** 4095 * enum qca_wlan_vendor_attr_ftm_peer_result: Per-peer results 4096 * 4097 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAC_ADDR: MAC address of the reported 4098 * peer. 4099 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS: Status of measurement 4100 * request for this peer. 4101 * See enum qca_wlan_vendor_attr_ftm_peer_result_status. 4102 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAGS: Various flags related 4103 * to measurement results for this peer. 4104 * See enum qca_wlan_vendor_attr_ftm_peer_result_flags. 4105 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS: Specified when 4106 * request failed and peer requested not to send an additional request 4107 * for this number of seconds. 4108 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCI: LCI report when received 4109 * from peer. In the format specified by IEEE P802.11-REVmc/D7.0, 4110 * 9.4.2.22.10. 4111 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCR: Location civic report when 4112 * received from peer. In the format specified by IEEE P802.11-REVmc/D7.0, 4113 * 9.4.2.22.13. 4114 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAMS: Reported when peer 4115 * overridden some measurement request parameters. See 4116 * enum qca_wlan_vendor_attr_ftm_meas_param. 4117 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AOA_MEAS: AOA measurement 4118 * for this peer. Same contents as @QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT. 4119 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS: Array of measurement 4120 * results. Each entry is a nested attribute defined 4121 * by enum qca_wlan_vendor_attr_ftm_meas. 4122 */ 4123 enum qca_wlan_vendor_attr_ftm_peer_result { 4124 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_INVALID, 4125 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAC_ADDR, 4126 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS, 4127 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAGS, 4128 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS, 4129 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCI, 4130 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCR, 4131 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAMS, 4132 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AOA_MEAS, 4133 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS, 4134 /* keep last */ 4135 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AFTER_LAST, 4136 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAX = 4137 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AFTER_LAST - 1, 4138 }; 4139 4140 /** 4141 * enum qca_wlan_vendor_attr_ftm_peer_result_status 4142 * 4143 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_OK: Request sent ok and results 4144 * will be provided. Peer may have overridden some measurement parameters, 4145 * in which case overridden parameters will be report by 4146 * QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAM attribute. 4147 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INCAPABLE: Peer is incapable 4148 * of performing the measurement request. No more results will be sent 4149 * for this peer in this session. 4150 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_FAILED: Peer reported request 4151 * failed, and requested not to send an additional request for number 4152 * of seconds specified by QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS 4153 * attribute. 4154 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INVALID: Request validation 4155 * failed. Request was not sent over the air. 4156 */ 4157 enum qca_wlan_vendor_attr_ftm_peer_result_status { 4158 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_OK, 4159 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INCAPABLE, 4160 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_FAILED, 4161 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INVALID, 4162 }; 4163 4164 /** 4165 * enum qca_wlan_vendor_attr_ftm_peer_result_flags: Various flags 4166 * for measurement result, per-peer 4167 * 4168 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAG_DONE: If set, 4169 * measurement completed for this peer. No more results will be reported 4170 * for this peer in this session. 4171 */ 4172 enum qca_wlan_vendor_attr_ftm_peer_result_flags { 4173 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAG_DONE = 1 << 0, 4174 }; 4175 4176 /** 4177 * enum qca_vendor_attr_loc_session_status: Session completion status code 4178 * 4179 * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_OK: Session completed 4180 * successfully. 4181 * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_ABORTED: Session aborted 4182 * by request. 4183 * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_INVALID: Session request 4184 * was invalid and was not started. 4185 * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_FAILED: Session had an error 4186 * and did not complete normally (for example out of resources). 4187 */ 4188 enum qca_vendor_attr_loc_session_status { 4189 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_OK, 4190 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_ABORTED, 4191 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_INVALID, 4192 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_FAILED, 4193 }; 4194 4195 /** 4196 * enum qca_wlan_vendor_attr_ftm_meas: Single measurement data 4197 * 4198 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T1: Time of departure (TOD) of FTM packet as 4199 * recorded by responder, in picoseconds. 4200 * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information. 4201 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T2: Time of arrival (TOA) of FTM packet at 4202 * initiator, in picoseconds. 4203 * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information. 4204 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T3: TOD of ACK packet as recorded by 4205 * initiator, in picoseconds. 4206 * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information. 4207 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T4: TOA of ACK packet at 4208 * responder, in picoseconds. 4209 * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information. 4210 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_RSSI: RSSI (signal level) as recorded 4211 * during this measurement exchange. Optional and will be provided if 4212 * the hardware can measure it. 4213 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOD_ERR: TOD error reported by 4214 * responder. Not always provided. 4215 * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information. 4216 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOA_ERR: TOA error reported by 4217 * responder. Not always provided. 4218 * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information. 4219 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOD_ERR: TOD error measured by 4220 * initiator. Not always provided. 4221 * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information. 4222 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOA_ERR: TOA error measured by 4223 * initiator. Not always provided. 4224 * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information. 4225 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PAD: Attribute used for padding for 64-bit 4226 * alignment. 4227 */ 4228 enum qca_wlan_vendor_attr_ftm_meas { 4229 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INVALID, 4230 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T1, 4231 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T2, 4232 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T3, 4233 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T4, 4234 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_RSSI, 4235 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOD_ERR, 4236 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOA_ERR, 4237 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOD_ERR, 4238 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOA_ERR, 4239 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PAD, 4240 /* keep last */ 4241 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_AFTER_LAST, 4242 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_MAX = 4243 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_AFTER_LAST - 1, 4244 }; 4245 4246 /** 4247 * enum qca_wlan_vendor_attr_aoa_type - AOA measurement type 4248 * 4249 * @QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE: Phase of the strongest 4250 * CIR (channel impulse response) path for each antenna. 4251 * @QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP: Phase and amplitude 4252 * of the strongest CIR path for each antenna. 4253 */ 4254 enum qca_wlan_vendor_attr_aoa_type { 4255 QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE, 4256 QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP, 4257 QCA_WLAN_VENDOR_ATTR_AOA_TYPE_MAX 4258 }; 4259 4260 /** 4261 * enum qca_wlan_vendor_attr_encryption_test - Attributes to 4262 * validate encryption engine 4263 * 4264 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_NEEDS_DECRYPTION: Flag attribute. 4265 * This will be included if the request is for decryption; if not included, 4266 * the request is treated as a request for encryption by default. 4267 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_CIPHER: Unsigned 32-bit value 4268 * indicating the key cipher suite. Takes same values as 4269 * NL80211_ATTR_KEY_CIPHER. 4270 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_KEYID: Unsigned 8-bit value 4271 * Key Id to be used for encryption 4272 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_TK: Array of 8-bit values. 4273 * Key (TK) to be used for encryption/decryption 4274 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_PN: Array of 8-bit values. 4275 * Packet number to be specified for encryption/decryption 4276 * 6 bytes for TKIP/CCMP/GCMP. 4277 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_DATA: Array of 8-bit values 4278 * representing the 802.11 packet (header + payload + FCS) that 4279 * needs to be encrypted/decrypted. 4280 * Encrypted/decrypted response from the driver will also be sent 4281 * to userspace with the same attribute. 4282 */ 4283 enum qca_wlan_vendor_attr_encryption_test { 4284 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_INVALID = 0, 4285 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_NEEDS_DECRYPTION, 4286 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_CIPHER, 4287 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_KEYID, 4288 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_TK, 4289 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_PN, 4290 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_DATA, 4291 4292 /* keep last */ 4293 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_AFTER_LAST, 4294 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_MAX = 4295 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_AFTER_LAST - 1 4296 }; 4297 4298 /** 4299 * enum qca_wlan_vendor_attr_dmg_rf_sector_type - Type of 4300 * sector for DMG RF sector operations. 4301 * 4302 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_RX: RX sector 4303 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_TX: TX sector 4304 */ 4305 enum qca_wlan_vendor_attr_dmg_rf_sector_type { 4306 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_RX, 4307 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_TX, 4308 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_MAX 4309 }; 4310 4311 /** 4312 * enum qca_wlan_vendor_attr_fw_state - State of firmware 4313 * 4314 * @QCA_WLAN_VENDOR_ATTR_FW_STATE_ERROR: FW is in bad state 4315 * @QCA_WLAN_VENDOR_ATTR_FW_STATE_ACTIVE: FW is active 4316 */ 4317 enum qca_wlan_vendor_attr_fw_state { 4318 QCA_WLAN_VENDOR_ATTR_FW_STATE_ERROR, 4319 QCA_WLAN_VENDOR_ATTR_FW_STATE_ACTIVE, 4320 QCA_WLAN_VENDOR_ATTR_FW_STATE_MAX 4321 }; 4322 4323 /** 4324 * BRP antenna limit mode 4325 * 4326 * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_DISABLE: Disable BRP force 4327 * antenna limit, BRP will be performed as usual. 4328 * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_EFFECTIVE: Define maximal 4329 * antennas limit. the hardware may use less antennas than the 4330 * maximum limit. 4331 * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_FORCE: The hardware will 4332 * use exactly the specified number of antennas for BRP. 4333 */ 4334 enum qca_wlan_vendor_attr_brp_ant_limit_mode { 4335 QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_DISABLE, 4336 QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_EFFECTIVE, 4337 QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_FORCE, 4338 QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_MAX 4339 }; 4340 4341 /** 4342 * enum qca_wlan_vendor_attr_dmg_rf_sector_cfg - Attributes for 4343 * DMG RF sector configuration for a single RF module. 4344 * The values are defined in a compact way which closely matches 4345 * the way it is stored in HW registers. 4346 * The configuration provides values for 32 antennas and 8 distribution 4347 * amplifiers, and together describes the characteristics of the RF 4348 * sector - such as a beam in some direction with some gain. 4349 * 4350 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MODULE_INDEX: Index 4351 * of RF module for this configuration. 4352 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE0: Bit 0 of edge 4353 * amplifier gain index. Unsigned 32 bit number containing 4354 * bits for all 32 antennas. 4355 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE1: Bit 1 of edge 4356 * amplifier gain index. Unsigned 32 bit number containing 4357 * bits for all 32 antennas. 4358 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE2: Bit 2 of edge 4359 * amplifier gain index. Unsigned 32 bit number containing 4360 * bits for all 32 antennas. 4361 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_HI: Phase values 4362 * for first 16 antennas, 2 bits per antenna. 4363 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_LO: Phase values 4364 * for last 16 antennas, 2 bits per antenna. 4365 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_DTYPE_X16: Contains 4366 * DTYPE values (3 bits) for each distribution amplifier, followed 4367 * by X16 switch bits for each distribution amplifier. There are 4368 * total of 8 distribution amplifiers. 4369 */ 4370 enum qca_wlan_vendor_attr_dmg_rf_sector_cfg { 4371 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_INVALID = 0, 4372 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MODULE_INDEX = 1, 4373 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE0 = 2, 4374 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE1 = 3, 4375 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE2 = 4, 4376 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_HI = 5, 4377 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_LO = 6, 4378 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_DTYPE_X16 = 7, 4379 4380 /* keep last */ 4381 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_AFTER_LAST, 4382 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MAX = 4383 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_AFTER_LAST - 1 4384 }; 4385 4386 enum qca_wlan_vendor_attr_ll_stats_set { 4387 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_INVALID = 0, 4388 /* Unsigned 32-bit value */ 4389 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_MPDU_SIZE_THRESHOLD = 1, 4390 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_AGGRESSIVE_STATS_GATHERING = 2, 4391 /* keep last */ 4392 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_AFTER_LAST, 4393 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_MAX = 4394 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_AFTER_LAST - 1, 4395 }; 4396 4397 /** 4398 * qca_wlan_ll_stats_clr_req_bitmap - Represents the bitmap to clear LL STATS 4399 * values for %QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_REQ_MASK. 4400 * 4401 * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO: Clear all radio statistics. 4402 * 4403 * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO_CCA: Clear cca_busy_time within 4404 * radio statistics. 4405 * 4406 * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO_CHANNEL: Clear all channel 4407 * statistics within radio statistics. 4408 * 4409 * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_SCAN: Clear all scan statistics within 4410 * radio statistics. 4411 * 4412 * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE: Clear all interface statistics. 4413 * 4414 * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_TXRATE: Clear all TX rate statistics 4415 * within interface statistics. 4416 * 4417 * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_AC: Clear all AC statistics within 4418 * interface statistics. 4419 * 4420 * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_CONTENTION: Clear all contention 4421 * (min, max, avg) statistics within AC statistics. 4422 * 4423 * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_ALL_PEER: Clear all peer statistics 4424 * on this interface. 4425 * 4426 * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_PER_PEER: Clear particular peer 4427 * statistics depending on the peer_mac. 4428 */ 4429 enum qca_wlan_ll_stats_clr_req_bitmap { 4430 QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO = BIT(0), 4431 QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO_CCA = BIT(1), 4432 QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO_CHANNELS = BIT(2), 4433 QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO_SCAN = BIT(3), 4434 QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE = BIT(4), 4435 QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_TXRATE = BIT(5), 4436 QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_AC = BIT(6), 4437 QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_CONTENTION = BIT(7), 4438 QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_ALL_PEER = BIT(8), 4439 QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_PER_PEER = BIT(9), 4440 }; 4441 4442 enum qca_wlan_vendor_attr_ll_stats_clr { 4443 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_INVALID = 0, 4444 /* Unsigned 32bit bitmap for clearing statistics, specified 4445 * in the enum qca_wlan_ll_stats_clr_req_bitmap. 4446 */ 4447 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_REQ_MASK = 1, 4448 /* Unsigned 8 bit value: Request to stop statistics collection */ 4449 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_REQ = 2, 4450 4451 /* Unsigned 32 bit bitmap: Response from the driver 4452 * for the cleared statistics 4453 */ 4454 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_RSP_MASK = 3, 4455 /* Unsigned 8 bit value: Response from driver/firmware 4456 * for the stop request 4457 */ 4458 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_RSP = 4, 4459 /* keep last */ 4460 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_AFTER_LAST, 4461 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_MAX = 4462 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_AFTER_LAST - 1, 4463 }; 4464 4465 /** 4466 * qca_wlan_ll_stats_get_req_bitmap - Represents the bitmap to request LL STATS 4467 * values for %QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_MASK. 4468 * 4469 * @QCA_WLAN_LL_STATS_GET_REQ_BITMAP_RADIO: Request all radio statistics. 4470 * 4471 * @QCA_WLAN_LL_STATS_GET_REQ_BITMAP_IFACE: Request interface statistics. 4472 * 4473 * @QCA_WLAN_LL_STATS_GET_REQ_BITMAP_ALL_PEER: Request all peer statistics. 4474 * 4475 * @QCA_WLAN_LL_STATS_GET_REQ_BITMAP_PER_PEER: Request per peer statistics. 4476 */ 4477 enum qca_wlan_ll_stats_get_req_bitmap { 4478 QCA_WLAN_LL_STATS_GET_REQ_BITMAP_RADIO = BIT(0), 4479 QCA_WLAN_LL_STATS_GET_REQ_BITMAP_IFACE = BIT(1), 4480 QCA_WLAN_LL_STATS_GET_REQ_BITMAP_ALL_PEER = BIT(2), 4481 QCA_WLAN_LL_STATS_GET_REQ_BITMAP_PER_PEER = BIT(3), 4482 }; 4483 4484 enum qca_wlan_vendor_attr_ll_stats_get { 4485 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_INVALID = 0, 4486 /* Unsigned 32 bit value provided by the caller issuing the GET stats 4487 * command. When reporting the stats results, the driver uses the same 4488 * value to indicate which GET request the results correspond to. 4489 */ 4490 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_ID = 1, 4491 /* Unsigned 32 bit value - bit mask to identify what statistics are 4492 * requested for retrieval specified in the enum 4493 * qca_wlan_ll_stats_get_req_bitmap 4494 */ 4495 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_MASK = 2, 4496 /* keep last */ 4497 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_AFTER_LAST, 4498 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_MAX = 4499 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_AFTER_LAST - 1, 4500 }; 4501 4502 enum qca_wlan_vendor_attr_ll_stats_results { 4503 QCA_WLAN_VENDOR_ATTR_LL_STATS_INVALID = 0, 4504 4505 /* 4506 * For Multi Link Operation (MLO) connection, per-link statistics will 4507 * be sent inside of %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and 4508 * cumulative statistics will be sent outside of 4509 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK to maintain backward 4510 * compatibility with legacy user space. Attributes which don't have 4511 * explicit documentation for MLO will be sent only outside of 4512 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK, such attributes values 4513 * don't depend on whether the connection is MLO capable or not, e.g., 4514 * radio and channel specific attributes. 4515 */ 4516 4517 /* Unsigned 32bit value. Used by the driver; must match the request id 4518 * provided with the QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET command. 4519 */ 4520 QCA_WLAN_VENDOR_ATTR_LL_STATS_RESULTS_REQ_ID = 1, 4521 4522 /* Unsigned 32 bit value. For an MLO connection, indicates the value of 4523 * the link with the best RSSI outside 4524 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value 4525 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK. 4526 */ 4527 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_BEACON_RX = 2, 4528 /* Unsigned 32 bit value. For an MLO connection, indicates the value of 4529 * the link with the best RSSI outside 4530 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value 4531 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK. 4532 */ 4533 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_RX = 3, 4534 /* Unsigned 32 bit value. For an MLO connection, indicates the value of 4535 * the link with the best RSSI outside 4536 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value 4537 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK. 4538 */ 4539 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_ACTION_RX = 4, 4540 /* Unsigned 32 bit value. For an MLO connection, indicates the value of 4541 * the link with the best RSSI outside 4542 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value 4543 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK. 4544 */ 4545 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_ACTION_TX = 5, 4546 /* Unsigned 32 bit value. For an MLO connection, indicates the value of 4547 * the link with the best RSSI outside 4548 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value 4549 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK. 4550 */ 4551 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_MGMT = 6, 4552 /* Unsigned 32 bit value. For an MLO connection, indicates the value of 4553 * the link with the best RSSI outside 4554 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value 4555 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK. 4556 */ 4557 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_DATA = 7, 4558 /* Unsigned 32 bit value. For an MLO connection, indicates the value of 4559 * the link with the best RSSI outside 4560 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value 4561 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK. 4562 */ 4563 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_ACK = 8, 4564 4565 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_* are 4566 * nested within the interface stats. 4567 */ 4568 4569 /* Interface mode, e.g., STA, SOFTAP, IBSS, etc. 4570 * Type = enum wifi_interface_mode. 4571 */ 4572 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_MODE = 9, 4573 /* Interface MAC address. An array of 6 Unsigned int8 */ 4574 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_MAC_ADDR = 10, 4575 /* Type = enum wifi_connection_state, e.g., DISCONNECTED, 4576 * AUTHENTICATING, etc. valid for STA, CLI only. 4577 */ 4578 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_STATE = 11, 4579 /* Type = enum wifi_roam_state. Roaming state, e.g., IDLE or ACTIVE 4580 */ 4581 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_ROAMING = 12, 4582 /* Unsigned 32 bit value. WIFI_CAPABILITY_XXX */ 4583 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_CAPABILITIES = 13, 4584 /* NULL terminated SSID. An array of 33 Unsigned 8bit values */ 4585 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_SSID = 14, 4586 /* For non-MLO connection, BSSID of the AP. For MLO connection, MLD 4587 * address of the AP. An array of 6 unsigned 8 bit values */ 4588 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_BSSID = 15, 4589 /* Country string advertised by AP. An array of 3 unsigned 8 bit 4590 * values. 4591 */ 4592 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_AP_COUNTRY_STR = 16, 4593 /* Country string for this association. An array of 3 unsigned 8 bit 4594 * values. 4595 */ 4596 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_COUNTRY_STR = 17, 4597 4598 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_* could 4599 * be nested within the interface stats. 4600 * For an MLO connection, all %QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_* 4601 * attributes except %QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_* 4602 * indicate the aggregate of all links outside 4603 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK. 4604 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_* attributes 4605 * indicate value of the MLO link with the best RSSI outside 4606 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK. 4607 * These attributes indicate the link specific value inside 4608 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK. 4609 */ 4610 4611 /* Type = enum wifi_traffic_ac, e.g., V0, VI, BE and BK */ 4612 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_AC = 18, 4613 /* Unsigned int 32 value corresponding to respective AC */ 4614 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_MPDU = 19, 4615 /* Unsigned int 32 value corresponding to respective AC */ 4616 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_MPDU = 20, 4617 /* Unsigned int 32 value corresponding to respective AC */ 4618 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_MCAST = 21, 4619 /* Unsigned int 32 value corresponding to respective AC */ 4620 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_MCAST = 22, 4621 /* Unsigned int 32 value corresponding to respective AC */ 4622 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_AMPDU = 23, 4623 /* Unsigned int 32 value corresponding to respective AC */ 4624 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_AMPDU = 24, 4625 /* Unsigned int 32 value corresponding to respective AC */ 4626 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_MPDU_LOST = 25, 4627 /* Unsigned int 32 value corresponding to respective AC */ 4628 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES = 26, 4629 /* Unsigned int 32 value corresponding to respective AC */ 4630 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES_SHORT = 27, 4631 /* Unsigned int 32 values corresponding to respective AC */ 4632 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES_LONG = 28, 4633 /* Unsigned int 32 values corresponding to respective AC */ 4634 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_MIN = 29, 4635 /* Unsigned int 32 values corresponding to respective AC */ 4636 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_MAX = 30, 4637 /* Unsigned int 32 values corresponding to respective AC */ 4638 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_AVG = 31, 4639 /* Unsigned int 32 values corresponding to respective AC */ 4640 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_NUM_SAMPLES = 32, 4641 /* Unsigned 32 bit value. Number of peers */ 4642 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_NUM_PEERS = 33, 4643 4644 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_* are 4645 * nested within the interface stats. 4646 */ 4647 4648 /* Type = enum wifi_peer_type. Peer type, e.g., STA, AP, P2P GO etc. */ 4649 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_TYPE = 34, 4650 /* MAC addr corresponding to respective peer. An array of 6 unsigned 4651 * 8 bit values. 4652 */ 4653 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_MAC_ADDRESS = 35, 4654 /* Unsigned int 32 bit value representing capabilities corresponding 4655 * to respective peer. 4656 */ 4657 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_CAPABILITIES = 36, 4658 /* Unsigned 32 bit value. Number of rates */ 4659 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_NUM_RATES = 37, 4660 4661 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_* 4662 * are nested within the rate stat. 4663 */ 4664 4665 /* Wi-Fi Rate - separate attributes defined for individual fields */ 4666 4667 /* Unsigned int 8 bit value; 0: OFDM, 1:CCK, 2:HT 3:VHT 4..7 reserved */ 4668 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_PREAMBLE = 38, 4669 /* Unsigned int 8 bit value; 0:1x1, 1:2x2, 3:3x3, 4:4x4 */ 4670 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_NSS = 39, 4671 /* Unsigned int 8 bit value; 0:20 MHz, 1:40 MHz, 2:80 MHz, 3:160 MHz */ 4672 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_BW = 40, 4673 /* Unsigned int 8 bit value; OFDM/CCK rate code would be as per IEEE Std 4674 * in the units of 0.5 Mbps HT/VHT it would be MCS index 4675 */ 4676 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_MCS_INDEX = 41, 4677 4678 /* Unsigned 32 bit value. Bit rate in units of 100 kbps */ 4679 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_BIT_RATE = 42, 4680 4681 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_STAT_* could be 4682 * nested within the peer info stats. 4683 */ 4684 4685 /* Unsigned int 32 bit value. Number of successfully transmitted data 4686 * packets, i.e., with ACK received corresponding to the respective 4687 * rate. 4688 */ 4689 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_TX_MPDU = 43, 4690 /* Unsigned int 32 bit value. Number of received data packets 4691 * corresponding to the respective rate. 4692 */ 4693 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RX_MPDU = 44, 4694 /* Unsigned int 32 bit value. Number of data packet losses, i.e., no ACK 4695 * received corresponding to the respective rate. 4696 */ 4697 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_MPDU_LOST = 45, 4698 /* Unsigned int 32 bit value. Total number of data packet retries for 4699 * the respective rate. 4700 */ 4701 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES = 46, 4702 /* Unsigned int 32 bit value. Total number of short data packet retries 4703 * for the respective rate. 4704 */ 4705 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES_SHORT = 47, 4706 /* Unsigned int 32 bit value. Total number of long data packet retries 4707 * for the respective rate. 4708 */ 4709 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES_LONG = 48, 4710 4711 /* Unsigned 32 bit value. This is used to indicate radio ID of the radio 4712 * statistics when %QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE is 4713 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_RADIO. This is also used 4714 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK to indicate radio ID 4715 * of the MLO link. 4716 */ 4717 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ID = 49, 4718 /* Unsigned 32 bit value. Total number of msecs the radio is awake 4719 * accruing over time. 4720 */ 4721 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME = 50, 4722 /* Unsigned 32 bit value. Total number of msecs the radio is 4723 * transmitting accruing over time. 4724 */ 4725 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_TX_TIME = 51, 4726 /* Unsigned 32 bit value. Total number of msecs the radio is in active 4727 * receive accruing over time. 4728 */ 4729 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_RX_TIME = 52, 4730 /* Unsigned 32 bit value. Total number of msecs the radio is awake due 4731 * to all scan accruing over time. 4732 */ 4733 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_SCAN = 53, 4734 /* Unsigned 32 bit value. Total number of msecs the radio is awake due 4735 * to NAN accruing over time. 4736 */ 4737 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_NBD = 54, 4738 /* Unsigned 32 bit value. Total number of msecs the radio is awake due 4739 * to GSCAN accruing over time. 4740 */ 4741 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_GSCAN = 55, 4742 /* Unsigned 32 bit value. Total number of msecs the radio is awake due 4743 * to roam scan accruing over time. 4744 */ 4745 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_ROAM_SCAN = 56, 4746 /* Unsigned 32 bit value. Total number of msecs the radio is awake due 4747 * to PNO scan accruing over time. 4748 */ 4749 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_PNO_SCAN = 57, 4750 /* Unsigned 32 bit value. Total number of msecs the radio is awake due 4751 * to Hotspot 2.0 scans and GAS exchange accruing over time. 4752 */ 4753 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_HS20 = 58, 4754 /* Unsigned 32 bit value. Number of channels. */ 4755 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_NUM_CHANNELS = 59, 4756 4757 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_* could 4758 * be nested within the channel stats. 4759 */ 4760 4761 /* Type = enum wifi_channel_width. Channel width, e.g., 20, 40, 80 */ 4762 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_WIDTH = 60, 4763 /* Unsigned 32 bit value. Primary 20 MHz channel. This is used to 4764 * indicate the primary frequency of the channel when 4765 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE is 4766 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_RADIO. This is also used inside 4767 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK to indicate the frequency 4768 * on which the MLO link is operating. 4769 */ 4770 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ = 61, 4771 /* Unsigned 32 bit value. Center frequency (MHz) first segment. */ 4772 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ0 = 62, 4773 /* Unsigned 32 bit value. Center frequency (MHz) second segment. */ 4774 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ1 = 63, 4775 4776 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_* could be 4777 * nested within the radio stats. 4778 */ 4779 4780 /* Unsigned int 32 bit value representing total number of msecs the 4781 * radio is awake on that channel accruing over time, corresponding to 4782 * the respective channel. 4783 */ 4784 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_ON_TIME = 64, 4785 /* Unsigned int 32 bit value representing total number of msecs the CCA 4786 * register is busy accruing over time corresponding to the respective 4787 * channel. 4788 */ 4789 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_CCA_BUSY_TIME = 65, 4790 4791 QCA_WLAN_VENDOR_ATTR_LL_STATS_NUM_RADIOS = 66, 4792 4793 /* Signifies the nested list of channel attributes 4794 * QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_* 4795 */ 4796 QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO = 67, 4797 4798 /* Signifies the nested list of peer info attributes 4799 * QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_*. For MLO connection, 4800 * this also contains %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK_ID to 4801 * indicate on which link the peer is connected. 4802 */ 4803 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO = 68, 4804 4805 /* Signifies the nested list of rate info attributes 4806 * QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_* 4807 */ 4808 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_RATE_INFO = 69, 4809 4810 /* Signifies the nested list of wmm info attributes 4811 * QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_* 4812 */ 4813 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_INFO = 70, 4814 4815 /* Unsigned 8 bit value. Used by the driver; if set to 1, it indicates 4816 * that more stats, e.g., peers or radio, are to follow in the next 4817 * QCA_NL80211_VENDOR_SUBCMD_LL_STATS_*_RESULTS event. 4818 * Otherwise, it is set to 0. 4819 */ 4820 QCA_WLAN_VENDOR_ATTR_LL_STATS_RESULTS_MORE_DATA = 71, 4821 4822 /* Unsigned 64 bit value. For an MLO connection, indicates the value of 4823 * the link with the best RSSI outside 4824 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value 4825 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK. 4826 */ 4827 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_AVERAGE_TSF_OFFSET = 72, 4828 4829 /* Unsigned 32 bit value. For an MLO connection, indicates the value of 4830 * the link with the best RSSI outside 4831 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value 4832 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK. 4833 */ 4834 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_DETECTED = 73, 4835 4836 /* Unsigned 32 bit value. For an MLO connection, indicates the value of 4837 * the link with the best RSSI outside 4838 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value 4839 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK. 4840 */ 4841 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_AVG_NUM_FRAMES_LEAKED = 74, 4842 4843 /* Unsigned 32 bit value. For an MLO connection, indicates the value of 4844 * the link with the best RSSI outside 4845 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value 4846 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK. 4847 */ 4848 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_GUARD_TIME = 75, 4849 4850 /* Unsigned 32 bit value */ 4851 QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE = 76, 4852 4853 /* Unsigned 32 bit value */ 4854 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_NUM_TX_LEVELS = 77, 4855 4856 /* Number of msecs the radio spent in transmitting for each power level 4857 */ 4858 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_TX_TIME_PER_LEVEL = 78, 4859 4860 /* Unsigned 32 bit value. For an MLO connection, indicates the value of 4861 * the link with the best RSSI outside 4862 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value 4863 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK. 4864 */ 4865 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RTS_SUCC_CNT = 79, 4866 /* Unsigned 32 bit value. For an MLO connection, indicates the value of 4867 * the link with the best RSSI outside 4868 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value 4869 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK. 4870 */ 4871 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RTS_FAIL_CNT = 80, 4872 /* Unsigned 32 bit value. For an MLO connection, indicates the value of 4873 * the link with the best RSSI outside 4874 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value 4875 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK. 4876 */ 4877 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_PPDU_SUCC_CNT = 81, 4878 /* Unsigned 32 bit value. For an MLO connection, indicates the value of 4879 * the link with the best RSSI outside 4880 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value 4881 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK. 4882 */ 4883 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_PPDU_FAIL_CNT = 82, 4884 4885 /* Unsigned int 32 value. 4886 * Pending MSDUs corresponding to respective AC. 4887 */ 4888 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_PENDING_MSDU = 83, 4889 4890 /* u32 value representing total time in milliseconds for which the radio 4891 * is transmitting on this channel. This attribute will be nested 4892 * within QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO. 4893 */ 4894 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_TX_TIME = 84, 4895 /* u32 value representing total time in milliseconds for which the radio 4896 * is receiving all 802.11 frames intended for this device on this 4897 * channel. This attribute will be nested within 4898 * QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO. 4899 */ 4900 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_RX_TIME = 85, 4901 /* u8 value representing the channel load percentage. Possible values 4902 * are 0-100. 4903 */ 4904 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_LOAD_PERCENTAGE = 86, 4905 /* u8 value representing the time slicing duty cycle percentage. 4906 * Possible values are 0-100. For an MLO connection, indicates the value 4907 * of the link with the best RSSI outside 4908 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value 4909 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK. 4910 */ 4911 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_TS_DUTY_CYCLE = 87, 4912 /* Unsigned 32 bit value. The number of Beacon frames which are received 4913 * from the associated AP and indicate buffered unicast frame(s) for us 4914 * in the TIM element. For an MLO connection, indicates the value of the 4915 * link with the best RSSI outside 4916 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value 4917 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK. 4918 */ 4919 QCA_WLAN_VENDOR_ATTR_LL_STATS_TIM_BEACON = 88, 4920 /* Unsigned 32 bit value. The total number of Beacon frames received 4921 * from the associated AP that have wrongly indicated buffered unicast 4922 * traffic in the TIM element for us. 4923 * Below scenarios will be considered as wrong TIM element beacon: 4924 * 1) The related TIM element is set in the beacon for STA but STA 4925 * doesn’t receive any unicast data after this beacon. 4926 * 2) The related TIM element is still set in the beacon for STA 4927 * after STA has indicated power save exit by QoS Null Data frame. 4928 * For an MLO connection, indicates the value of the link with the best 4929 * RSSI outside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link 4930 * specific value inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK. 4931 */ 4932 QCA_WLAN_VENDOR_ATTR_LL_STATS_TIM_BEACON_ERR = 89, 4933 4934 /* Signed 32 bit value. It represents the noise floor calibration value. 4935 * Possible values are -120~-50 dBm. For an MLO connection, indicates 4936 * the value of the link with the best RSSI outside 4937 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value 4938 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK. 4939 */ 4940 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_NF_CAL_VAL = 90, 4941 4942 /* Attribute used for padding for 64-bit alignment */ 4943 QCA_WLAN_VENDOR_ATTR_LL_STATS_PAD = 91, 4944 4945 /* Unsigned u8 value, link ID of an MLO link. Used inside nested 4946 * attribute %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK to represent the 4947 * link ID of the MLO link for which the statistics are embedded in the 4948 * nested attribute. Used inside nested attribute 4949 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO to represent the connected 4950 * link ID of the peer. 4951 */ 4952 QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK_ID = 92, 4953 4954 /* A nested array of attributes for each MLO link, each containing 4955 * per-link statistics of a multi link connection. The attributes used 4956 * inside this nested attribute are defined in enum 4957 * qca_wlan_vendor_attr_ll_stats_results. 4958 * 4959 * For non-MLO connection, this attribute is not present and the 4960 * statistics will be sent outside this attribute (without nesting). 4961 * 4962 * For MLO connection, this attribute is present and also cumulative 4963 * statistics of all the links will be sent outside of this attribute 4964 * to be compatible with legacy user space. 4965 */ 4966 QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK = 93, 4967 4968 /* keep last */ 4969 QCA_WLAN_VENDOR_ATTR_LL_STATS_AFTER_LAST, 4970 QCA_WLAN_VENDOR_ATTR_LL_STATS_MAX = 4971 QCA_WLAN_VENDOR_ATTR_LL_STATS_AFTER_LAST - 1, 4972 }; 4973 4974 enum qca_wlan_vendor_attr_ll_stats_type { 4975 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_INVALID = 0, 4976 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_RADIO = 1, 4977 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_IFACE = 2, 4978 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_PEERS = 3, 4979 4980 /* keep last */ 4981 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_AFTER_LAST, 4982 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_MAX = 4983 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_AFTER_LAST - 1, 4984 }; 4985 4986 /** 4987 * enum qca_wlan_vendor_attr_tdls_configuration - Attributes for 4988 * TDLS configuration to the host driver. 4989 * 4990 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE: Configure the TDLS trigger 4991 * mode in the host driver. enum qca_wlan_vendor_tdls_trigger_mode 4992 * represents the different TDLS trigger modes. 4993 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD: Duration (u32) within 4994 * which QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD number 4995 * of packets shall meet the criteria for implicit TDLS setup. 4996 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD: Number (u32) of Tx/Rx packets 4997 * within a duration QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD 4998 * to initiate a TDLS setup. 4999 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_DISCOVERY_PERIOD: Time (u32) to initiate 5000 * a TDLS Discovery to the peer. 5001 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX_DISCOVERY_ATTEMPT: Max number (u32) of 5002 * discovery attempts to know the TDLS capability of the peer. A peer is 5003 * marked as TDLS not capable if there is no response for all the attempts. 5004 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT: Represents a duration (u32) 5005 * within which QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD 5006 * number of TX / RX frames meet the criteria for TDLS teardown. 5007 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD: Minimum number (u32) 5008 * of Tx/Rx packets within a duration 5009 * QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT to tear down a TDLS link. 5010 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_SETUP_RSSI_THRESHOLD: Threshold 5011 * corresponding to the RSSI of the peer below which a TDLS setup is 5012 * triggered. 5013 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TEARDOWN_RSSI_THRESHOLD: Threshold 5014 * corresponding to the RSSI of the peer above which a TDLS teardown is 5015 * triggered. 5016 */ 5017 enum qca_wlan_vendor_attr_tdls_configuration { 5018 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_INVALID = 0, 5019 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE = 1, 5020 5021 /* Attributes configuring the TDLS Implicit Trigger */ 5022 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD = 2, 5023 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD = 3, 5024 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_DISCOVERY_PERIOD = 4, 5025 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX_DISCOVERY_ATTEMPT = 5, 5026 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT = 6, 5027 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD = 7, 5028 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_SETUP_RSSI_THRESHOLD = 8, 5029 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TEARDOWN_RSSI_THRESHOLD = 9, 5030 5031 /* keep last */ 5032 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_AFTER_LAST, 5033 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX = 5034 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_AFTER_LAST - 1 5035 }; 5036 5037 /** 5038 * enum qca_wlan_vendor_tdls_trigger_mode: Represents the TDLS trigger mode in 5039 * the driver 5040 * 5041 * The following are the different values for 5042 * QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE. 5043 * 5044 * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXPLICIT: The trigger to initiate/teardown 5045 * the TDLS connection to a respective peer comes from the user space. 5046 * wpa_supplicant provides the commands TDLS_SETUP, TDLS_TEARDOWN, 5047 * TDLS_DISCOVER to do this. 5048 * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_IMPLICIT: Host driver triggers this TDLS 5049 * setup/teardown to the eligible peer once the configured criteria 5050 * (such as TX/RX threshold, RSSI) is met. The attributes 5051 * in QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IMPLICIT_PARAMS correspond to 5052 * the different configuration criteria for the TDLS trigger from the 5053 * host driver. 5054 * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXTERNAL: Enables the driver to trigger 5055 * the TDLS setup / teardown through the implicit mode only to the 5056 * configured MAC addresses (wpa_supplicant, with tdls_external_control=1, 5057 * configures the MAC address through TDLS_SETUP / TDLS_TEARDOWN commands). 5058 * External mode works on top of the implicit mode. Thus the host driver 5059 * is expected to configure in TDLS Implicit mode too to operate in 5060 * External mode. 5061 * Configuring External mode alone without Implicit mode is invalid. 5062 * 5063 * All the above implementations work as expected only when the host driver 5064 * advertises the capability WPA_DRIVER_FLAGS_TDLS_EXTERNAL_SETUP - representing 5065 * that the TDLS message exchange is not internal to the host driver, but 5066 * depends on wpa_supplicant to do the message exchange. 5067 */ 5068 enum qca_wlan_vendor_tdls_trigger_mode { 5069 QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXPLICIT = 1 << 0, 5070 QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_IMPLICIT = 1 << 1, 5071 QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXTERNAL = 1 << 2, 5072 }; 5073 5074 /** 5075 * enum qca_vendor_attr_sar_limits_selections - Source of SAR power limits 5076 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF0: Select SAR profile #0 5077 * that is hard-coded in the Board Data File (BDF). 5078 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF1: Select SAR profile #1 5079 * that is hard-coded in the Board Data File (BDF). 5080 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF2: Select SAR profile #2 5081 * that is hard-coded in the Board Data File (BDF). 5082 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF3: Select SAR profile #3 5083 * that is hard-coded in the Board Data File (BDF). 5084 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF4: Select SAR profile #4 5085 * that is hard-coded in the Board Data File (BDF). 5086 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_NONE: Do not select any 5087 * source of SAR power limits, thereby disabling the SAR power 5088 * limit feature. 5089 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER: Select the SAR power 5090 * limits configured by %QCA_NL80211_VENDOR_SUBCMD_SET_SAR. 5091 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0: Select the SAR power 5092 * limits version 2.0 configured by %QCA_NL80211_VENDOR_SUBCMD_SET_SAR. 5093 * 5094 * This enumerates the valid set of values that may be supplied for 5095 * attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT in an instance of 5096 * the %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS vendor command or in 5097 * the response to an instance of the 5098 * %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS vendor command. 5099 */ 5100 enum qca_vendor_attr_sar_limits_selections { 5101 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF0 = 0, 5102 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF1 = 1, 5103 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF2 = 2, 5104 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF3 = 3, 5105 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF4 = 4, 5106 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_NONE = 5, 5107 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER = 6, 5108 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0 = 7, 5109 }; 5110 5111 /** 5112 * enum qca_vendor_attr_sar_limits_spec_modulations - 5113 * SAR limits specification modulation 5114 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_CCK - 5115 * CCK modulation 5116 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_OFDM - 5117 * OFDM modulation 5118 * 5119 * This enumerates the valid set of values that may be supplied for 5120 * attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION in an 5121 * instance of attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC in an 5122 * instance of the %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS vendor 5123 * command or in the response to an instance of the 5124 * %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS vendor command. 5125 */ 5126 enum qca_vendor_attr_sar_limits_spec_modulations { 5127 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_CCK = 0, 5128 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_OFDM = 1, 5129 }; 5130 5131 /** 5132 * enum qca_vendor_attr_sar_limits - Attributes for SAR power limits 5133 * 5134 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE: Optional (u32) value to 5135 * select which SAR power limit table should be used. Valid 5136 * values are enumerated in enum 5137 * %qca_vendor_attr_sar_limits_selections. The existing SAR 5138 * power limit selection is unchanged if this attribute is not 5139 * present. 5140 * 5141 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS: Optional (u32) value 5142 * which specifies the number of SAR power limit specifications 5143 * which will follow. 5144 * 5145 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC: Nested array of SAR power 5146 * limit specifications. The number of specifications is 5147 * specified by @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS. Each 5148 * specification contains a set of 5149 * QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_* attributes. A 5150 * specification is uniquely identified by the attributes 5151 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND, 5152 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN, and 5153 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION and always 5154 * contains as a payload the attribute 5155 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT, 5156 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX. 5157 * Either %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT or 5158 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX is 5159 * needed based upon the value of 5160 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE. 5161 * 5162 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND: Optional (u32) value to 5163 * indicate for which band this specification applies. Valid 5164 * values are enumerated in enum %nl80211_band (although not all 5165 * bands may be supported by a given device). If the attribute is 5166 * not supplied then the specification will be applied to all 5167 * supported bands. 5168 * 5169 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN: Optional (u32) value 5170 * to indicate for which antenna chain this specification 5171 * applies, i.e. 1 for chain 1, 2 for chain 2, etc. If the 5172 * attribute is not supplied then the specification will be 5173 * applied to all chains. 5174 * 5175 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION: Optional (u32) 5176 * value to indicate for which modulation scheme this 5177 * specification applies. Valid values are enumerated in enum 5178 * %qca_vendor_attr_sar_limits_spec_modulations. If the attribute 5179 * is not supplied then the specification will be applied to all 5180 * modulation schemes. 5181 * 5182 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT: Required (u32) 5183 * value to specify the actual power limit value in units of 0.5 5184 * dBm (i.e., a value of 11 represents 5.5 dBm). 5185 * This is required, when %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT is 5186 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER. 5187 * 5188 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX: Required (u32) 5189 * value to indicate SAR V2 indices (0 - 11) to select SAR V2 profiles. 5190 * This is required, when %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT is 5191 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0. 5192 * 5193 * These attributes are used with %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS 5194 * and %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS. 5195 */ 5196 enum qca_vendor_attr_sar_limits { 5197 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_INVALID = 0, 5198 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE = 1, 5199 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS = 2, 5200 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC = 3, 5201 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND = 4, 5202 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN = 5, 5203 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION = 6, 5204 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT = 7, 5205 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX = 8, 5206 5207 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_AFTER_LAST, 5208 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_MAX = 5209 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_AFTER_LAST - 1 5210 }; 5211 5212 /** 5213 * enum qca_wlan_vendor_attr_get_wifi_info: Attributes for data used by 5214 * QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_INFO sub command. 5215 * 5216 * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_DRIVER_VERSION: In a request this attribute 5217 * should be set to any U8 value to indicate that the driver version 5218 * should be returned. When enabled in this manner, in a response this 5219 * attribute will contain a string representation of the driver version. 5220 * 5221 * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_FIRMWARE_VERSION: In a request this attribute 5222 * should be set to any U8 value to indicate that the firmware version 5223 * should be returned. When enabled in this manner, in a response this 5224 * attribute will contain a string representation of the firmware version. 5225 * 5226 * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_RADIO_INDEX: In a request this attribute 5227 * should be set to any U32 value to indicate that the current radio 5228 * index should be returned. When enabled in this manner, in a response 5229 * this attribute will contain a U32 radio index value. 5230 * 5231 */ 5232 enum qca_wlan_vendor_attr_get_wifi_info { 5233 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_INVALID = 0, 5234 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_DRIVER_VERSION = 1, 5235 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_FIRMWARE_VERSION = 2, 5236 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_RADIO_INDEX = 3, 5237 5238 /* keep last */ 5239 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST, 5240 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_MAX = 5241 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST - 1, 5242 }; 5243 5244 /* 5245 * enum qca_wlan_vendor_attr_wifi_logger_start: Attributes for data used by 5246 * QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_START sub command. 5247 */ 5248 enum qca_wlan_vendor_attr_wifi_logger_start { 5249 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_INVALID = 0, 5250 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_RING_ID = 1, 5251 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_VERBOSE_LEVEL = 2, 5252 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_FLAGS = 3, 5253 5254 /* keep last */ 5255 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST, 5256 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_GET_MAX = 5257 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST - 1, 5258 }; 5259 5260 enum qca_wlan_vendor_attr_logger_results { 5261 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_INVALID = 0, 5262 5263 /* Unsigned 32-bit value; must match the request Id supplied by 5264 * Wi-Fi HAL in the corresponding subcmd NL msg. 5265 */ 5266 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_REQUEST_ID = 1, 5267 5268 /* Unsigned 32-bit value; used to indicate the size of memory 5269 * dump to be allocated. 5270 */ 5271 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_MEMDUMP_SIZE = 2, 5272 5273 /* keep last */ 5274 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_AFTER_LAST, 5275 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_MAX = 5276 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_AFTER_LAST - 1, 5277 }; 5278 5279 /** 5280 * enum qca_scan_freq_list_type: Frequency list types 5281 * 5282 * @QCA_PREFERRED_SCAN_FREQ_LIST: The driver shall use the scan frequency list 5283 * specified with attribute QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST as 5284 * a preferred frequency list for roaming. 5285 * 5286 * @QCA_SPECIFIC_SCAN_FREQ_LIST: The driver shall use the frequency list 5287 * specified with attribute QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST as 5288 * a specific frequency list for roaming. 5289 */ 5290 enum qca_scan_freq_list_type { 5291 QCA_PREFERRED_SCAN_FREQ_LIST = 1, 5292 QCA_SPECIFIC_SCAN_FREQ_LIST = 2, 5293 }; 5294 5295 /** 5296 * enum qca_vendor_attr_scan_freq_list_scheme: Frequency list scheme 5297 * 5298 * @QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST: Nested attribute of u32 values 5299 * List of frequencies in MHz to be considered for a roam scan. 5300 * 5301 * @QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_TYPE: Unsigned 32-bit value. 5302 * Type of frequency list scheme being configured/gotten as defined by the 5303 * enum qca_scan_freq_list_type. 5304 */ 5305 enum qca_vendor_attr_scan_freq_list_scheme { 5306 QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST = 1, 5307 QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_TYPE = 2, 5308 5309 /* keep last */ 5310 QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_AFTER_LAST, 5311 QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_MAX = 5312 QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_AFTER_LAST - 1, 5313 }; 5314 5315 /** 5316 * enum qca_roam_scan_scheme: Scan scheme 5317 * 5318 * @QCA_ROAM_SCAN_SCHEME_NO_SCAN: No frequencies specified to scan. 5319 * Indicates the driver to not scan on a Roam Trigger scenario, but 5320 * disconnect. E.g., on a BTM request from the AP the driver/firmware shall 5321 * disconnect from the current connected AP by notifying a failure 5322 * code in the BTM response. 5323 * 5324 * @QCA_ROAM_SCAN_SCHEME_PARTIAL_SCAN: Indicates the driver/firmware to 5325 * trigger partial frequency scans. These frequencies are the ones learned 5326 * or maintained by the driver based on the probability of finding the 5327 * BSSIDs in the ESS for which the roaming is triggered. 5328 * 5329 * @QCA_ROAM_SCAN_SCHEME_FULL_SCAN: Indicates the driver/firmware to 5330 * trigger the scan on all the valid frequencies to find better 5331 * candidates to roam. 5332 */ 5333 enum qca_roam_scan_scheme { 5334 QCA_ROAM_SCAN_SCHEME_NO_SCAN = 0, 5335 QCA_ROAM_SCAN_SCHEME_PARTIAL_SCAN = 1, 5336 QCA_ROAM_SCAN_SCHEME_FULL_SCAN = 2, 5337 }; 5338 5339 /* 5340 * enum qca_vendor_roam_triggers: Bitmap of roaming triggers 5341 * 5342 * @QCA_ROAM_TRIGGER_REASON_PER: Set if the roam has to be triggered based on 5343 * a bad packet error rates (PER). 5344 * @QCA_ROAM_TRIGGER_REASON_BEACON_MISS: Set if the roam has to be triggered 5345 * based on beacon misses from the connected AP. 5346 * @QCA_ROAM_TRIGGER_REASON_POOR_RSSI: Set if the roam has to be triggered 5347 * due to poor RSSI of the connected AP. 5348 * @QCA_ROAM_TRIGGER_REASON_BETTER_RSSI: Set if the roam has to be triggered 5349 * upon finding a BSSID with a better RSSI than the connected BSSID. 5350 * Also, set if the roam has to be triggered due to the high RSSI of the 5351 * current connected AP (better than 5352 * QCA_ATTR_ROAM_CONTROL_CONNECTED_HIGH_RSSI_OFFSET). Here the RSSI of 5353 * the current BSSID need not be poor. 5354 * @QCA_ROAM_TRIGGER_REASON_PERIODIC: Set if the roam has to be triggered 5355 * by triggering a periodic scan to find a better AP to roam. 5356 * @QCA_ROAM_TRIGGER_REASON_DENSE: Set if the roam has to be triggered 5357 * when the connected channel environment is too noisy/congested. 5358 * @QCA_ROAM_TRIGGER_REASON_BTM: Set if the roam has to be triggered 5359 * when BTM Request frame is received from the connected AP. 5360 * @QCA_ROAM_TRIGGER_REASON_BSS_LOAD: Set if the roam has to be triggered 5361 * when the channel utilization is goes above the configured threshold. 5362 * @QCA_ROAM_TRIGGER_REASON_USER_TRIGGER: Set if the roam has to be triggered 5363 * based on the request from the user (space). 5364 * @QCA_ROAM_TRIGGER_REASON_DEAUTH: Set if the roam has to be triggered when 5365 * device receives Deauthentication/Disassociation frame from connected AP. 5366 * @QCA_ROAM_TRIGGER_REASON_IDLE: Set if the roam has to be triggered when the 5367 * device is in idle state (no TX/RX) and suspend mode, if the current RSSI 5368 * is determined to be a poor one. 5369 * @QCA_ROAM_TRIGGER_REASON_TX_FAILURES: Set if the roam has to be triggered 5370 * based on continuous TX Data frame failures to the connected AP. 5371 * @QCA_ROAM_TRIGGER_REASON_EXTERNAL_SCAN: Set if the roam has to be triggered 5372 * based on the scan results obtained from an external scan (not triggered 5373 * to aim roaming). 5374 * 5375 * Set the corresponding roam trigger reason bit to consider it for roam 5376 * trigger. 5377 * Userspace can set multiple bits and send to the driver. The driver shall 5378 * consider all of them to trigger/initiate a roam scan. 5379 */ 5380 enum qca_vendor_roam_triggers { 5381 QCA_ROAM_TRIGGER_REASON_PER = 1 << 0, 5382 QCA_ROAM_TRIGGER_REASON_BEACON_MISS = 1 << 1, 5383 QCA_ROAM_TRIGGER_REASON_POOR_RSSI = 1 << 2, 5384 QCA_ROAM_TRIGGER_REASON_BETTER_RSSI = 1 << 3, 5385 QCA_ROAM_TRIGGER_REASON_PERIODIC = 1 << 4, 5386 QCA_ROAM_TRIGGER_REASON_DENSE = 1 << 5, 5387 QCA_ROAM_TRIGGER_REASON_BTM = 1 << 6, 5388 QCA_ROAM_TRIGGER_REASON_BSS_LOAD = 1 << 7, 5389 QCA_ROAM_TRIGGER_REASON_USER_TRIGGER = 1 << 8, 5390 QCA_ROAM_TRIGGER_REASON_DEAUTH = 1 << 9, 5391 QCA_ROAM_TRIGGER_REASON_IDLE = 1 << 10, 5392 QCA_ROAM_TRIGGER_REASON_TX_FAILURES = 1 << 11, 5393 QCA_ROAM_TRIGGER_REASON_EXTERNAL_SCAN = 1 << 12, 5394 }; 5395 5396 /* 5397 * enum qca_vendor_roam_fail_reasons: Defines the various roam 5398 * fail reasons. This enum value is used in 5399 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_FAIL_REASON attribute. 5400 * 5401 * @QCA_ROAM_FAIL_REASON_SCAN_NOT_ALLOWED: Roam module in the firmware is not 5402 * able to trigger the scan. 5403 * @QCA_ROAM_FAIL_REASON_NO_AP_FOUND: No roamable APs found during roam scan. 5404 * @QCA_ROAM_FAIL_REASON_NO_CAND_AP_FOUND: No candidate APs found during roam 5405 * scan. 5406 * @QCA_ROAM_FAIL_REASON_HOST: Roam fail due to disconnect issued from host. 5407 * @QCA_ROAM_FAIL_REASON_AUTH_SEND: Unable to send Authentication frame. 5408 * @QCA_ROAM_FAIL_REASON_AUTH_RECV: Received Authentication frame with error 5409 * status code. 5410 * @QCA_ROAM_FAIL_REASON_NO_AUTH_RESP: Authentication frame not received. 5411 * @QCA_ROAM_FAIL_REASON_REASSOC_SEND: Unable to send Reassociation Request 5412 * frame. 5413 * @QCA_ROAM_FAIL_REASON_REASSOC_RECV: Received Reassociation Response frame 5414 * with error status code. 5415 * @QCA_ROAM_FAIL_REASON_NO_REASSOC_RESP: Reassociation Response frame not 5416 * received. 5417 * @QCA_ROAM_FAIL_REASON_SCAN_FAIL: Scan module not able to start scan. 5418 * @QCA_ROAM_FAIL_REASON_AUTH_NO_ACK: No ACK is received for Authentication 5419 * frame. 5420 * @QCA_ROAM_FAIL_REASON_AUTH_INTERNAL_DROP: Authentication frame is dropped 5421 * internally before transmission. 5422 * @QCA_ROAM_FAIL_REASON_REASSOC_NO_ACK: No ACK is received for Reassociation 5423 * Request frame. 5424 * @QCA_ROAM_FAIL_REASON_REASSOC_INTERNAL_DROP: Reassociation Request frame is 5425 * dropped internally. 5426 * @QCA_ROAM_FAIL_REASON_EAPOL_M1_TIMEOUT: EAPOL-Key M1 is not received and 5427 * times out. 5428 * @QCA_ROAM_FAIL_REASON_EAPOL_M2_SEND: Unable to send EAPOL-Key M2 frame. 5429 * @QCA_ROAM_FAIL_REASON_EAPOL_M2_INTERNAL_DROP: EAPOL-Key M2 frame dropped 5430 * internally. 5431 * @QCA_ROAM_FAIL_REASON_EAPOL_M2_NO_ACK: No ACK is received for EAPOL-Key 5432 * M2 frame. 5433 * @QCA_ROAM_FAIL_REASON_EAPOL_M3_TIMEOUT: EAPOL-Key M3 frame is not received. 5434 * @QCA_ROAM_FAIL_REASON_EAPOL_M4_SEND: Unable to send EAPOL-Key M4 frame. 5435 * @QCA_ROAM_FAIL_REASON_EAPOL_M4_INTERNAL_DROP: EAPOL-Key M4 frame dropped 5436 * internally. 5437 * @QCA_ROAM_FAIL_REASON_EAPOL_M4_NO_ACK: No ACK is received for EAPOL-Key M4 5438 * frame. 5439 * @QCA_ROAM_FAIL_REASON_NO_SCAN_FOR_FINAL_BEACON_MISS: Roam scan is not 5440 * started for final beacon miss case. 5441 * @QCA_ROAM_FAIL_REASON_DISCONNECT: Deauthentication or Disassociation frame 5442 * received from the AP during roaming handoff. 5443 * @QCA_ROAM_FAIL_REASON_RESUME_ABORT: Firmware roams to the AP when the Apps 5444 * or host is suspended and gives the indication of the last roamed AP only 5445 * when the Apps is resumed. If the Apps is resumed while the roaming is in 5446 * progress, this ongoing roaming is aborted and the last roamed AP is 5447 * indicated to host. 5448 * @QCA_ROAM_FAIL_REASON_SAE_INVALID_PMKID: WPA3-SAE invalid PMKID. 5449 * @QCA_ROAM_FAIL_REASON_SAE_PREAUTH_TIMEOUT: WPA3-SAE pre-authentication times 5450 * out. 5451 * @QCA_ROAM_FAIL_REASON_SAE_PREAUTH_FAIL: WPA3-SAE pre-authentication fails. 5452 * @QCA_ROAM_FAIL_REASON_CURR_AP_STILL_OK: Roam scan did not happen since the 5453 * current network conditions are fine. 5454 */ 5455 enum qca_vendor_roam_fail_reasons { 5456 QCA_ROAM_FAIL_REASON_NONE = 0, 5457 QCA_ROAM_FAIL_REASON_SCAN_NOT_ALLOWED = 1, 5458 QCA_ROAM_FAIL_REASON_NO_AP_FOUND = 2, 5459 QCA_ROAM_FAIL_REASON_NO_CAND_AP_FOUND = 3, 5460 QCA_ROAM_FAIL_REASON_HOST = 4, 5461 QCA_ROAM_FAIL_REASON_AUTH_SEND = 5, 5462 QCA_ROAM_FAIL_REASON_AUTH_RECV = 6, 5463 QCA_ROAM_FAIL_REASON_NO_AUTH_RESP = 7, 5464 QCA_ROAM_FAIL_REASON_REASSOC_SEND = 8, 5465 QCA_ROAM_FAIL_REASON_REASSOC_RECV = 9, 5466 QCA_ROAM_FAIL_REASON_NO_REASSOC_RESP = 10, 5467 QCA_ROAM_FAIL_REASON_SCAN_FAIL = 11, 5468 QCA_ROAM_FAIL_REASON_AUTH_NO_ACK = 12, 5469 QCA_ROAM_FAIL_REASON_AUTH_INTERNAL_DROP = 13, 5470 QCA_ROAM_FAIL_REASON_REASSOC_NO_ACK = 14, 5471 QCA_ROAM_FAIL_REASON_REASSOC_INTERNAL_DROP = 15, 5472 QCA_ROAM_FAIL_REASON_EAPOL_M1_TIMEOUT = 16, 5473 QCA_ROAM_FAIL_REASON_EAPOL_M2_SEND = 17, 5474 QCA_ROAM_FAIL_REASON_EAPOL_M2_INTERNAL_DROP = 18, 5475 QCA_ROAM_FAIL_REASON_EAPOL_M2_NO_ACK = 19, 5476 QCA_ROAM_FAIL_REASON_EAPOL_M3_TIMEOUT = 20, 5477 QCA_ROAM_FAIL_REASON_EAPOL_M4_SEND = 21, 5478 QCA_ROAM_FAIL_REASON_EAPOL_M4_INTERNAL_DROP = 22, 5479 QCA_ROAM_FAIL_REASON_EAPOL_M4_NO_ACK = 23, 5480 QCA_ROAM_FAIL_REASON_NO_SCAN_FOR_FINAL_BEACON_MISS = 24, 5481 QCA_ROAM_FAIL_REASON_DISCONNECT = 25, 5482 QCA_ROAM_FAIL_REASON_RESUME_ABORT = 26, 5483 QCA_ROAM_FAIL_REASON_SAE_INVALID_PMKID = 27, 5484 QCA_ROAM_FAIL_REASON_SAE_PREAUTH_TIMEOUT = 28, 5485 QCA_ROAM_FAIL_REASON_SAE_PREAUTH_FAIL = 29, 5486 QCA_ROAM_FAIL_REASON_CURR_AP_STILL_OK = 30, 5487 }; 5488 5489 /* 5490 * enum qca_vendor_roam_invoke_fail_reasons: Defines the various roam 5491 * invoke fail reasons. This enum value is used in 5492 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_INVOKE_FAIL_REASON attribute. 5493 * 5494 * @QCA_ROAM_INVOKE_STATUS_IFACE_INVALID: Invalid interface ID is passed 5495 * in roam invoke command. 5496 * @QCA_ROAM_INVOKE_STATUS_OFFLOAD_DISABLE: Roam offload in firmware is not 5497 * enabled. 5498 * @QCA_ROAM_INVOKE_STATUS_AP_SSID_LENGTH_INVALID: Connected AP profile SSID 5499 * length is invalid. 5500 * @QCA_ROAM_INVOKE_STATUS_ROAM_DISALLOW: Firmware internal roaming is already 5501 * in progress. 5502 * @QCA_ROAM_INVOKE_STATUS_NON_ROAMABLE_AP: Host sends the Beacon/Probe Response 5503 * of the AP in the roam invoke command to firmware. This reason is sent by the 5504 * firmware when the given AP is configured to be ignored or SSID/security 5505 * does not match. 5506 * @QCA_ROAM_INVOKE_STATUS_ROAM_INTERNAL_FAIL: Roam handoff failed because of 5507 * firmware internal reasons. 5508 * @QCA_ROAM_INVOKE_STATUS_DISALLOW: Roam invoke trigger is not enabled. 5509 * @QCA_ROAM_INVOKE_STATUS_SCAN_FAIL: Scan start fail for roam invoke. 5510 * @QCA_ROAM_INVOKE_STATUS_START_ROAM_FAIL: Roam handoff start fail. 5511 * @QCA_ROAM_INVOKE_STATUS_INVALID_PARAMS: Roam invoke parameters are invalid. 5512 * @QCA_ROAM_INVOKE_STATUS_NO_CAND_AP: No candidate AP found to roam to. 5513 * @QCA_ROAM_INVOKE_STATUS_ROAM_FAIL: Roam handoff failed. 5514 */ 5515 enum qca_vendor_roam_invoke_fail_reasons { 5516 QCA_ROAM_INVOKE_STATUS_NONE = 0, 5517 QCA_ROAM_INVOKE_STATUS_IFACE_INVALID = 1, 5518 QCA_ROAM_INVOKE_STATUS_OFFLOAD_DISABLE = 2, 5519 QCA_ROAM_INVOKE_STATUS_AP_SSID_LENGTH_INVALID = 3, 5520 QCA_ROAM_INVOKE_STATUS_ROAM_DISALLOW = 4, 5521 QCA_ROAM_INVOKE_STATUS_NON_ROAMABLE_AP = 5, 5522 QCA_ROAM_INVOKE_STATUS_ROAM_INTERNAL_FAIL = 6, 5523 QCA_ROAM_INVOKE_STATUS_DISALLOW = 7, 5524 QCA_ROAM_INVOKE_STATUS_SCAN_FAIL = 8, 5525 QCA_ROAM_INVOKE_STATUS_START_ROAM_FAIL = 9, 5526 QCA_ROAM_INVOKE_STATUS_INVALID_PARAMS = 10, 5527 QCA_ROAM_INVOKE_STATUS_NO_CAND_AP = 11, 5528 QCA_ROAM_INVOKE_STATUS_ROAM_FAIL = 12, 5529 5530 }; 5531 5532 /** 5533 * enum qca_vendor_attr_roam_candidate_selection_criteria: 5534 * 5535 * Each attribute carries a weightage in percentage (%). 5536 * 5537 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_RSSI: Unsigned 8-bit value. 5538 * Represents the weightage to be given for the RSSI selection 5539 * criteria among other parameters. 5540 * 5541 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE: Unsigned 8-bit value. 5542 * Represents the weightage to be given for the rate selection 5543 * criteria among other parameters. 5544 * 5545 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BW: Unsigned 8-bit value. 5546 * Represents the weightage to be given for the band width selection 5547 * criteria among other parameters. 5548 * 5549 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BAND: Unsigned 8-bit value. 5550 * Represents the weightage to be given for the band selection 5551 * criteria among other parameters. 5552 * 5553 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_NSS: Unsigned 8-bit value. 5554 * Represents the weightage to be given for the NSS selection 5555 * criteria among other parameters. 5556 * 5557 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_CHAN_CONGESTION: Unsigned 8-bit value. 5558 * Represents the weightage to be given for the channel congestion 5559 * selection criteria among other parameters. 5560 * 5561 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BEAMFORMING: Unsigned 8-bit value. 5562 * Represents the weightage to be given for the beamforming selection 5563 * criteria among other parameters. 5564 * 5565 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_OCE_WAN: Unsigned 8-bit value. 5566 * Represents the weightage to be given for the OCE selection 5567 * criteria among other parameters. 5568 */ 5569 enum qca_vendor_attr_roam_candidate_selection_criteria { 5570 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_RSSI = 1, 5571 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE = 2, 5572 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BW = 3, 5573 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BAND = 4, 5574 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_NSS = 5, 5575 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_CHAN_CONGESTION = 6, 5576 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BEAMFORMING = 7, 5577 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_OCE_WAN = 8, 5578 5579 /* keep last */ 5580 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_AFTER_LAST, 5581 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_MAX = 5582 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_AFTER_LAST - 1, 5583 }; 5584 5585 /** 5586 * enum qca_vendor_attr_roam_control - Attributes to carry roam configuration 5587 * The following attributes are used to set/get/clear the respective 5588 * configurations to/from the driver. 5589 * For the get, the attribute for the configuration to be queried shall 5590 * carry any of its acceptable values to the driver. In return, the driver 5591 * shall send the configured values within the same attribute to the user 5592 * space. 5593 * 5594 * @QCA_ATTR_ROAM_CONTROL_ENABLE: Unsigned 8-bit value. 5595 * Signifies to enable/disable roam control in driver. 5596 * 1-enable, 0-disable 5597 * Enable: Mandates the driver to do the further roams using the 5598 * configuration parameters set through 5599 * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET. 5600 * Disable: Disables the driver/firmware roaming triggered through 5601 * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET. Further roaming is 5602 * expected to continue with the default configurations. 5603 * 5604 * @QCA_ATTR_ROAM_CONTROL_STATUS: Unsigned 8-bit value. 5605 * This is used along with QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET. 5606 * Roam control status is obtained through this attribute. 5607 * 5608 * @QCA_ATTR_ROAM_CONTROL_CLEAR_ALL: Flag attribute to indicate the 5609 * complete config set through QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET 5610 * is to be cleared in the driver. 5611 * This is used along with QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR 5612 * and shall be ignored if used with other sub commands. 5613 * If this attribute is specified along with subcmd 5614 * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR, the driver shall ignore 5615 * all other attributes, if there are any. 5616 * If this attribute is not specified when the subcmd 5617 * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR is sent, the driver shall 5618 * clear the data corresponding to the attributes specified. 5619 * 5620 * @QCA_ATTR_ROAM_CONTROL_FREQ_LIST_SCHEME: Nested attribute to carry the 5621 * list of frequencies and its type, represented by 5622 * enum qca_vendor_attr_scan_freq_list_scheme. 5623 * Frequency list and its type are mandatory for this attribute to set 5624 * the frequencies. 5625 * Frequency type is mandatory for this attribute to get the frequencies 5626 * and the frequency list is obtained through 5627 * QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST. 5628 * Frequency list type is mandatory for this attribute to clear the 5629 * frequencies. 5630 * 5631 * @QCA_ATTR_ROAM_CONTROL_SCAN_PERIOD: Unsigned 32-bit value. 5632 * Carries the value of scan period in seconds to set. 5633 * The value of scan period is obtained with the same attribute for get. 5634 * Clears the scan period in the driver when specified with clear command. 5635 * Scan period is the idle time in seconds between each subsequent 5636 * channel scans. 5637 * 5638 * @QCA_ATTR_ROAM_CONTROL_FULL_SCAN_PERIOD: Unsigned 32-bit value. 5639 * Carries the value of full scan period in seconds to set. 5640 * The value of full scan period is obtained with the same attribute for 5641 * get. 5642 * Clears the full scan period in the driver when specified with clear 5643 * command. Full scan period is the idle period in seconds between two 5644 * successive full channel roam scans. 5645 * 5646 * @QCA_ATTR_ROAM_CONTROL_TRIGGERS: Unsigned 32-bit value. 5647 * Carries a bitmap of the roam triggers specified in 5648 * enum qca_vendor_roam_triggers. 5649 * The driver shall enable roaming by enabling corresponding roam triggers 5650 * based on the trigger bits sent with this attribute. 5651 * If this attribute is not configured, the driver shall proceed with 5652 * default behavior. 5653 * The bitmap configured is obtained with the same attribute for get. 5654 * Clears the bitmap configured in driver when specified with clear 5655 * command. 5656 * 5657 * @QCA_ATTR_ROAM_CONTROL_SELECTION_CRITERIA: Nested attribute signifying the 5658 * weightage in percentage (%) to be given for each selection criteria. 5659 * Different roam candidate selection criteria are represented by 5660 * enum qca_vendor_attr_roam_candidate_selection_criteria. 5661 * The driver shall select the roam candidate based on corresponding 5662 * candidate selection scores sent. 5663 * 5664 * An empty nested attribute is used to indicate that no specific 5665 * preference score/criteria is configured (i.e., to disable this mechanism 5666 * in the set case and to show that the mechanism is disabled in the get 5667 * case). 5668 * 5669 * Userspace can send multiple attributes out of this enum to the driver. 5670 * Since this attribute represents the weight/percentage of preference for 5671 * the respective selection criteria, it is preferred to configure 100% 5672 * total weightage. The value in each attribute or cumulative weight of the 5673 * values in all the nested attributes should not exceed 100%. The driver 5674 * shall reject such configuration. 5675 * 5676 * If the weights configured through this attribute are less than 100%, 5677 * the driver shall honor the weights (x%) passed for the corresponding 5678 * selection criteria and choose/distribute rest of the weight (100-x)% 5679 * for the other selection criteria, based on its internal logic. 5680 * 5681 * The selection criteria configured is obtained with the same 5682 * attribute for get. 5683 * 5684 * Clears the selection criteria configured in the driver when specified 5685 * with clear command. 5686 * 5687 * @QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME: Unsigned 32-bit value. 5688 * Represents value of the scan frequency scheme from enum 5689 * qca_roam_scan_scheme. 5690 * It's an optional attribute. If this attribute is not configured, the 5691 * driver shall proceed with default behavior. 5692 * 5693 * @QCA_ATTR_ROAM_CONTROL_CONNECTED_RSSI_THRESHOLD: Signed 32-bit value in dBm, 5694 * signifying the RSSI threshold of the current connected AP, indicating 5695 * the driver to trigger roam only when the current connected AP's RSSI 5696 * is less than this threshold. The RSSI threshold through this attribute 5697 * is only used by the STA when the connected AP asks it to roam through 5698 * a BTM request. Based on this threshold, the STA can either honor or 5699 * reject the AP's request to roam, and notify the status to the AP in a 5700 * BTM response. 5701 * 5702 * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD: Signed 32-bit value in dBm, 5703 * signifying the RSSI threshold of the candidate AP, indicating 5704 * the driver to trigger roam only to the candidate AP with RSSI 5705 * better than this threshold. If RSSI thresholds for candidate APs found 5706 * in the 2.4 GHz, 5 GHz, and 6 GHz bands are configured separately using 5707 * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_2P4GHZ, 5708 * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_5GHZ, and/or 5709 * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_6GHZ, those values will 5710 * take precedence over the value configured using the 5711 * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute. 5712 * 5713 * @QCA_ATTR_ROAM_CONTROL_USER_REASON: Unsigned 32-bit value. Represents the 5714 * user defined reason code to be sent to the AP in response to AP's 5715 * request to trigger the roam if the roaming cannot be triggered. 5716 * Applies to all the scenarios of AP assisted roaming (e.g., BTM). 5717 * 5718 * @QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME_TRIGGERS: Unsigned 32-bit value. 5719 * Carries a bitmap of the roam triggers specified in 5720 * enum qca_vendor_roam_triggers. 5721 * Represents the roam triggers for which the specific scan scheme from 5722 * enum qca_roam_scan_scheme has to be applied. 5723 * It's an optional attribute. If this attribute is not configured, but 5724 * QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME is specified, the scan scheme 5725 * specified through QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME is applicable for 5726 * all the roams. 5727 * If both QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME and 5728 * QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME_TRIGGERS are not specified, the 5729 * driver shall proceed with the default behavior. 5730 * 5731 * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_2P4GHZ: Signed 32-bit value 5732 * in dBm, signifying the RSSI threshold of the candidate AP found in the 5733 * 2.4 GHz band. The driver/firmware shall trigger roaming to the candidate 5734 * AP found in the 2.4 GHz band only if its RSSI value is better than this 5735 * threshold. Optional attribute. If this attribute is not included, the 5736 * threshold value specified by the 5737 * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute shall be used. 5738 * 5739 * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_5GHZ: Signed 32-bit value in 5740 * dBm, signifying the RSSI threshold of the candidate AP found in the 5 5741 * GHz band. The driver/firmware shall trigger roaming to the candidate AP 5742 * found in the 5 GHz band only if its RSSI value is better than this 5743 * threshold. Optional attribute. If this attribute is not included, the 5744 * threshold value specified by tge 5745 * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute shall be used. 5746 * 5747 * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_6GHZ: Signed 32-bit value in 5748 * dBm, signifying the RSSI threshold of the candidate AP found in the 6 5749 * GHz band. The driver/firmware shall trigger roaming to the candidate AP 5750 * found in the 6 GHz band only if its RSSI value is better than this 5751 * threshold. Optional attribute. If this attribute is not included, the 5752 * threshold value specified by the 5753 * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute shall be used. 5754 * 5755 * @QCA_ATTR_ROAM_CONTROL_BAND_MASK: Unsigned 32-bit value. 5756 * Carries bitmask value of bits from &enum qca_set_band and represents 5757 * all the bands in which roaming is allowed. The configuration is valid 5758 * until next disconnection. If this attribute is not present, the 5759 * existing configuration shall be used. By default, roaming is allowed on 5760 * all bands supported by the local device. When the value is set to 5761 * %QCA_SETBAND_AUTO, all supported bands shall be enabled. 5762 * 5763 * @QCA_ATTR_ROAM_CONTROL_ACTIVE_CH_DWELL_TIME: u16 value in milliseconds. 5764 * Optional parameter. Scan dwell time for active channels in the 2.4/5 GHz 5765 * bands. If this attribute is not configured, the driver shall proceed 5766 * with default behavior. 5767 * 5768 * @QCA_ATTR_ROAM_CONTROL_PASSIVE_CH_DWELL_TIME: u16 value in milliseconds. 5769 * Optional parameter. Scan dwell time for passive channels in the 5 GHz 5770 * band. If this attribute is not configured, the driver shall proceed with 5771 * default behavior. 5772 * 5773 * @QCA_ATTR_ROAM_CONTROL_HOME_CHANNEL_TIME: u16 value in milliseconds. 5774 * Optional parameter. The minimum duration to stay on the connected AP 5775 * channel during the channel scanning. If this attribute is not 5776 * configured, the driver shall proceed with default behavior. 5777 * 5778 * @QCA_ATTR_ROAM_CONTROL_MAXIMUM_AWAY_TIME: u16 value in milliseconds. 5779 * Optional parameter. The maximum duration for which the radio can scan 5780 * foreign channels consecutively without coming back to home channel. If 5781 * this attribute is not configured, the driver shall proceed with default 5782 * behavior. 5783 * 5784 * @QCA_ATTR_ROAM_CONTROL_SCAN_6G_PSC_DWELL_TIME: u16 value in milliseconds. 5785 * Optional parameter. Scan dwell time for 6G Preferred Scanning Channels. 5786 * If this attribute is not configured, the driver shall proceed with 5787 * default behavior. 5788 * 5789 * @QCA_ATTR_ROAM_CONTROL_SCAN_6G_NON_PSC_DWELL_TIME: u16 value in milliseconds. 5790 * Optional parameter. Scan dwell time for 6G Non Preferred Scanning 5791 * Channels. If this attribute is not configured, the driver shall proceed 5792 * with default behavior. 5793 * 5794 * @QCA_ATTR_ROAM_CONTROL_RX_LINKSPEED_THRESHOLD: u16 value in Mbps. 5795 * Optional parameter. RX link speed threshold to disable roaming. 5796 * If the current RX link speed is above the threshold, roaming is not 5797 * needed. If this attribute is not configured, or if it is set to 0, the 5798 * driver will not consider the RX link speed in the roaming decision. 5799 * 5800 * @QCA_ATTR_ROAM_CONTROL_HO_DELAY_FOR_RX: u16 value in milliseconds. 5801 * Optional parameter. This configuration delays hand-off by the 5802 * specified duration to receive pending RX frames from the current BSS. 5803 * 5804 * @QCA_ATTR_ROAM_CONTROL_FULL_SCAN_NO_REUSE_PARTIAL_SCAN_FREQ: Unsigned 8-bit 5805 * value. 5806 * During the roam scan, if there are no desired APs found in the partial 5807 * frequency list, an immediate full scan on all the supported frequencies 5808 * is initiated as a fallback. This flag controls the frequency list 5809 * creation for the full scan on the following lines. 5810 * 1 - Full scan to exclude the frequencies that were already scanned by 5811 * the previous partial scan. 5812 * 0 - Full scan to include all the supported frequencies irrespective of 5813 * the ones part of the earlier partial scan. 5814 * If this flag is not specified, a full scan shall include all the 5815 * supported frequencies irrespective of the ones part of an earlier 5816 * partial scan. 5817 * 5818 * @QCA_ATTR_ROAM_CONTROL_FULL_SCAN_6GHZ_ONLY_ON_PRIOR_DISCOVERY: Unsigned 8-bit 5819 * value. 5820 * During the roam scan, if there are no desired APs found in the partial 5821 * frequency list, an immediate full scan on all the supported frequencies 5822 * is initiated as a fallback. This full scan would add the 2.4/5/6 GHz 5823 * frequencies, including all PSC frequencies by default. This attribute 5824 * controls the inclusion of the 6 GHz PSC frequencies for the full scan 5825 * as following. 5826 * 1 - Full scan to include the supported 6 GHz PSC frequencies only on the 5827 * prior discovery of any 6 GHz frequency support in the environment. 5828 * This discovery can happen through a prior RNR, 11k neighbor 5829 * request, 11v BTM request, host scan, etc. 5830 * 0 - Default behavior. Full scan to include all the supported 6 GHz 5831 * PSC frequencies regardless of whether 6 GHz BSSs have been 5832 * discovered. 5833 * The default behavior if this flag is not specified is to include all 5834 * the supported 6 GHz PSC frequencies in the roam full scan. 5835 * 5836 * @QCA_ATTR_ROAM_CONTROL_CONNECTED_LOW_RSSI_THRESHOLD: Signed 32-bit value 5837 * in dBm. 5838 * This attribute configures the low RSSI threshold of the connected AP, 5839 * based on which the STA can start looking for the neighbor APs and 5840 * trigger the roam eventually. STA keeps monitoring for the connected 5841 * AP's RSSI and will start scanning for neighboring APs once the RSSI 5842 * falls below this threshold. This attribute differs from 5843 * QCA_ATTR_ROAM_CONTROL_CONNECTED_RSSI_THRESHOLD where the configured 5844 * threshold is used only when the connected AP asks the STA to roam 5845 * through a BTM request. 5846 * 5847 * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_ROAM_RSSI_DIFF: Unsigned 8-bit value. 5848 * This attribute signifies the RSSI difference threshold between the 5849 * connected AP and the new candidate AP. This parameter influences the 5850 * STA to roam to the new candidate only when its RSSI is better than 5851 * the current connected one by this threshold. 5852 * This parameter configures the roam behavior among the 2.4/5/6 GHz bands. 5853 * 5854 * @QCA_ATTR_ROAM_CONTROL_6GHZ_CANDIDATE_ROAM_RSSI_DIFF: Unsigned 8-bit value. 5855 * This attribute signifies the RSSI difference threshold between the 5856 * connected AP in the 2.4/5 GHz bands and the new candidate AP in the 5857 * 6 GHz band. This parameter influences the STA to roam to the new 6 GHz 5858 * candidate only when its RSSI is better than the current connected one 5859 * by this threshold. This threshold overrides 5860 * QCA_ATTR_ROAM_CONTROL_CANDIDATE_ROAM_RSSI_DIFF for the roam from 2.4/5 5861 * GHz to 6 GHz alone with the intention to have a different value to roam 5862 * to the preferred 6 GHz band. 5863 * 5864 * @QCA_ATTR_ROAM_CONTROL_CONNECTED_HIGH_RSSI_OFFSET: Unsigned 8-bit value. 5865 * This attribute signifies the RSSI offset that is added to low RSSI 5866 * threshold (QCA_ATTR_ROAM_CONTROL_CONNECTED_LOW_RSSI_THRESHOLD) to imply 5867 * high RSSI threshold. STA is expected to trigger roam if the current 5868 * connected AP's RSSI gets above this high RSSI threshold. STA's roam 5869 * attempt on high RSSI threshold aims to find candidates from other 5870 * better Wi-Fi bands. E.g., STA would initially connect to a 2.4 GHz BSSID 5871 * and would migrate to 5/6 GHz when it comes closer to the AP (high RSSI 5872 * for 2.4 GHz BSS). 5873 */ 5874 enum qca_vendor_attr_roam_control { 5875 QCA_ATTR_ROAM_CONTROL_ENABLE = 1, 5876 QCA_ATTR_ROAM_CONTROL_STATUS = 2, 5877 QCA_ATTR_ROAM_CONTROL_CLEAR_ALL = 3, 5878 QCA_ATTR_ROAM_CONTROL_FREQ_LIST_SCHEME = 4, 5879 QCA_ATTR_ROAM_CONTROL_SCAN_PERIOD = 5, 5880 QCA_ATTR_ROAM_CONTROL_FULL_SCAN_PERIOD = 6, 5881 QCA_ATTR_ROAM_CONTROL_TRIGGERS = 7, 5882 QCA_ATTR_ROAM_CONTROL_SELECTION_CRITERIA = 8, 5883 QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME = 9, 5884 QCA_ATTR_ROAM_CONTROL_CONNECTED_RSSI_THRESHOLD = 10, 5885 QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD = 11, 5886 QCA_ATTR_ROAM_CONTROL_USER_REASON = 12, 5887 QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME_TRIGGERS = 13, 5888 QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_2P4GHZ = 14, 5889 QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_5GHZ = 15, 5890 QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_6GHZ = 16, 5891 QCA_ATTR_ROAM_CONTROL_BAND_MASK = 17, 5892 QCA_ATTR_ROAM_CONTROL_ACTIVE_CH_DWELL_TIME = 18, 5893 QCA_ATTR_ROAM_CONTROL_PASSIVE_CH_DWELL_TIME = 19, 5894 QCA_ATTR_ROAM_CONTROL_HOME_CHANNEL_TIME = 20, 5895 QCA_ATTR_ROAM_CONTROL_MAXIMUM_AWAY_TIME = 21, 5896 QCA_ATTR_ROAM_CONTROL_SCAN_6G_PSC_DWELL_TIME = 22, 5897 QCA_ATTR_ROAM_CONTROL_SCAN_6G_NON_PSC_DWELL_TIME = 23, 5898 QCA_ATTR_ROAM_CONTROL_LINKSPEED_THRESHOLD = 24, 5899 QCA_ATTR_ROAM_CONTROL_HO_DELAY_FOR_RX = 25, 5900 QCA_ATTR_ROAM_CONTROL_FULL_SCAN_NO_REUSE_PARTIAL_SCAN_FREQ = 26, 5901 QCA_ATTR_ROAM_CONTROL_FULL_SCAN_6GHZ_ONLY_ON_PRIOR_DISCOVERY = 27, 5902 QCA_ATTR_ROAM_CONTROL_CONNECTED_LOW_RSSI_THRESHOLD = 28, 5903 QCA_ATTR_ROAM_CONTROL_CANDIDATE_ROAM_RSSI_DIFF = 29, 5904 QCA_ATTR_ROAM_CONTROL_6GHZ_CANDIDATE_ROAM_RSSI_DIFF = 30, 5905 QCA_ATTR_ROAM_CONTROL_CONNECTED_HIGH_RSSI_OFFSET = 31, 5906 5907 /* keep last */ 5908 QCA_ATTR_ROAM_CONTROL_AFTER_LAST, 5909 QCA_ATTR_ROAM_CONTROL_MAX = 5910 QCA_ATTR_ROAM_CONTROL_AFTER_LAST - 1, 5911 }; 5912 5913 /* 5914 * enum qca_wlan_vendor_attr_roaming_config_params: Attributes for data used by 5915 * QCA_NL80211_VENDOR_SUBCMD_ROAM sub command. 5916 * 5917 * @QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD: Unsigned 32-bit value. 5918 * Represents the different roam sub commands referred by 5919 * enum qca_wlan_vendor_roaming_subcmd. 5920 * 5921 * @QCA_WLAN_VENDOR_ATTR_ROAMING_REQ_ID: Unsigned 32-bit value. 5922 * Represents the Request ID for the specific set of commands. 5923 * This also helps to map specific set of commands to the respective 5924 * ID / client. e.g., helps to identify the user entity configuring the 5925 * ignored BSSIDs and accordingly clear the respective ones with the 5926 * matching ID. 5927 * 5928 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID_NUM_NETWORKS: Unsigned 5929 * 32-bit value. Represents the number of allowlist SSIDs configured. 5930 * 5931 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID_LIST: Nested attribute 5932 * to carry the list of allowlist SSIDs. 5933 * 5934 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID: SSID (binary attribute, 5935 * 0..32 octets). Represents the allow list SSID. Allowlist SSIDs 5936 * represent the list of SSIDs to which the firmware/driver can consider 5937 * to roam to. 5938 * 5939 * The following PARAM_A_BAND_XX attributes are applied to 5GHz BSSIDs when 5940 * comparing with a 2.4GHz BSSID. They are not applied when comparing two 5941 * 5GHz BSSIDs.The following attributes are set through the Roaming SUBCMD - 5942 * QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_GSCAN_ROAM_PARAMS. 5943 * 5944 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_THRESHOLD: Signed 32-bit 5945 * value, RSSI threshold above which 5GHz RSSI is favored. 5946 * 5947 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_THRESHOLD: Signed 32-bit 5948 * value, RSSI threshold below which 5GHz RSSI is penalized. 5949 * 5950 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_FACTOR: Unsigned 32-bit 5951 * value, factor by which 5GHz RSSI is boosted. 5952 * boost=(RSSI_measured-5GHz_boost_threshold)*5GHz_boost_factor 5953 * 5954 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_FACTOR: Unsigned 32-bit 5955 * value, factor by which 5GHz RSSI is penalized. 5956 * penalty=(5GHz_penalty_threshold-RSSI_measured)*5GHz_penalty_factor 5957 * 5958 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_MAX_BOOST: Unsigned 32-bit 5959 * value, maximum boost that can be applied to a 5GHz RSSI. 5960 * 5961 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_LAZY_ROAM_HISTERESYS: Unsigned 32-bit 5962 * value, boost applied to current BSSID to ensure the currently 5963 * associated BSSID is favored so as to prevent ping-pong situations. 5964 * 5965 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALERT_ROAM_RSSI_TRIGGER: Signed 32-bit 5966 * value, RSSI below which "Alert" roam is enabled. 5967 * "Alert" mode roaming - firmware is "urgently" hunting for another BSSID 5968 * because the RSSI is low, or because many successive beacons have been 5969 * lost or other bad link conditions. 5970 * 5971 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE: Unsigned 32-bit 5972 * value. 1-Enable, 0-Disable. Represents "Lazy" mode, where 5973 * firmware is hunting for a better BSSID or allow listed SSID even though 5974 * the RSSI of the link is good. The parameters enabling the roaming are 5975 * configured through the PARAM_A_BAND_XX attrbutes. 5976 * 5977 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS: Nested attribute, 5978 * represents the BSSIDs preferred over others while evaluating them 5979 * for the roaming. 5980 * 5981 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_NUM_BSSID: Unsigned 5982 * 32-bit value. Represents the number of preferred BSSIDs set. 5983 * 5984 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_BSSID: 6-byte MAC 5985 * address representing the BSSID to be preferred. 5986 * 5987 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_RSSI_MODIFIER: Signed 5988 * 32-bit value, representing the modifier to be applied to the RSSI of 5989 * the BSSID for the purpose of comparing it with other roam candidate. 5990 * 5991 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS: Nested attribute, 5992 * represents the BSSIDs to get ignored for roaming. 5993 * 5994 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_NUM_BSSID: Unsigned 5995 * 32-bit value, represents the number of ignored BSSIDs. 5996 * 5997 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_BSSID: 6-byte MAC 5998 * address representing the ignored BSSID. 5999 * 6000 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_HINT: Flag attribute, 6001 * indicates this request to ignore the BSSID as a hint to the driver. The 6002 * driver can select this BSSID in the worst case (when no other BSSIDs are 6003 * better). 6004 * 6005 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL: Nested attribute to 6006 * set/get/clear the roam control config as 6007 * defined @enum qca_vendor_attr_roam_control. 6008 */ 6009 enum qca_wlan_vendor_attr_roaming_config_params { 6010 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_INVALID = 0, 6011 6012 QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD = 1, 6013 QCA_WLAN_VENDOR_ATTR_ROAMING_REQ_ID = 2, 6014 6015 /* Attributes for wifi_set_ssid_allow_list */ 6016 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID_NUM_NETWORKS = 3, 6017 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID_LIST = 4, 6018 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID = 5, 6019 6020 /* Attributes for set_roam_params */ 6021 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_THRESHOLD = 6, 6022 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_THRESHOLD = 7, 6023 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_FACTOR = 8, 6024 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_FACTOR = 9, 6025 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_MAX_BOOST = 10, 6026 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_LAZY_ROAM_HISTERESYS = 11, 6027 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALERT_ROAM_RSSI_TRIGGER = 12, 6028 6029 /* Attribute for set_lazy_roam */ 6030 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE = 13, 6031 6032 /* Attribute for set_lazy_roam with preferences */ 6033 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS = 14, 6034 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_NUM_BSSID = 15, 6035 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_BSSID = 16, 6036 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_RSSI_MODIFIER = 17, 6037 6038 /* Attribute for setting ignored BSSID parameters */ 6039 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS = 18, 6040 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_NUM_BSSID = 19, 6041 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_BSSID = 20, 6042 /* Flag attribute indicates this entry as a hint */ 6043 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_HINT = 21, 6044 6045 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL = 22, 6046 6047 /* keep last */ 6048 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST, 6049 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_MAX = 6050 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST - 1, 6051 }; 6052 6053 /* old names for API compatibility */ 6054 #define QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_NUM_NETWORKS \ 6055 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID_NUM_NETWORKS 6056 #define QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_LIST \ 6057 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID_LIST 6058 #define QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID \ 6059 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID 6060 6061 /* 6062 * enum qca_wlan_vendor_roaming_subcmd: Referred by 6063 * QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD. 6064 * 6065 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SSID_ALLOW_LIST: Sub command to 6066 * configure the allow list SSIDs. These are configured through 6067 * the following attributes. 6068 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID_NUM_NETWORKS, 6069 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID_LIST, 6070 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID 6071 * 6072 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_GSCAN_ROAM_PARAMS: Sub command to 6073 * configure the Roam params. These parameters are evaluated on the GScan 6074 * results. Refers the attributes PARAM_A_BAND_XX above to configure the 6075 * params. 6076 * 6077 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_LAZY_ROAM: Sets the Lazy roam. Uses 6078 * the attribute QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE 6079 * to enable/disable Lazy roam. 6080 * 6081 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PREFS: Sets the BSSID 6082 * preference. Contains the attribute 6083 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS to set the BSSID 6084 * preference. 6085 * 6086 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_DENYLIST_BSSID: Sets the list of BSSIDs 6087 * to ignore in roaming decision. Uses 6088 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS to set the list. 6089 * 6090 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET: Command to set the 6091 * roam control config to the driver with the attribute 6092 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL. 6093 * 6094 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET: Command to obtain the 6095 * roam control config from driver with the attribute 6096 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL. 6097 * For the get, the attribute for the configuration to be queried shall 6098 * carry any of its acceptable value to the driver. In return, the driver 6099 * shall send the configured values within the same attribute to the user 6100 * space. 6101 * 6102 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR: Command to clear the 6103 * roam control config in the driver with the attribute 6104 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL. 6105 * The driver shall continue with its default roaming behavior when data 6106 * corresponding to an attribute is cleared. 6107 */ 6108 enum qca_wlan_vendor_roaming_subcmd { 6109 QCA_WLAN_VENDOR_ROAMING_SUBCMD_INVALID = 0, 6110 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SSID_ALLOW_LIST = 1, 6111 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_GSCAN_ROAM_PARAMS = 2, 6112 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_LAZY_ROAM = 3, 6113 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PREFS = 4, 6114 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PARAMS = 5, 6115 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_DENYLIST_BSSID = 6, 6116 QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET = 7, 6117 QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET = 8, 6118 QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR = 9, 6119 }; 6120 6121 /* old names for API compatibility */ 6122 #define QCA_WLAN_VENDOR_ROAMING_SUBCMD_SSID_WHITE_LIST \ 6123 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SSID_ALLOW_LIST 6124 #define QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BLACKLIST_BSSID \ 6125 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_DENYLIST_BSSID 6126 6127 enum qca_wlan_vendor_attr_gscan_config_params { 6128 QCA_WLAN_VENDOR_ATTR_GSCAN_SUBCMD_CONFIG_PARAM_INVALID = 0, 6129 6130 /* Unsigned 32-bit value */ 6131 QCA_WLAN_VENDOR_ATTR_GSCAN_SUBCMD_CONFIG_PARAM_REQUEST_ID = 1, 6132 6133 /* Attributes for data used by 6134 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_VALID_CHANNELS sub command. 6135 */ 6136 /* Unsigned 32-bit value */ 6137 QCA_WLAN_VENDOR_ATTR_GSCAN_GET_VALID_CHANNELS_CONFIG_PARAM_WIFI_BAND 6138 = 2, 6139 /* Unsigned 32-bit value */ 6140 QCA_WLAN_VENDOR_ATTR_GSCAN_GET_VALID_CHANNELS_CONFIG_PARAM_MAX_CHANNELS 6141 = 3, 6142 6143 /* Attributes for input params used by 6144 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_START sub command. 6145 */ 6146 6147 /* Unsigned 32-bit value; channel frequency */ 6148 QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC_CHANNEL = 4, 6149 /* Unsigned 32-bit value; dwell time in ms. */ 6150 QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC_DWELL_TIME = 5, 6151 /* Unsigned 8-bit value; 0: active; 1: passive; N/A for DFS */ 6152 QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC_PASSIVE = 6, 6153 /* Unsigned 8-bit value; channel class */ 6154 QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC_CLASS = 7, 6155 6156 /* Unsigned 8-bit value; bucket index, 0 based */ 6157 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_INDEX = 8, 6158 /* Unsigned 8-bit value; band. */ 6159 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_BAND = 9, 6160 /* Unsigned 32-bit value; desired period, in ms. */ 6161 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_PERIOD = 10, 6162 /* Unsigned 8-bit value; report events semantics. */ 6163 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_REPORT_EVENTS = 11, 6164 /* Unsigned 32-bit value. Followed by a nested array of 6165 * GSCAN_CHANNEL_SPEC_* attributes. 6166 */ 6167 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS = 12, 6168 6169 /* Array of QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC_* attributes. 6170 * Array size: QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS 6171 */ 6172 QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC = 13, 6173 6174 /* Unsigned 32-bit value; base timer period in ms. */ 6175 QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_BASE_PERIOD = 14, 6176 /* Unsigned 32-bit value; number of APs to store in each scan in the 6177 * BSSID/RSSI history buffer (keep the highest RSSI APs). 6178 */ 6179 QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_MAX_AP_PER_SCAN = 15, 6180 /* Unsigned 8-bit value; in %, when scan buffer is this much full, wake 6181 * up AP. 6182 */ 6183 QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_REPORT_THRESHOLD_PERCENT 6184 = 16, 6185 6186 /* Unsigned 8-bit value; number of scan bucket specs; followed by a 6187 * nested array of_GSCAN_BUCKET_SPEC_* attributes and values. The size 6188 * of the array is determined by NUM_BUCKETS. 6189 */ 6190 QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_NUM_BUCKETS = 17, 6191 6192 /* Array of QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_* attributes. 6193 * Array size: QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_NUM_BUCKETS 6194 */ 6195 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC = 18, 6196 6197 /* Unsigned 8-bit value */ 6198 QCA_WLAN_VENDOR_ATTR_GSCAN_GET_CACHED_SCAN_RESULTS_CONFIG_PARAM_FLUSH 6199 = 19, 6200 /* Unsigned 32-bit value; maximum number of results to be returned. */ 6201 QCA_WLAN_VENDOR_ATTR_GSCAN_GET_CACHED_SCAN_RESULTS_CONFIG_PARAM_MAX 6202 = 20, 6203 6204 /* An array of 6 x unsigned 8-bit value */ 6205 QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM_BSSID = 21, 6206 /* Signed 32-bit value */ 6207 QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM_RSSI_LOW = 22, 6208 /* Signed 32-bit value */ 6209 QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM_RSSI_HIGH = 23, 6210 /* Unsigned 32-bit value */ 6211 QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM_CHANNEL = 24, 6212 6213 /* Number of hotlist APs as unsigned 32-bit value, followed by a nested 6214 * array of AP_THRESHOLD_PARAM attributes and values. The size of the 6215 * array is determined by NUM_AP. 6216 */ 6217 QCA_WLAN_VENDOR_ATTR_GSCAN_BSSID_HOTLIST_PARAMS_NUM_AP = 25, 6218 6219 /* Array of QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM_* attributes. 6220 * Array size: QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS 6221 */ 6222 QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM = 26, 6223 6224 /* Unsigned 32-bit value; number of samples for averaging RSSI. */ 6225 QCA_WLAN_VENDOR_ATTR_GSCAN_SIGNIFICANT_CHANGE_PARAMS_RSSI_SAMPLE_SIZE 6226 = 27, 6227 /* Unsigned 32-bit value; number of samples to confirm AP loss. */ 6228 QCA_WLAN_VENDOR_ATTR_GSCAN_SIGNIFICANT_CHANGE_PARAMS_LOST_AP_SAMPLE_SIZE 6229 = 28, 6230 /* Unsigned 32-bit value; number of APs breaching threshold. */ 6231 QCA_WLAN_VENDOR_ATTR_GSCAN_SIGNIFICANT_CHANGE_PARAMS_MIN_BREACHING = 29, 6232 /* Unsigned 32-bit value; number of APs. Followed by an array of 6233 * AP_THRESHOLD_PARAM attributes. Size of the array is NUM_AP. 6234 */ 6235 QCA_WLAN_VENDOR_ATTR_GSCAN_SIGNIFICANT_CHANGE_PARAMS_NUM_AP = 30, 6236 /* Unsigned 32-bit value; number of samples to confirm AP loss. */ 6237 QCA_WLAN_VENDOR_ATTR_GSCAN_BSSID_HOTLIST_PARAMS_LOST_AP_SAMPLE_SIZE 6238 = 31, 6239 /* Unsigned 32-bit value. If max_period is non zero or different than 6240 * period, then this bucket is an exponential backoff bucket. 6241 */ 6242 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_MAX_PERIOD = 32, 6243 /* Unsigned 32-bit value. */ 6244 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_BASE = 33, 6245 /* Unsigned 32-bit value. For exponential back off bucket, number of 6246 * scans to perform for a given period. 6247 */ 6248 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_STEP_COUNT = 34, 6249 /* Unsigned 8-bit value; in number of scans, wake up AP after these 6250 * many scans. 6251 */ 6252 QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_REPORT_THRESHOLD_NUM_SCANS 6253 = 35, 6254 6255 /* Attributes for data used by 6256 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_SET_SSID_HOTLIST sub command. 6257 */ 6258 /* Unsigned 3-2bit value; number of samples to confirm SSID loss. */ 6259 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_HOTLIST_PARAMS_LOST_SSID_SAMPLE_SIZE 6260 = 36, 6261 /* Number of hotlist SSIDs as unsigned 32-bit value, followed by a 6262 * nested array of SSID_THRESHOLD_PARAM_* attributes and values. The 6263 * size of the array is determined by NUM_SSID. 6264 */ 6265 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_HOTLIST_PARAMS_NUM_SSID = 37, 6266 /* Array of QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM_* 6267 * attributes. 6268 * Array size: QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_HOTLIST_PARAMS_NUM_SSID 6269 */ 6270 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM = 38, 6271 6272 /* An array of 33 x unsigned 8-bit value; NULL terminated SSID */ 6273 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM_SSID = 39, 6274 /* Unsigned 8-bit value */ 6275 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM_BAND = 40, 6276 /* Signed 32-bit value */ 6277 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM_RSSI_LOW = 41, 6278 /* Signed 32-bit value */ 6279 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM_RSSI_HIGH = 42, 6280 /* Unsigned 32-bit value; a bitmask with additional gscan config flag. 6281 */ 6282 QCA_WLAN_VENDOR_ATTR_GSCAN_CONFIGURATION_FLAGS = 43, 6283 6284 /* keep last */ 6285 QCA_WLAN_VENDOR_ATTR_GSCAN_SUBCMD_CONFIG_PARAM_AFTER_LAST, 6286 QCA_WLAN_VENDOR_ATTR_GSCAN_SUBCMD_CONFIG_PARAM_MAX = 6287 QCA_WLAN_VENDOR_ATTR_GSCAN_SUBCMD_CONFIG_PARAM_AFTER_LAST - 1, 6288 }; 6289 6290 enum qca_wlan_vendor_attr_gscan_results { 6291 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_INVALID = 0, 6292 6293 /* Unsigned 32-bit value; must match the request Id supplied by 6294 * Wi-Fi HAL in the corresponding subcmd NL msg. 6295 */ 6296 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_REQUEST_ID = 1, 6297 6298 /* Unsigned 32-bit value; used to indicate the status response from 6299 * firmware/driver for the vendor sub-command. 6300 */ 6301 QCA_WLAN_VENDOR_ATTR_GSCAN_STATUS = 2, 6302 6303 /* GSCAN Valid Channels attributes */ 6304 /* Unsigned 32bit value; followed by a nested array of CHANNELS. */ 6305 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_CHANNELS = 3, 6306 /* An array of NUM_CHANNELS x unsigned 32-bit value integers 6307 * representing channel numbers. 6308 */ 6309 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CHANNELS = 4, 6310 6311 /* GSCAN Capabilities attributes */ 6312 /* Unsigned 32-bit value */ 6313 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_SCAN_CACHE_SIZE = 5, 6314 /* Unsigned 32-bit value */ 6315 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_SCAN_BUCKETS = 6, 6316 /* Unsigned 32-bit value */ 6317 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_AP_CACHE_PER_SCAN 6318 = 7, 6319 /* Unsigned 32-bit value */ 6320 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_RSSI_SAMPLE_SIZE 6321 = 8, 6322 /* Signed 32-bit value */ 6323 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_SCAN_REPORTING_THRESHOLD 6324 = 9, 6325 /* Unsigned 32-bit value */ 6326 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_HOTLIST_BSSIDS = 10, 6327 /* Unsigned 32-bit value */ 6328 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_SIGNIFICANT_WIFI_CHANGE_APS 6329 = 11, 6330 /* Unsigned 32-bit value */ 6331 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_BSSID_HISTORY_ENTRIES 6332 = 12, 6333 6334 /* GSCAN Attributes used with 6335 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_SCAN_RESULTS_AVAILABLE sub-command. 6336 */ 6337 6338 /* Unsigned 32-bit value */ 6339 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE = 13, 6340 6341 /* GSCAN attributes used with 6342 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_FULL_SCAN_RESULT sub-command. 6343 */ 6344 6345 /* An array of NUM_RESULTS_AVAILABLE x 6346 * QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_* 6347 */ 6348 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_LIST = 14, 6349 6350 /* Unsigned 64-bit value; age of sample at the time of retrieval */ 6351 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_TIME_STAMP = 15, 6352 /* 33 x unsigned 8-bit value; NULL terminated SSID */ 6353 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_SSID = 16, 6354 /* An array of 6 x unsigned 8-bit value */ 6355 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_BSSID = 17, 6356 /* Unsigned 32-bit value; channel frequency in MHz */ 6357 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_CHANNEL = 18, 6358 /* Signed 32-bit value */ 6359 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_RSSI = 19, 6360 /* Unsigned 32-bit value */ 6361 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_RTT = 20, 6362 /* Unsigned 32-bit value */ 6363 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_RTT_SD = 21, 6364 /* Unsigned 16-bit value */ 6365 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_BEACON_PERIOD = 22, 6366 /* Unsigned 16-bit value */ 6367 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_CAPABILITY = 23, 6368 /* Unsigned 32-bit value; size of the IE DATA blob */ 6369 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_IE_LENGTH = 24, 6370 /* An array of IE_LENGTH x unsigned 8-bit value; blob of all the 6371 * information elements found in the beacon; this data should be a 6372 * packed list of wifi_information_element objects, one after the 6373 * other. 6374 */ 6375 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_IE_DATA = 25, 6376 6377 /* Unsigned 8-bit value; set by driver to indicate more scan results are 6378 * available. 6379 */ 6380 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_MORE_DATA = 26, 6381 6382 /* GSCAN attributes for 6383 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_SCAN_EVENT sub-command. 6384 */ 6385 /* Unsigned 8-bit value */ 6386 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_EVENT_TYPE = 27, 6387 /* Unsigned 32-bit value */ 6388 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_EVENT_STATUS = 28, 6389 6390 /* GSCAN attributes for 6391 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_AP_FOUND sub-command. 6392 */ 6393 /* Use attr QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE 6394 * to indicate number of results. 6395 * Also, use QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_LIST to indicate the 6396 * list of results. 6397 */ 6398 6399 /* GSCAN attributes for 6400 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_SIGNIFICANT_CHANGE sub-command. 6401 */ 6402 /* An array of 6 x unsigned 8-bit value */ 6403 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_BSSID = 29, 6404 /* Unsigned 32-bit value */ 6405 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_CHANNEL 6406 = 30, 6407 /* Unsigned 32-bit value. */ 6408 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_NUM_RSSI 6409 = 31, 6410 /* A nested array of signed 32-bit RSSI values. Size of the array is 6411 * determined by (NUM_RSSI of SIGNIFICANT_CHANGE_RESULT_NUM_RSSI. 6412 */ 6413 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_RSSI_LIST 6414 = 32, 6415 6416 /* GSCAN attributes used with 6417 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_CACHED_RESULTS sub-command. 6418 */ 6419 /* Use attr QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE 6420 * to indicate number of gscan cached results returned. 6421 * Also, use QCA_WLAN_VENDOR_ATTR_GSCAN_CACHED_RESULTS_LIST to indicate 6422 * the list of gscan cached results. 6423 */ 6424 6425 /* An array of NUM_RESULTS_AVAILABLE x 6426 * QCA_NL80211_VENDOR_ATTR_GSCAN_CACHED_RESULTS_* 6427 */ 6428 QCA_WLAN_VENDOR_ATTR_GSCAN_CACHED_RESULTS_LIST = 33, 6429 /* Unsigned 32-bit value; a unique identifier for the scan unit. */ 6430 QCA_WLAN_VENDOR_ATTR_GSCAN_CACHED_RESULTS_SCAN_ID = 34, 6431 /* Unsigned 32-bit value; a bitmask w/additional information about scan. 6432 */ 6433 QCA_WLAN_VENDOR_ATTR_GSCAN_CACHED_RESULTS_FLAGS = 35, 6434 /* Use attr QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE 6435 * to indicate number of wifi scan results/bssids retrieved by the scan. 6436 * Also, use QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_LIST to indicate the 6437 * list of wifi scan results returned for each cached result block. 6438 */ 6439 6440 /* GSCAN attributes for 6441 * QCA_NL80211_VENDOR_SUBCMD_PNO_NETWORK_FOUND sub-command. 6442 */ 6443 /* Use QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE for 6444 * number of results. 6445 * Use QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_LIST to indicate the nested 6446 * list of wifi scan results returned for each 6447 * wifi_passpoint_match_result block. 6448 * Array size: QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE. 6449 */ 6450 6451 /* GSCAN attributes for 6452 * QCA_NL80211_VENDOR_SUBCMD_PNO_PASSPOINT_NETWORK_FOUND sub-command. 6453 */ 6454 /* Unsigned 32-bit value */ 6455 QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_NETWORK_FOUND_NUM_MATCHES 6456 = 36, 6457 /* A nested array of 6458 * QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_MATCH_* 6459 * attributes. Array size = 6460 * *_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_NETWORK_FOUND_NUM_MATCHES. 6461 */ 6462 QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_MATCH_RESULT_LIST = 37, 6463 6464 /* Unsigned 32-bit value; network block id for the matched network */ 6465 QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_MATCH_ID = 38, 6466 /* Use QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_LIST to indicate the nested 6467 * list of wifi scan results returned for each 6468 * wifi_passpoint_match_result block. 6469 */ 6470 /* Unsigned 32-bit value */ 6471 QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_MATCH_ANQP_LEN = 39, 6472 /* An array size of PASSPOINT_MATCH_ANQP_LEN of unsigned 8-bit values; 6473 * ANQP data in the information_element format. 6474 */ 6475 QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_MATCH_ANQP = 40, 6476 6477 /* Unsigned 32-bit value; a GSCAN Capabilities attribute. */ 6478 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_HOTLIST_SSIDS = 41, 6479 /* Unsigned 32-bit value; a GSCAN Capabilities attribute. */ 6480 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_NUM_EPNO_NETS = 42, 6481 /* Unsigned 32-bit value; a GSCAN Capabilities attribute. */ 6482 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_NUM_EPNO_NETS_BY_SSID 6483 = 43, 6484 /* Unsigned 32-bit value; a GSCAN Capabilities attribute. */ 6485 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_NUM_ALLOWLISTED_SSID 6486 = 44, 6487 6488 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_BUCKETS_SCANNED = 45, 6489 6490 /* Unsigned 32-bit value; a GSCAN Capabilities attribute. 6491 * This is used to limit the maximum number of BSSIDs while sending 6492 * the vendor command QCA_NL80211_VENDOR_SUBCMD_ROAM with subcmd 6493 * QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_DENYLIST_BSSID and attribute 6494 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_NUM_BSSID. 6495 */ 6496 QCA_WLAN_VENDOR_ATTR_GSCAN_MAX_NUM_DENYLISTED_BSSID = 46, 6497 6498 /* Attribute used for padding for 64-bit alignment */ 6499 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_PAD = 47, 6500 6501 /* keep last */ 6502 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_AFTER_LAST, 6503 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_MAX = 6504 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_AFTER_LAST - 1, 6505 }; 6506 6507 /* old names for API compatibility */ 6508 #define QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_NUM_WHITELISTED_SSID \ 6509 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_NUM_ALLOWLISTED_SSID 6510 #define QCA_WLAN_VENDOR_ATTR_GSCAN_MAX_NUM_BLACKLISTED_BSSID \ 6511 QCA_WLAN_VENDOR_ATTR_GSCAN_MAX_NUM_DENYLISTED_BSSID 6512 6513 enum qca_wlan_vendor_attr_pno_config_params { 6514 QCA_WLAN_VENDOR_ATTR_PNO_INVALID = 0, 6515 /* Attributes for data used by 6516 * QCA_NL80211_VENDOR_SUBCMD_PNO_SET_PASSPOINT_LIST sub command. 6517 */ 6518 /* Unsigned 32-bit value */ 6519 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM = 1, 6520 /* Array of nested QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_* 6521 * attributes. Array size = 6522 * QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM. 6523 */ 6524 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NETWORK_ARRAY = 2, 6525 6526 /* Unsigned 32-bit value */ 6527 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ID = 3, 6528 /* An array of 256 x unsigned 8-bit value; NULL terminated UTF-8 encoded 6529 * realm, 0 if unspecified. 6530 */ 6531 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_REALM = 4, 6532 /* An array of 16 x unsigned 32-bit value; roaming consortium ids to 6533 * match, 0 if unspecified. 6534 */ 6535 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_CNSRTM_ID = 5, 6536 /* An array of 6 x unsigned 8-bit value; MCC/MNC combination, 0s if 6537 * unspecified. 6538 */ 6539 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_PLMN = 6, 6540 6541 /* Attributes for data used by 6542 * QCA_NL80211_VENDOR_SUBCMD_PNO_SET_LIST sub command. 6543 */ 6544 /* Unsigned 32-bit value */ 6545 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS = 7, 6546 /* Array of nested 6547 * QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_* 6548 * attributes. Array size = 6549 * QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS. 6550 */ 6551 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORKS_LIST = 8, 6552 /* An array of 33 x unsigned 8-bit value; NULL terminated SSID */ 6553 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_SSID = 9, 6554 /* Signed 8-bit value; threshold for considering this SSID as found, 6555 * required granularity for this threshold is 4 dBm to 8 dBm. 6556 */ 6557 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_RSSI_THRESHOLD 6558 = 10, 6559 /* Unsigned 8-bit value; WIFI_PNO_FLAG_XXX */ 6560 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_FLAGS = 11, 6561 /* Unsigned 8-bit value; auth bit field for matching WPA IE */ 6562 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_AUTH_BIT = 12, 6563 /* Unsigned 8-bit to indicate ePNO type; 6564 * It takes values from qca_wlan_epno_type 6565 */ 6566 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_TYPE = 13, 6567 6568 /* Nested attribute to send the channel list */ 6569 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_CHANNEL_LIST = 14, 6570 6571 /* Unsigned 32-bit value; indicates the interval between PNO scan 6572 * cycles in msec. 6573 */ 6574 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_SCAN_INTERVAL = 15, 6575 QCA_WLAN_VENDOR_ATTR_EPNO_MIN5GHZ_RSSI = 16, 6576 QCA_WLAN_VENDOR_ATTR_EPNO_MIN24GHZ_RSSI = 17, 6577 QCA_WLAN_VENDOR_ATTR_EPNO_INITIAL_SCORE_MAX = 18, 6578 QCA_WLAN_VENDOR_ATTR_EPNO_CURRENT_CONNECTION_BONUS = 19, 6579 QCA_WLAN_VENDOR_ATTR_EPNO_SAME_NETWORK_BONUS = 20, 6580 QCA_WLAN_VENDOR_ATTR_EPNO_SECURE_BONUS = 21, 6581 QCA_WLAN_VENDOR_ATTR_EPNO_BAND5GHZ_BONUS = 22, 6582 /* Unsigned 32-bit value, representing the PNO Request ID */ 6583 QCA_WLAN_VENDOR_ATTR_PNO_CONFIG_REQUEST_ID = 23, 6584 6585 /* keep last */ 6586 QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST, 6587 QCA_WLAN_VENDOR_ATTR_PNO_MAX = 6588 QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST - 1, 6589 }; 6590 6591 /** 6592 * qca_wlan_vendor_acs_select_reason: This represents the different reasons why 6593 * the ACS has to be triggered. These values are used by 6594 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON and 6595 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON 6596 */ 6597 enum qca_wlan_vendor_acs_select_reason { 6598 /* Represents the reason that the ACS triggered during the AP start */ 6599 QCA_WLAN_VENDOR_ACS_SELECT_REASON_INIT, 6600 /* Represents the reason that DFS found with the current channel */ 6601 QCA_WLAN_VENDOR_ACS_SELECT_REASON_DFS, 6602 /* Represents the reason that LTE co-exist in the current band. */ 6603 QCA_WLAN_VENDOR_ACS_SELECT_REASON_LTE_COEX, 6604 /* Represents the reason that generic, uncategorized interference has 6605 * been found in the current channel. 6606 */ 6607 QCA_WLAN_VENDOR_ACS_SELECT_REASON_GENERIC_INTERFERENCE, 6608 /* Represents the reason that excessive 802.11 interference has been 6609 * found in the current channel. 6610 */ 6611 QCA_WLAN_VENDOR_ACS_SELECT_REASON_80211_INTERFERENCE, 6612 /* Represents the reason that generic Continuous Wave (CW) interference 6613 * has been found in the current channel. 6614 */ 6615 QCA_WLAN_VENDOR_ACS_SELECT_REASON_CW_INTERFERENCE, 6616 /* Represents the reason that Microwave Oven (MWO) interference has been 6617 * found in the current channel. 6618 */ 6619 QCA_WLAN_VENDOR_ACS_SELECT_REASON_MWO_INTERFERENCE, 6620 /* Represents the reason that generic Frequency-Hopping Spread Spectrum 6621 * (FHSS) interference has been found in the current channel. This may 6622 * include 802.11 waveforms. 6623 */ 6624 QCA_WLAN_VENDOR_ACS_SELECT_REASON_FHSS_INTERFERENCE, 6625 /* Represents the reason that non-802.11 generic Frequency-Hopping 6626 * Spread Spectrum (FHSS) interference has been found in the current 6627 * channel. 6628 */ 6629 QCA_WLAN_VENDOR_ACS_SELECT_REASON_NON_80211_FHSS_INTERFERENCE, 6630 /* Represents the reason that generic Wideband (WB) interference has 6631 * been found in the current channel. This may include 802.11 waveforms. 6632 */ 6633 QCA_WLAN_VENDOR_ACS_SELECT_REASON_WB_INTERFERENCE, 6634 /* Represents the reason that non-802.11 generic Wideband (WB) 6635 * interference has been found in the current channel. 6636 */ 6637 QCA_WLAN_VENDOR_ACS_SELECT_REASON_NON_80211_WB_INTERFERENCE, 6638 /* Represents the reason that Jammer interference has been found in the 6639 * current channel. 6640 */ 6641 QCA_WLAN_VENDOR_ACS_SELECT_REASON_JAMMER_INTERFERENCE, 6642 /* Represents the reason that ACS triggered by AFC */ 6643 QCA_WLAN_VENDOR_ACS_SELECT_REASON_AFC_TRIGGER, 6644 }; 6645 6646 /** 6647 * qca_wlan_vendor_attr_external_acs_policy: Attribute values for 6648 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_POLICY to the vendor subcmd 6649 * QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS. This represents the 6650 * external ACS policies to select the channels w.r.t. the PCL weights. 6651 * (QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL represents the channels and 6652 * their PCL weights.) 6653 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_MANDATORY: Mandatory to 6654 * select a channel with non-zero PCL weight. 6655 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_PREFERRED: Prefer a 6656 * channel with non-zero PCL weight. 6657 * 6658 */ 6659 enum qca_wlan_vendor_attr_external_acs_policy { 6660 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_PREFERRED, 6661 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_MANDATORY, 6662 }; 6663 6664 /** 6665 * qca_wlan_vendor_channel_prop_flags: This represent the flags for a channel. 6666 * This is used by QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS. 6667 */ 6668 enum qca_wlan_vendor_channel_prop_flags { 6669 /* Bits 0, 1, 2, and 3 are reserved */ 6670 6671 /* Turbo channel */ 6672 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_TURBO = 1 << 4, 6673 /* CCK channel */ 6674 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_CCK = 1 << 5, 6675 /* OFDM channel */ 6676 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_OFDM = 1 << 6, 6677 /* 2.4 GHz spectrum channel. */ 6678 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_2GHZ = 1 << 7, 6679 /* 5 GHz spectrum channel */ 6680 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_5GHZ = 1 << 8, 6681 /* Only passive scan allowed */ 6682 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_PASSIVE = 1 << 9, 6683 /* Dynamic CCK-OFDM channel */ 6684 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_DYN = 1 << 10, 6685 /* GFSK channel (FHSS PHY) */ 6686 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_GFSK = 1 << 11, 6687 /* Radar found on channel */ 6688 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_RADAR = 1 << 12, 6689 /* 11a static turbo channel only */ 6690 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_STURBO = 1 << 13, 6691 /* Half rate channel */ 6692 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HALF = 1 << 14, 6693 /* Quarter rate channel */ 6694 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_QUARTER = 1 << 15, 6695 /* HT 20 channel */ 6696 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT20 = 1 << 16, 6697 /* HT 40 with extension channel above */ 6698 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40PLUS = 1 << 17, 6699 /* HT 40 with extension channel below */ 6700 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40MINUS = 1 << 18, 6701 /* HT 40 intolerant */ 6702 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40INTOL = 1 << 19, 6703 /* VHT 20 channel */ 6704 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT20 = 1 << 20, 6705 /* VHT 40 with extension channel above */ 6706 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT40PLUS = 1 << 21, 6707 /* VHT 40 with extension channel below */ 6708 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT40MINUS = 1 << 22, 6709 /* VHT 80 channel */ 6710 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT80 = 1 << 23, 6711 /* HT 40 intolerant mark bit for ACS use */ 6712 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40INTOLMARK = 1 << 24, 6713 /* Channel temporarily blocked due to noise */ 6714 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_BLOCKED = 1 << 25, 6715 /* VHT 160 channel */ 6716 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT160 = 1 << 26, 6717 /* VHT 80+80 channel */ 6718 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT80_80 = 1 << 27, 6719 /* HE 20 channel */ 6720 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE20 = 1 << 28, 6721 /* HE 40 with extension channel above */ 6722 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40PLUS = 1 << 29, 6723 /* HE 40 with extension channel below */ 6724 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40MINUS = 1 << 30, 6725 /* HE 40 intolerant */ 6726 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40INTOL = 1U << 31, 6727 }; 6728 6729 /** 6730 * qca_wlan_vendor_channel_prop_flags_2: This represents the flags for a 6731 * channel, and is a continuation of qca_wlan_vendor_channel_prop_flags. This is 6732 * used by QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS_2. 6733 */ 6734 enum qca_wlan_vendor_channel_prop_flags_2 { 6735 /* HE 40 intolerant mark bit for ACS use */ 6736 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40INTOLMARK = 1 << 0, 6737 /* HE 80 channel */ 6738 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE80 = 1 << 1, 6739 /* HE 160 channel */ 6740 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE160 = 1 << 2, 6741 /* HE 80+80 channel */ 6742 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE80_80 = 1 << 3, 6743 }; 6744 6745 /** 6746 * qca_wlan_vendor_channel_prop_flags_ext: This represent the extended flags for 6747 * each channel. This is used by 6748 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT. 6749 */ 6750 enum qca_wlan_vendor_channel_prop_flags_ext { 6751 /* Radar found on channel */ 6752 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_RADAR_FOUND = 1 << 0, 6753 /* DFS required on channel */ 6754 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS = 1 << 1, 6755 /* DFS required on channel for 2nd band of 80+80 */ 6756 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS_CFREQ2 = 1 << 2, 6757 /* If channel has been checked for DFS */ 6758 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS_CLEAR = 1 << 3, 6759 /* Excluded in 802.11d */ 6760 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_11D_EXCLUDED = 1 << 4, 6761 /* Channel Switch Announcement received on this channel */ 6762 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_CSA_RECEIVED = 1 << 5, 6763 /* Ad-hoc is not allowed */ 6764 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DISALLOW_ADHOC = 1 << 6, 6765 /* Station only channel */ 6766 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DISALLOW_HOSTAP = 1 << 7, 6767 /* DFS radar history for client device (STA mode) */ 6768 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_HISTORY_RADAR = 1 << 8, 6769 /* DFS CAC valid for client device (STA mode) */ 6770 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_CAC_VALID = 1 << 9, 6771 }; 6772 6773 /** 6774 * qca_wlan_vendor_external_acs_event_chan_info_attr: Represents per channel 6775 * information. These attributes are sent as part of 6776 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO. Each set of the following 6777 * attributes correspond to a single channel. 6778 */ 6779 enum qca_wlan_vendor_external_acs_event_chan_info_attr { 6780 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_INVALID = 0, 6781 6782 /* A bitmask (u32) with flags specified in 6783 * enum qca_wlan_vendor_channel_prop_flags. 6784 */ 6785 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS = 1, 6786 /* A bitmask (u32) with flags specified in 6787 * enum qca_wlan_vendor_channel_prop_flags_ext. 6788 */ 6789 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT = 2, 6790 /* frequency in MHz (u32) */ 6791 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ = 3, 6792 /* maximum regulatory transmission power (u32) */ 6793 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_REG_POWER = 4, 6794 /* maximum transmission power (u32) */ 6795 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_POWER = 5, 6796 /* minimum transmission power (u32) */ 6797 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MIN_POWER = 6, 6798 /* regulatory class id (u8) */ 6799 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_REG_CLASS_ID = 7, 6800 /* maximum antenna gain in (u8) */ 6801 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_ANTENNA_GAIN = 8, 6802 /* VHT segment 0 (u8) */ 6803 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0 = 9, 6804 /* VHT segment 1 (u8) */ 6805 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1 = 10, 6806 /* A bitmask (u32) with flags specified in 6807 * enum qca_wlan_vendor_channel_prop_flags_2. 6808 */ 6809 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS_2 = 11, 6810 6811 /* 6812 * Segment 0 in MHz (u32). 6813 * 6814 * For 20/40/80 MHz bandwidth, this indicates the channel center 6815 * frequency index for the 20/40/80 MHz operating channel. 6816 * For 160 MHz bandwidth, this indicates the channel center 6817 * frequency of the primary 80 MHz channel. 6818 * For 320 MHz bandwidth, indicates the channel center frequency 6819 * of the primary 160 MHz channel. 6820 * 6821 * To maintain backward compatibility, 6822 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0 6823 * is also maintained. 6824 */ 6825 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_0 = 12, 6826 /* Legacy alias for the Segment 0 attribute. 6827 * 6828 * VHT segment 0 in MHz (u32) and the attribute is mandatory. 6829 * Note: Event QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS includes 6830 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0 6831 * along with 6832 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0. 6833 * 6834 * If both the driver and user-space application supports the 6 GHz 6835 * band, QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0 6836 * is deprecated and 6837 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0 6838 * should be used. 6839 * 6840 * To maintain backward compatibility, 6841 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0 6842 * is still used if either of the driver or user space application 6843 * doesn't support the 6 GHz band. 6844 */ 6845 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0 = 6846 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_0, 6847 6848 /* 6849 * Segment 1 in MHz (u32). 6850 * 6851 * For 20/40/80 MHz bandwidth, this is set to 0. 6852 * For 160 MHz bandwidth, indicates the channel center frequency of the 6853 * 160 MHz channel. 6854 * For 320 MHz bandwidth, indicates the channel center frequency of the 6855 * 320 MHz channel. 6856 * 6857 * To maintain backward compatibility, 6858 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1 6859 * is also maintained. 6860 */ 6861 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_1 = 13, 6862 /* Legacy alias for the Segment 1 attribute. 6863 * 6864 * VHT segment 1 in MHz (u32) and the attribute is mandatory. 6865 * Note: Event QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS includes 6866 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1 6867 * along with 6868 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1. 6869 * 6870 * If both the driver and user-space application supports the 6 GHz 6871 * band, QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1 6872 * is deprecated and 6873 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1 6874 * should be considered. 6875 * 6876 * To maintain backward compatibility, 6877 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1 6878 * is still used if either of the driver or user space application 6879 * doesn't support the 6 GHz band. 6880 */ 6881 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1 = 6882 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_1, 6883 6884 /* 6885 * 16-bit attribute of bits indicating the AP power modes supported by 6886 * the channel (u16). 6887 * Note: Currently, only 3 bits are used in the attribute and each bit 6888 * corresponds to the power mode mentioned in enum 6889 * qca_wlan_vendor_external_acs_chan_power_mode and a given bit is 6890 * set if the associated mode is supported. 6891 */ 6892 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_SUPP_POWER_MODES 6893 = 14, 6894 /* Array of nested attributes for each power mode. It takes attr as 6895 * defined in enum 6896 * qca_wlan_vendor_external_acs_event_chan_power_info_attr. 6897 */ 6898 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR = 15, 6899 /* 6900 * This indicates the overlapping 320 MHz center frequency in MHz 6901 * (u32), if the given primary channel supports more than one 6902 * 320 MHz channel bonding. 6903 * 6904 * Example: 6905 * For 6 GHz, channel frequency 6115 MHz (channel number 33) segment 0 6906 * center frequency (primary 160 MHz) is 6185 MHz and there can be two 6907 * possible segment 2 frequencies for this (320 MHz center 6908 * frequencies): 6909 * 6910 * 1) Center frequency 6105 MHz (channel 31): 320 MHz channel bonding 6911 * from frequency 5945 MHz - 6265 MHz 6912 * 2) Center frequency 6265 MHz (channel 63): 320 MHz channel bonding 6913 * from frequency 6105 MHz - 6425 MHz 6914 * 6915 * In this case, 6916 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_0 will 6917 * return 6185 MHz. 6918 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_1 will 6919 * return 6105 MHz. 6920 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_OVERLAP_SEG_1 6921 * will return 6265 MHz. 6922 */ 6923 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_OVERLAP_SEG_1 6924 = 16, 6925 6926 /* keep last */ 6927 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_LAST, 6928 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX = 6929 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_LAST - 1, 6930 }; 6931 6932 /** 6933 * qca_wlan_vendor_external_acs_chan_power_mode - Specifies the valid 6934 * values that the vendor external ACS channel power attribute 6935 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_MODE can 6936 * take. 6937 * @QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_LOW_POWER: Low power/Indoor mode 6938 * @QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_STANDARD_POWER: Standard power mode 6939 * @QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_VERY_LOW_POWER: Very low power mode 6940 */ 6941 enum qca_wlan_vendor_external_acs_chan_power_level { 6942 QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_LOW_POWER = 0, 6943 QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_STANDARD_POWER = 1, 6944 QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_VERY_LOW_POWER = 2, 6945 }; 6946 6947 /** 6948 * qca_wlan_vendor_external_acs_event_chan_power_info_attr: Represents nested 6949 * attributes for power mode type and power values corresponding to that. 6950 * These attributes are sent as part of 6951 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR. 6952 */ 6953 enum qca_wlan_vendor_external_acs_event_chan_power_info_attr { 6954 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_INVALID = 0, 6955 /* 6956 * Power mode (u8) takes the values defined in enum 6957 * qca_wlan_vendor_external_acs_chan_power_mode 6958 */ 6959 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_MODE 6960 = 1, 6961 /* 6962 * Indicates if power value is a PSD/EIRP value (flag). If flag is 6963 * present, it indicates a PSD value. 6964 */ 6965 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_PSD_FLAG = 2, 6966 /* 6967 * Power value (u32) PSD/EIRP as indicated by 6968 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_PSD_FLAG, 6969 * for power mode corresponding to the 6970 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_MODE. 6971 * Units for PSD - dBm/MHz 6972 * Units for EIRP - dBm 6973 */ 6974 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_VALUE 6975 = 3, 6976 /* keep last */ 6977 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_LAST, 6978 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_MAX = 6979 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_LAST - 1, 6980 }; 6981 6982 /** 6983 * qca_wlan_vendor_attr_pcl: Represents attributes for 6984 * preferred channel list (PCL). These attributes are sent as part of 6985 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL and 6986 * QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST. 6987 */ 6988 enum qca_wlan_vendor_attr_pcl { 6989 QCA_WLAN_VENDOR_ATTR_PCL_INVALID = 0, 6990 6991 /* Channel number (u8) */ 6992 QCA_WLAN_VENDOR_ATTR_PCL_CHANNEL = 1, 6993 /* Channel weightage (u8) */ 6994 QCA_WLAN_VENDOR_ATTR_PCL_WEIGHT = 2, 6995 /* Channel frequency (u32) in MHz */ 6996 QCA_WLAN_VENDOR_ATTR_PCL_FREQ = 3, 6997 /* Channel flags (u32) 6998 * bit 0 set: channel to be used for GO role, 6999 * bit 1 set: channel to be used on CLI role, 7000 * bit 2 set: channel must be considered for operating channel 7001 * selection & peer chosen operating channel should be 7002 * one of the channels with this flag set, 7003 * bit 3 set: channel should be excluded in GO negotiation 7004 */ 7005 QCA_WLAN_VENDOR_ATTR_PCL_FLAG = 4, 7006 7007 /* Keep last */ 7008 QCA_WLAN_VENDOR_ATTR_PCL_LAST, 7009 QCA_WLAN_VENDOR_ATTR_PCL_MAX = QCA_WLAN_VENDOR_ATTR_PCL_LAST - 1 7010 }; 7011 7012 /** 7013 * qca_wlan_vendor_attr_external_acs_event: Attribute to vendor sub-command 7014 * QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS. This attribute will be sent by 7015 * host driver. 7016 */ 7017 enum qca_wlan_vendor_attr_external_acs_event { 7018 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_INVALID = 0, 7019 7020 /* This reason (u8) refers to enum qca_wlan_vendor_acs_select_reason. 7021 * This helps ACS module to understand why ACS needs to be started. 7022 */ 7023 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON = 1, 7024 /* Flag attribute to indicate if driver supports spectral scanning */ 7025 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_SPECTRAL_SUPPORTED = 2, 7026 /* Flag attribute to indicate if 11ac is offloaded to firmware */ 7027 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_OFFLOAD_ENABLED = 3, 7028 /* Flag attribute to indicate if driver provides additional channel 7029 * capability as part of scan operation 7030 */ 7031 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_ADD_CHAN_STATS_SUPPORT = 4, 7032 /* Flag attribute to indicate interface status is UP */ 7033 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AP_UP = 5, 7034 /* Operating mode (u8) of interface. Takes one of enum nl80211_iftype 7035 * values. 7036 */ 7037 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_SAP_MODE = 6, 7038 /* Channel width (u8). It takes one of enum nl80211_chan_width values. 7039 * This is the upper bound of channel width. ACS logic should try to get 7040 * a channel with the specified width and if not found, look for lower 7041 * values. 7042 */ 7043 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_WIDTH = 7, 7044 /* This (u8) will hold values of one of enum nl80211_bands */ 7045 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_BAND = 8, 7046 /* PHY/HW mode (u8). Takes one of enum qca_wlan_vendor_acs_hw_mode 7047 * values 7048 */ 7049 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PHY_MODE = 9, 7050 /* Array of (u32) supported frequency list among which ACS should choose 7051 * best frequency. 7052 */ 7053 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_FREQ_LIST = 10, 7054 /* Preferred channel list by the driver which will have array of nested 7055 * values as per enum qca_wlan_vendor_attr_pcl attribute. 7056 */ 7057 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL = 11, 7058 /* Array of nested attribute for each channel. It takes attr as defined 7059 * in enum qca_wlan_vendor_external_acs_event_chan_info_attr. 7060 */ 7061 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO = 12, 7062 /* External ACS policy such as PCL mandatory, PCL preferred, etc. 7063 * It uses values defined in enum 7064 * qca_wlan_vendor_attr_external_acs_policy. 7065 */ 7066 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_POLICY = 13, 7067 /* Reference RF Operating Parameter (RROP) availability information 7068 * (u16). It uses values defined in enum 7069 * qca_wlan_vendor_attr_rropavail_info. 7070 */ 7071 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_RROPAVAIL_INFO = 14, 7072 /* Flag attribute to indicate if driver supports 6 GHz AFC trigger 7073 * for External ACS 7074 */ 7075 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AFC_CAPABILITY = 15, 7076 7077 /* keep last */ 7078 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_LAST, 7079 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_MAX = 7080 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_LAST - 1, 7081 }; 7082 7083 /** 7084 * enum qca_wlan_vendor_attr_external_acs_channels: Attributes to vendor subcmd 7085 * QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS. This carries a list of channels 7086 * in priority order as decided after ACS operation in userspace. 7087 * 7088 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON: Required (u8). 7089 * One of reason code from enum qca_wlan_vendor_acs_select_reason. 7090 * 7091 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST: Required 7092 * Array of nested values for each channel with following attributes: 7093 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY, 7094 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY, 7095 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0, 7096 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1, 7097 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH 7098 * Note: If both the driver and user-space application supports the 6 GHz band, 7099 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST is deprecated and use 7100 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST. 7101 * To maintain backward compatibility, 7102 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST 7103 * is still used if either of the driver or user space application doesn't 7104 * support the 6 GHz band. 7105 * 7106 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY: Required (u8). 7107 * Primary channel number 7108 * Note: If both the driver and user-space application supports the 6 GHz band, 7109 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY is deprecated and use 7110 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY. 7111 * To maintain backward compatibility, 7112 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY 7113 * is still used if either of the driver or user space application doesn't 7114 * support the 6 GHz band. 7115 * 7116 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY: Required (u8). 7117 * Secondary channel number, required only for 160 and 80+80 MHz bandwidths. 7118 * Note: If both the driver and user-space application supports the 6 GHz band, 7119 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY is deprecated and use 7120 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY. 7121 * To maintain backward compatibility, 7122 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY 7123 * is still used if either of the driver or user space application 7124 * doesn't support the 6 GHz band. 7125 * 7126 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0: Required (u8). 7127 * VHT seg0 channel number 7128 * Note: If both the driver and user-space application supports the 6 GHz band, 7129 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0 is deprecated and use 7130 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0. 7131 * To maintain backward compatibility, 7132 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0 7133 * is still used if either of the driver or user space application 7134 * doesn't support the 6 GHz band. 7135 * 7136 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1: Required (u8). 7137 * VHT seg1 channel number 7138 * Note: If both the driver and user-space application supports the 6 GHz band, 7139 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1 is deprecated and use 7140 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1. 7141 * To maintain backward compatibility, 7142 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1 7143 * is still used if either of the driver or user space application 7144 * doesn't support the 6 GHz band. 7145 * 7146 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH: Required (u8). 7147 * Takes one of enum nl80211_chan_width values. 7148 * 7149 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST: Required 7150 * Array of nested values for each channel with following attributes: 7151 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY in MHz (u32), 7152 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY in MHz (u32), 7153 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0 in MHz (u32), 7154 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1 in MHz (u32), 7155 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH 7156 * Note: If user-space application has no support of the 6 GHz band, this 7157 * attribute is optional. 7158 * 7159 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY: Required (u32) 7160 * Primary channel frequency in MHz 7161 * Note: If user-space application has no support of the 6 GHz band, this 7162 * attribute is optional. 7163 * 7164 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY: Required (u32) 7165 * Secondary channel frequency in MHz used for HT 40 MHz channels. 7166 * Note: If user-space application has no support of the 6 GHz band, this 7167 * attribute is optional. 7168 * 7169 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0: Required (u32) 7170 * VHT seg0 channel frequency in MHz 7171 * Note: If user-space application has no support of the 6GHz band, this 7172 * attribute is optional. 7173 * 7174 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1: Required (u32) 7175 * VHT seg1 channel frequency in MHz 7176 * Note: If user-space application has no support of the 6 GHz band, this 7177 * attribute is optional. 7178 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_PUNCTURE_BITMAP: Required (u16) 7179 * Puncture Bitmap for selected primary channel. Optional if no support 7180 * for EHT (IEEE 802.11be). Encoding for this attribute follows the 7181 * convention used in the Disabled Subchannel Bitmap field of the EHT Operation 7182 * element. 7183 */ 7184 enum qca_wlan_vendor_attr_external_acs_channels { 7185 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_INVALID = 0, 7186 7187 /* One of reason code (u8) from enum qca_wlan_vendor_acs_select_reason 7188 */ 7189 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON = 1, 7190 7191 /* Array of nested values for each channel with following attributes: 7192 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_BAND, 7193 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY, 7194 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY, 7195 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0, 7196 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1, 7197 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH 7198 */ 7199 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST = 2, 7200 /* This (u8) will hold values of one of enum nl80211_bands */ 7201 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_BAND = 3, 7202 /* Primary channel (u8) */ 7203 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY = 4, 7204 /* Secondary channel (u8) used for HT 40 MHz channels */ 7205 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY = 5, 7206 /* VHT seg0 channel (u8) */ 7207 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0 = 6, 7208 /* VHT seg1 channel (u8) */ 7209 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1 = 7, 7210 /* Channel width (u8). Takes one of enum nl80211_chan_width values. */ 7211 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH = 8, 7212 7213 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST = 9, 7214 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY = 10, 7215 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY = 11, 7216 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0 = 12, 7217 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1 = 13, 7218 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_PUNCTURE_BITMAP = 14, 7219 7220 /* keep last */ 7221 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LAST, 7222 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_MAX = 7223 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LAST - 1 7224 }; 7225 7226 enum qca_chip_power_save_failure_reason { 7227 /* Indicates if the reason for the failure is due to a protocol 7228 * layer/module. 7229 */ 7230 QCA_CHIP_POWER_SAVE_FAILURE_REASON_PROTOCOL = 0, 7231 /* Indicates if the reason for the failure is due to a hardware issue. 7232 */ 7233 QCA_CHIP_POWER_SAVE_FAILURE_REASON_HARDWARE = 1, 7234 }; 7235 7236 /** 7237 * qca_attr_chip_power_save_failure: Attributes to vendor subcmd 7238 * QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE. This carries the requisite 7239 * information leading to the power save failure. 7240 */ 7241 enum qca_attr_chip_power_save_failure { 7242 QCA_ATTR_CHIP_POWER_SAVE_FAILURE_INVALID = 0, 7243 /* Reason to cause the power save failure. 7244 * These reasons are represented by 7245 * enum qca_chip_power_save_failure_reason. 7246 */ 7247 QCA_ATTR_CHIP_POWER_SAVE_FAILURE_REASON = 1, 7248 7249 /* keep last */ 7250 QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST, 7251 QCA_ATTR_CHIP_POWER_SAVE_FAILURE_MAX = 7252 QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST - 1, 7253 }; 7254 7255 /** 7256 * qca_wlan_vendor_nud_stats_data_pkt_flags: Flag representing the various 7257 * data types for which the stats have to get collected. 7258 */ 7259 enum qca_wlan_vendor_nud_stats_data_pkt_flags { 7260 QCA_WLAN_VENDOR_NUD_STATS_DATA_ARP = 1 << 0, 7261 QCA_WLAN_VENDOR_NUD_STATS_DATA_DNS = 1 << 1, 7262 QCA_WLAN_VENDOR_NUD_STATS_DATA_TCP_HANDSHAKE = 1 << 2, 7263 QCA_WLAN_VENDOR_NUD_STATS_DATA_ICMPV4 = 1 << 3, 7264 QCA_WLAN_VENDOR_NUD_STATS_DATA_ICMPV6 = 1 << 4, 7265 /* Used by QCA_ATTR_NUD_STATS_PKT_TYPE only in nud stats get 7266 * to represent the stats of respective data type. 7267 */ 7268 QCA_WLAN_VENDOR_NUD_STATS_DATA_TCP_SYN = 1 << 5, 7269 QCA_WLAN_VENDOR_NUD_STATS_DATA_TCP_SYN_ACK = 1 << 6, 7270 QCA_WLAN_VENDOR_NUD_STATS_DATA_TCP_ACK = 1 << 7, 7271 }; 7272 7273 enum qca_wlan_vendor_nud_stats_set_data_pkt_info { 7274 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_INVALID = 0, 7275 /* Represents the data packet type to be monitored (u32). 7276 * Host driver tracks the stats corresponding to each data frame 7277 * represented by these flags. 7278 * These data packets are represented by 7279 * enum qca_wlan_vendor_nud_stats_data_pkt_flags 7280 */ 7281 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_TYPE = 1, 7282 /* Name corresponding to the DNS frame for which the respective DNS 7283 * stats have to get monitored (string). Max string length 255. 7284 */ 7285 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_DNS_DOMAIN_NAME = 2, 7286 /* source port on which the respective proto stats have to get 7287 * collected (u32). 7288 */ 7289 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_SRC_PORT = 3, 7290 /* destination port on which the respective proto stats have to get 7291 * collected (u32). 7292 */ 7293 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_DEST_PORT = 4, 7294 /* IPv4 address for which the destined data packets have to be 7295 * monitored. (in network byte order), u32. 7296 */ 7297 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_DEST_IPV4 = 5, 7298 /* IPv6 address for which the destined data packets have to be 7299 * monitored. (in network byte order), 16 bytes array. 7300 */ 7301 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_DEST_IPV6 = 6, 7302 7303 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_LAST, 7304 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_MAX = 7305 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_LAST - 1, 7306 }; 7307 7308 /** 7309 * qca_wlan_vendor_attr_nud_stats_set: Attributes to vendor subcmd 7310 * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carries the requisite 7311 * information to start/stop the NUD statistics collection. 7312 */ 7313 enum qca_attr_nud_stats_set { 7314 QCA_ATTR_NUD_STATS_SET_INVALID = 0, 7315 7316 /* Flag to start/stop the NUD statistics collection. 7317 * Start - If included, Stop - If not included 7318 */ 7319 QCA_ATTR_NUD_STATS_SET_START = 1, 7320 /* IPv4 address of the default gateway (in network byte order), u32 */ 7321 QCA_ATTR_NUD_STATS_GW_IPV4 = 2, 7322 /* Represents the list of data packet types to be monitored. 7323 * Host driver tracks the stats corresponding to each data frame 7324 * represented by these flags. 7325 * These data packets are represented by 7326 * enum qca_wlan_vendor_nud_stats_set_data_pkt_info 7327 */ 7328 QCA_ATTR_NUD_STATS_SET_DATA_PKT_INFO = 3, 7329 7330 /* keep last */ 7331 QCA_ATTR_NUD_STATS_SET_LAST, 7332 QCA_ATTR_NUD_STATS_SET_MAX = 7333 QCA_ATTR_NUD_STATS_SET_LAST - 1, 7334 }; 7335 7336 enum qca_attr_nud_data_stats { 7337 QCA_ATTR_NUD_DATA_STATS_INVALID = 0, 7338 /* Data packet type for which the stats are collected (u32). 7339 * Represented by enum qca_wlan_vendor_nud_stats_data_pkt_flags 7340 */ 7341 QCA_ATTR_NUD_STATS_PKT_TYPE = 1, 7342 /* Name corresponding to the DNS frame for which the respective DNS 7343 * stats are monitored (string). Max string length 255. 7344 */ 7345 QCA_ATTR_NUD_STATS_PKT_DNS_DOMAIN_NAME = 2, 7346 /* source port on which the respective proto stats are collected (u32). 7347 */ 7348 QCA_ATTR_NUD_STATS_PKT_SRC_PORT = 3, 7349 /* destination port on which the respective proto stats are collected 7350 * (u32). 7351 */ 7352 QCA_ATTR_NUD_STATS_PKT_DEST_PORT = 4, 7353 /* IPv4 address for which the destined data packets have to be 7354 * monitored. (in network byte order), u32. 7355 */ 7356 QCA_ATTR_NUD_STATS_PKT_DEST_IPV4 = 5, 7357 /* IPv6 address for which the destined data packets have to be 7358 * monitored. (in network byte order), 16 bytes array. 7359 */ 7360 QCA_ATTR_NUD_STATS_PKT_DEST_IPV6 = 6, 7361 /* Data packet Request count received from netdev (u32). */ 7362 QCA_ATTR_NUD_STATS_PKT_REQ_COUNT_FROM_NETDEV = 7, 7363 /* Data packet Request count sent to lower MAC from upper MAC (u32). */ 7364 QCA_ATTR_NUD_STATS_PKT_REQ_COUNT_TO_LOWER_MAC = 8, 7365 /* Data packet Request count received by lower MAC from upper MAC 7366 * (u32) 7367 */ 7368 QCA_ATTR_NUD_STATS_PKT_REQ_RX_COUNT_BY_LOWER_MAC = 9, 7369 /* Data packet Request count successfully transmitted by the device 7370 * (u32) 7371 */ 7372 QCA_ATTR_NUD_STATS_PKT_REQ_COUNT_TX_SUCCESS = 10, 7373 /* Data packet Response count received by lower MAC (u32) */ 7374 QCA_ATTR_NUD_STATS_PKT_RSP_RX_COUNT_BY_LOWER_MAC = 11, 7375 /* Data packet Response count received by upper MAC (u32) */ 7376 QCA_ATTR_NUD_STATS_PKT_RSP_RX_COUNT_BY_UPPER_MAC = 12, 7377 /* Data packet Response count delivered to netdev (u32) */ 7378 QCA_ATTR_NUD_STATS_PKT_RSP_COUNT_TO_NETDEV = 13, 7379 /* Data Packet Response count that are dropped out of order (u32) */ 7380 QCA_ATTR_NUD_STATS_PKT_RSP_COUNT_OUT_OF_ORDER_DROP = 14, 7381 7382 /* keep last */ 7383 QCA_ATTR_NUD_DATA_STATS_LAST, 7384 QCA_ATTR_NUD_DATA_STATS_MAX = 7385 QCA_ATTR_NUD_DATA_STATS_LAST - 1, 7386 }; 7387 7388 /** 7389 * qca_attr_nud_stats_get: Attributes to vendor subcmd 7390 * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET. This carries the requisite 7391 * NUD statistics collected when queried. 7392 */ 7393 enum qca_attr_nud_stats_get { 7394 QCA_ATTR_NUD_STATS_GET_INVALID = 0, 7395 /* ARP Request count from netdev (u32) */ 7396 QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_FROM_NETDEV = 1, 7397 /* ARP Request count sent to lower MAC from upper MAC (u32) */ 7398 QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_TO_LOWER_MAC = 2, 7399 /* ARP Request count received by lower MAC from upper MAC (u32) */ 7400 QCA_ATTR_NUD_STATS_ARP_REQ_RX_COUNT_BY_LOWER_MAC = 3, 7401 /* ARP Request count successfully transmitted by the device (u32) */ 7402 QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_TX_SUCCESS = 4, 7403 /* ARP Response count received by lower MAC (u32) */ 7404 QCA_ATTR_NUD_STATS_ARP_RSP_RX_COUNT_BY_LOWER_MAC = 5, 7405 /* ARP Response count received by upper MAC (u32) */ 7406 QCA_ATTR_NUD_STATS_ARP_RSP_RX_COUNT_BY_UPPER_MAC = 6, 7407 /* ARP Response count delivered to netdev (u32) */ 7408 QCA_ATTR_NUD_STATS_ARP_RSP_COUNT_TO_NETDEV = 7, 7409 /* ARP Response count dropped due to out of order reception (u32) */ 7410 QCA_ATTR_NUD_STATS_ARP_RSP_COUNT_OUT_OF_ORDER_DROP = 8, 7411 /* Flag indicating if the station's link to the AP is active. 7412 * Active Link - If included, Inactive link - If not included 7413 */ 7414 QCA_ATTR_NUD_STATS_AP_LINK_ACTIVE = 9, 7415 /* Flag indicating if there is any duplicate address detected (DAD). 7416 * Yes - If detected, No - If not detected. 7417 */ 7418 QCA_ATTR_NUD_STATS_IS_DAD = 10, 7419 /* List of Data packet types for which the stats are requested. 7420 * This list does not carry ARP stats as they are done by the 7421 * above attributes. Represented by enum qca_attr_nud_data_stats. 7422 */ 7423 QCA_ATTR_NUD_STATS_DATA_PKT_STATS = 11, 7424 7425 /* keep last */ 7426 QCA_ATTR_NUD_STATS_GET_LAST, 7427 QCA_ATTR_NUD_STATS_GET_MAX = 7428 QCA_ATTR_NUD_STATS_GET_LAST - 1, 7429 }; 7430 7431 enum qca_wlan_btm_candidate_status { 7432 QCA_STATUS_ACCEPT = 0, 7433 QCA_STATUS_REJECT_EXCESSIVE_FRAME_LOSS_EXPECTED = 1, 7434 QCA_STATUS_REJECT_EXCESSIVE_DELAY_EXPECTED = 2, 7435 QCA_STATUS_REJECT_INSUFFICIENT_QOS_CAPACITY = 3, 7436 QCA_STATUS_REJECT_LOW_RSSI = 4, 7437 QCA_STATUS_REJECT_HIGH_INTERFERENCE = 5, 7438 QCA_STATUS_REJECT_UNKNOWN = 6, 7439 }; 7440 7441 enum qca_wlan_vendor_attr_btm_candidate_info { 7442 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_INVALID = 0, 7443 7444 /* 6-byte MAC address representing the BSSID of transition candidate */ 7445 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID = 1, 7446 /* Unsigned 32-bit value from enum qca_wlan_btm_candidate_status 7447 * returned by the driver. It says whether the BSSID provided in 7448 * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID is acceptable by 7449 * the driver, if not it specifies the reason for rejection. 7450 * Note that the user-space can overwrite the transition reject reason 7451 * codes provided by driver based on more information. 7452 */ 7453 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_STATUS = 2, 7454 7455 /* keep last */ 7456 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_AFTER_LAST, 7457 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_MAX = 7458 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_AFTER_LAST - 1, 7459 }; 7460 7461 enum qca_attr_trace_level { 7462 QCA_ATTR_TRACE_LEVEL_INVALID = 0, 7463 /* 7464 * Nested array of the following attributes: 7465 * QCA_ATTR_TRACE_LEVEL_MODULE, 7466 * QCA_ATTR_TRACE_LEVEL_MASK. 7467 */ 7468 QCA_ATTR_TRACE_LEVEL_PARAM = 1, 7469 /* 7470 * Specific QCA host driver module. Please refer to the QCA host 7471 * driver implementation to get the specific module ID. 7472 */ 7473 QCA_ATTR_TRACE_LEVEL_MODULE = 2, 7474 /* Different trace level masks represented in the QCA host driver. */ 7475 QCA_ATTR_TRACE_LEVEL_MASK = 3, 7476 7477 /* keep last */ 7478 QCA_ATTR_TRACE_LEVEL_AFTER_LAST, 7479 QCA_ATTR_TRACE_LEVEL_MAX = 7480 QCA_ATTR_TRACE_LEVEL_AFTER_LAST - 1, 7481 }; 7482 7483 /** 7484 * enum qca_wlan_vendor_attr_get_he_capabilities - IEEE 802.11ax HE capabilities 7485 */ 7486 enum qca_wlan_vendor_attr_get_he_capabilities { 7487 QCA_WLAN_VENDOR_ATTR_HE_CAPABILITIES_INVALID = 0, 7488 /* Whether HE capabilities is supported 7489 * (u8 attribute: 0 = not supported, 1 = supported) 7490 */ 7491 QCA_WLAN_VENDOR_ATTR_HE_SUPPORTED = 1, 7492 /* HE PHY capabilities, array of 3 u32 values */ 7493 QCA_WLAN_VENDOR_ATTR_PHY_CAPAB = 2, 7494 /* HE MAC capabilities (u32 attribute) */ 7495 QCA_WLAN_VENDOR_ATTR_MAC_CAPAB = 3, 7496 /* HE MCS map (u32 attribute) */ 7497 QCA_WLAN_VENDOR_ATTR_HE_MCS = 4, 7498 /* Number of SS (u32 attribute) */ 7499 QCA_WLAN_VENDOR_ATTR_NUM_SS = 5, 7500 /* RU count (u32 attribute) */ 7501 QCA_WLAN_VENDOR_ATTR_RU_IDX_MASK = 6, 7502 /* PPE threshold data, array of 8 u32 values */ 7503 QCA_WLAN_VENDOR_ATTR_PPE_THRESHOLD = 7, 7504 7505 /* keep last */ 7506 QCA_WLAN_VENDOR_ATTR_HE_CAPABILITIES_AFTER_LAST, 7507 QCA_WLAN_VENDOR_ATTR_HE_CAPABILITIES_MAX = 7508 QCA_WLAN_VENDOR_ATTR_HE_CAPABILITIES_AFTER_LAST - 1, 7509 }; 7510 7511 /** 7512 * enum qca_wlan_vendor_attr_spectral_scan - Spectral scan config parameters 7513 */ 7514 enum qca_wlan_vendor_attr_spectral_scan { 7515 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_INVALID = 0, 7516 /* Number of times the chip enters spectral scan mode before 7517 * deactivating spectral scans. When set to 0, chip will enter spectral 7518 * scan mode continuously. u32 attribute. 7519 */ 7520 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SCAN_COUNT = 1, 7521 /* Spectral scan period. Period increment resolution is 256*Tclk, 7522 * where Tclk = 1/44 MHz (Gmode), 1/40 MHz (Amode). u32 attribute. 7523 */ 7524 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SCAN_PERIOD = 2, 7525 /* Spectral scan priority. u32 attribute. */ 7526 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_PRIORITY = 3, 7527 /* Number of FFT data points to compute. u32 attribute. */ 7528 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_SIZE = 4, 7529 /* Enable targeted gain change before starting the spectral scan FFT. 7530 * u32 attribute. 7531 */ 7532 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_GC_ENA = 5, 7533 /* Restart a queued spectral scan. u32 attribute. */ 7534 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RESTART_ENA = 6, 7535 /* Noise floor reference number for the calculation of bin power. 7536 * u32 attribute. 7537 */ 7538 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_NOISE_FLOOR_REF = 7, 7539 /* Disallow spectral scan triggers after TX/RX packets by setting 7540 * this delay value to roughly SIFS time period or greater. 7541 * u32 attribute. 7542 */ 7543 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_INIT_DELAY = 8, 7544 /* Number of strong bins (inclusive) per sub-channel, below 7545 * which a signal is declared a narrow band tone. u32 attribute. 7546 */ 7547 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_NB_TONE_THR = 9, 7548 /* Specify the threshold over which a bin is declared strong (for 7549 * scan bandwidth analysis). u32 attribute. 7550 */ 7551 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_STR_BIN_THR = 10, 7552 /* Spectral scan report mode. u32 attribute. */ 7553 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_WB_RPT_MODE = 11, 7554 /* RSSI report mode, if the ADC RSSI is below 7555 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_THR, 7556 * then FFTs will not trigger, but timestamps and summaries get 7557 * reported. u32 attribute. 7558 */ 7559 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_RPT_MODE = 12, 7560 /* ADC RSSI must be greater than or equal to this threshold (signed dB) 7561 * to ensure spectral scan reporting with normal error code. 7562 * u32 attribute. 7563 */ 7564 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_THR = 13, 7565 /* Format of frequency bin magnitude for spectral scan triggered FFTs: 7566 * 0: linear magnitude, 1: log magnitude (20*log10(lin_mag)). 7567 * u32 attribute. 7568 */ 7569 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_PWR_FORMAT = 14, 7570 /* Format of FFT report to software for spectral scan triggered FFTs. 7571 * 0: No FFT report (only spectral scan summary report) 7572 * 1: 2-dword summary of metrics for each completed FFT + spectral scan 7573 * report 7574 * 2: 2-dword summary of metrics for each completed FFT + 1x-oversampled 7575 * bins (in-band) per FFT + spectral scan summary report 7576 * 3: 2-dword summary of metrics for each completed FFT + 2x-oversampled 7577 * bins (all) per FFT + spectral scan summary report 7578 * u32 attribute. 7579 */ 7580 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RPT_MODE = 15, 7581 /* Number of LSBs to shift out in order to scale the FFT bins. 7582 * u32 attribute. 7583 */ 7584 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_BIN_SCALE = 16, 7585 /* Set to 1 (with spectral_scan_pwr_format=1), to report bin magnitudes 7586 * in dBm power. u32 attribute. 7587 */ 7588 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DBM_ADJ = 17, 7589 /* Per chain enable mask to select input ADC for search FFT. 7590 * u32 attribute. 7591 */ 7592 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_CHN_MASK = 18, 7593 /* An unsigned 64-bit integer provided by host driver to identify the 7594 * spectral scan request. This attribute is included in the scan 7595 * response message for @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START 7596 * and used as an attribute in 7597 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP to identify the 7598 * specific scan to be stopped. 7599 */ 7600 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE = 19, 7601 /* Skip interval for FFT reports. u32 attribute */ 7602 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_PERIOD = 20, 7603 /* Set to report only one set of FFT results. 7604 * u32 attribute. 7605 */ 7606 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SHORT_REPORT = 21, 7607 /* Debug level for spectral module in driver. 7608 * 0 : Verbosity level 0 7609 * 1 : Verbosity level 1 7610 * 2 : Verbosity level 2 7611 * 3 : Matched filterID display 7612 * 4 : One time dump of FFT report 7613 * u32 attribute. 7614 */ 7615 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DEBUG_LEVEL = 22, 7616 /* Type of spectral scan request. u32 attribute. 7617 * It uses values defined in enum 7618 * qca_wlan_vendor_attr_spectral_scan_request_type. 7619 */ 7620 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE = 23, 7621 /* This specifies the frequency span over which spectral 7622 * scan would be carried out. Its value depends on the 7623 * value of QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE and 7624 * the relation is as follows. 7625 * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL 7626 * Not applicable. Spectral scan would happen in the 7627 * operating span. 7628 * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE 7629 * Center frequency (in MHz) of the span of interest or 7630 * for convenience, center frequency (in MHz) of any channel 7631 * in the span of interest. For 80+80 MHz agile spectral scan 7632 * request it represents center frequency (in MHz) of the primary 7633 * 80 MHz span or for convenience, center frequency (in MHz) of any 7634 * channel in the primary 80 MHz span. If agile spectral scan is 7635 * initiated without setting a valid frequency it returns the 7636 * error code 7637 * (QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED). 7638 * u32 attribute. 7639 */ 7640 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FREQUENCY = 24, 7641 /* Spectral scan mode. u32 attribute. 7642 * It uses values defined in enum qca_wlan_vendor_spectral_scan_mode. 7643 * If this attribute is not present, it is assumed to be 7644 * normal mode (QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL). 7645 */ 7646 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE = 25, 7647 /* Spectral scan error code. u32 attribute. 7648 * It uses values defined in enum 7649 * qca_wlan_vendor_spectral_scan_error_code. 7650 * This attribute is included only in failure scenarios. 7651 */ 7652 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_ERROR_CODE = 26, 7653 /* 8-bit unsigned value to enable/disable debug of the 7654 * Spectral DMA ring. 7655 * 1-enable, 0-disable 7656 */ 7657 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DMA_RING_DEBUG = 27, 7658 /* 8-bit unsigned value to enable/disable debug of the 7659 * Spectral DMA buffers. 7660 * 1-enable, 0-disable 7661 */ 7662 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DMA_BUFFER_DEBUG = 28, 7663 /* This specifies the frequency span over which spectral scan would be 7664 * carried out. Its value depends on the value of 7665 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE and the relation is as 7666 * follows. 7667 * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL 7668 * Not applicable. Spectral scan would happen in the operating span. 7669 * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE 7670 * This attribute is applicable only for agile spectral scan 7671 * requests in 80+80 MHz mode. It represents center frequency (in 7672 * MHz) of the secondary 80 MHz span or for convenience, center 7673 * frequency (in MHz) of any channel in the secondary 80 MHz span. 7674 * u32 attribute. 7675 */ 7676 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FREQUENCY_2 = 29, 7677 /* This attribute specifies the bandwidth to be used for spectral scan 7678 * operation. This is an u8 attribute and uses the values in enum 7679 * nl80211_chan_width. This is an optional attribute. 7680 * If this attribute is not populated, the driver should configure the 7681 * spectral scan bandwidth to the maximum value supported by the target 7682 * for the current operating bandwidth. 7683 */ 7684 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_BANDWIDTH = 30, 7685 /* Spectral FFT recapture flag attribute, to enable FFT recapture. 7686 * Recapture can only be enabled for scan period greater than 52 us. 7687 * If this attribute is enabled, re-triggers will be enabled when AGC 7688 * gain changes. 7689 */ 7690 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_RECAPTURE = 31, 7691 /* Attribute used for padding for 64-bit alignment */ 7692 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_PAD = 32, 7693 7694 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_AFTER_LAST, 7695 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_MAX = 7696 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_AFTER_LAST - 1, 7697 }; 7698 7699 /** 7700 * enum qca_wlan_vendor_attr_spectral_diag_stats - Used by the vendor command 7701 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS. 7702 */ 7703 enum qca_wlan_vendor_attr_spectral_diag_stats { 7704 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_INVALID = 0, 7705 /* Number of spectral TLV signature mismatches. 7706 * u64 attribute. 7707 */ 7708 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_SIG_MISMATCH = 1, 7709 /* Number of spectral phyerror events with insufficient length when 7710 * parsing for secondary 80 search FFT report. u64 attribute. 7711 */ 7712 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_SEC80_SFFT_INSUFFLEN = 2, 7713 /* Number of spectral phyerror events without secondary 80 7714 * search FFT report. u64 attribute. 7715 */ 7716 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_NOSEC80_SFFT = 3, 7717 /* Number of spectral phyerror events with vht operation segment 1 id 7718 * mismatches in search fft report. u64 attribute. 7719 */ 7720 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_VHTSEG1ID_MISMATCH = 4, 7721 /* Number of spectral phyerror events with vht operation segment 2 id 7722 * mismatches in search fft report. u64 attribute. 7723 */ 7724 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_VHTSEG2ID_MISMATCH = 5, 7725 /* Attribute used for padding for 64-bit alignment */ 7726 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_PAD = 6, 7727 7728 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_AFTER_LAST, 7729 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_MAX = 7730 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_AFTER_LAST - 1, 7731 }; 7732 7733 /** 7734 * enum qca_wlan_vendor_attr_spectral_cap - Used by the vendor command 7735 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO. 7736 */ 7737 enum qca_wlan_vendor_attr_spectral_cap { 7738 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_INVALID = 0, 7739 /* Flag attribute to indicate phydiag capability */ 7740 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_PHYDIAG = 1, 7741 /* Flag attribute to indicate radar detection capability */ 7742 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_RADAR = 2, 7743 /* Flag attribute to indicate spectral capability */ 7744 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_SPECTRAL = 3, 7745 /* Flag attribute to indicate advanced spectral capability */ 7746 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_ADVANCED_SPECTRAL = 4, 7747 /* Spectral hardware generation. u32 attribute. 7748 * It uses values defined in enum 7749 * qca_wlan_vendor_spectral_scan_cap_hw_gen. 7750 */ 7751 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HW_GEN = 5, 7752 /* Spectral bin scaling formula ID. u16 attribute. 7753 * It uses values defined in enum 7754 * qca_wlan_vendor_spectral_scan_cap_formula_id. 7755 */ 7756 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_FORMULA_ID = 6, 7757 /* Spectral bin scaling param - low level offset. 7758 * s16 attribute. 7759 */ 7760 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_LOW_LEVEL_OFFSET = 7, 7761 /* Spectral bin scaling param - high level offset. 7762 * s16 attribute. 7763 */ 7764 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HIGH_LEVEL_OFFSET = 8, 7765 /* Spectral bin scaling param - RSSI threshold. 7766 * s16 attribute. 7767 */ 7768 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_RSSI_THR = 9, 7769 /* Spectral bin scaling param - default AGC max gain. 7770 * u8 attribute. 7771 */ 7772 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_DEFAULT_AGC_MAX_GAIN = 10, 7773 /* Flag attribute to indicate agile spectral scan capability 7774 * for 20/40/80 MHz modes. 7775 */ 7776 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL = 11, 7777 /* Flag attribute to indicate agile spectral scan capability 7778 * for 160 MHz mode. 7779 */ 7780 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL_160 = 12, 7781 /* Flag attribute to indicate agile spectral scan capability 7782 * for 80+80 MHz mode. 7783 */ 7784 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL_80_80 = 13, 7785 /* Number of spectral detectors used for scan in 20 MHz. 7786 * u32 attribute. 7787 */ 7788 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_20_MHZ = 14, 7789 /* Number of spectral detectors used for scan in 40 MHz. 7790 * u32 attribute. 7791 */ 7792 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_40_MHZ = 15, 7793 /* Number of spectral detectors used for scan in 80 MHz. 7794 * u32 attribute. 7795 */ 7796 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_80_MHZ = 16, 7797 /* Number of spectral detectors used for scan in 160 MHz. 7798 * u32 attribute. 7799 */ 7800 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_160_MHZ = 17, 7801 /* Number of spectral detectors used for scan in 80+80 MHz. 7802 * u32 attribute. 7803 */ 7804 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_80P80_MHZ = 18, 7805 /* Flag attribute to indicate agile spectral scan capability 7806 * for 320 MHz mode. 7807 */ 7808 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL_320 = 19, 7809 /* Number of spectral detectors used for scan in 320 MHz. 7810 * u32 attribute. 7811 */ 7812 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_320_MHZ = 20, 7813 7814 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AFTER_LAST, 7815 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_MAX = 7816 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AFTER_LAST - 1, 7817 }; 7818 7819 /** 7820 * enum qca_wlan_vendor_attr_spectral_scan_status - used by the vendor command 7821 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS. 7822 */ 7823 enum qca_wlan_vendor_attr_spectral_scan_status { 7824 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_INVALID = 0, 7825 /* Flag attribute to indicate whether spectral scan is enabled */ 7826 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_IS_ENABLED = 1, 7827 /* Flag attribute to indicate whether spectral scan is in progress*/ 7828 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_IS_ACTIVE = 2, 7829 /* Spectral scan mode. u32 attribute. 7830 * It uses values defined in enum qca_wlan_vendor_spectral_scan_mode. 7831 * If this attribute is not present, normal mode 7832 * (QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL is assumed to be 7833 * requested. 7834 */ 7835 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MODE = 3, 7836 7837 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_AFTER_LAST, 7838 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MAX = 7839 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_AFTER_LAST - 1, 7840 }; 7841 7842 /** 7843 * qca_wlan_vendor_attr_spectral_scan_request_type: Attribute values for 7844 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE to the vendor subcmd 7845 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START. This represents the 7846 * spectral scan request types. 7847 * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN_AND_CONFIG: Request to 7848 * set the spectral parameters and start scan. 7849 * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN: Request to 7850 * only set the spectral parameters. 7851 * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_CONFIG: Request to 7852 * only start the spectral scan. 7853 */ 7854 enum qca_wlan_vendor_attr_spectral_scan_request_type { 7855 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN_AND_CONFIG, 7856 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN, 7857 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_CONFIG, 7858 }; 7859 7860 /** 7861 * qca_wlan_vendor_spectral_scan_mode: Attribute values for 7862 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE in the vendor subcmd 7863 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START and 7864 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MODE in the vendor subcmd 7865 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS. This represents the 7866 * spectral scan modes. 7867 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL: Normal spectral scan: 7868 * spectral scan in the current operating span. 7869 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE: Agile spectral scan: 7870 * spectral scan in the configured agile span. 7871 */ 7872 enum qca_wlan_vendor_spectral_scan_mode { 7873 QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL = 0, 7874 QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE = 1, 7875 }; 7876 7877 /** 7878 * qca_wlan_vendor_spectral_scan_error_code: Attribute values for 7879 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_ERROR_CODE in the vendor subcmd 7880 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START. 7881 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_UNSUPPORTED: Changing the value 7882 * of a parameter is not supported. 7883 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_MODE_UNSUPPORTED: Requested spectral scan 7884 * mode is not supported. 7885 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_INVALID_VALUE: A parameter 7886 * has invalid value. 7887 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED: A parameter 7888 * is not initialized. 7889 */ 7890 enum qca_wlan_vendor_spectral_scan_error_code { 7891 QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_UNSUPPORTED = 0, 7892 QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_MODE_UNSUPPORTED = 1, 7893 QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_INVALID_VALUE = 2, 7894 QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED = 3, 7895 }; 7896 7897 /** 7898 * qca_wlan_vendor_spectral_scan_cap_hw_gen: Attribute values for 7899 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HW_GEN to the vendor subcmd 7900 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO. This represents the 7901 * spectral hardware generation. 7902 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_1: generation 1 7903 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_2: generation 2 7904 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_3: generation 3 7905 */ 7906 enum qca_wlan_vendor_spectral_scan_cap_hw_gen { 7907 QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_1 = 0, 7908 QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_2 = 1, 7909 QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_3 = 2, 7910 }; 7911 7912 enum qca_wlan_vendor_tos { 7913 QCA_WLAN_VENDOR_TOS_BK = 0, 7914 QCA_WLAN_VENDOR_TOS_BE = 1, 7915 QCA_WLAN_VENDOR_TOS_VI = 2, 7916 QCA_WLAN_VENDOR_TOS_VO = 3, 7917 }; 7918 7919 /** 7920 * enum qca_wlan_vendor_attr_active_tos - Used by the vendor command 7921 * QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS. 7922 */ 7923 enum qca_wlan_vendor_attr_active_tos { 7924 QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_INVALID = 0, 7925 /* Type Of Service - Represented by qca_wlan_vendor_tos */ 7926 QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS = 1, 7927 /* Flag attribute representing the start (attribute included) or stop 7928 * (attribute not included) of the respective TOS. 7929 */ 7930 QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_START = 2, 7931 }; 7932 7933 enum qca_wlan_vendor_hang_reason { 7934 /* Unspecified reason */ 7935 QCA_WLAN_HANG_REASON_UNSPECIFIED = 0, 7936 /* No Map for the MAC entry for the received frame */ 7937 QCA_WLAN_HANG_RX_HASH_NO_ENTRY_FOUND = 1, 7938 /* Peer deletion timeout happened */ 7939 QCA_WLAN_HANG_PEER_DELETION_TIMEDOUT = 2, 7940 /* Peer unmap timeout */ 7941 QCA_WLAN_HANG_PEER_UNMAP_TIMEDOUT = 3, 7942 /* Scan request timed out */ 7943 QCA_WLAN_HANG_SCAN_REQ_EXPIRED = 4, 7944 /* Consecutive Scan attempt failures */ 7945 QCA_WLAN_HANG_SCAN_ATTEMPT_FAILURES = 5, 7946 /* Unable to get the message buffer */ 7947 QCA_WLAN_HANG_GET_MSG_BUFF_FAILURE = 6, 7948 /* Current command processing is timedout */ 7949 QCA_WLAN_HANG_ACTIVE_LIST_TIMEOUT = 7, 7950 /* Timeout for an ACK from FW for suspend request */ 7951 QCA_WLAN_HANG_SUSPEND_TIMEOUT = 8, 7952 /* Timeout for an ACK from FW for resume request */ 7953 QCA_WLAN_HANG_RESUME_TIMEOUT = 9, 7954 /* Transmission timeout for consecutive data frames */ 7955 QCA_WLAN_HANG_TRANSMISSIONS_TIMEOUT = 10, 7956 /* Timeout for the TX completion status of data frame */ 7957 QCA_WLAN_HANG_TX_COMPLETE_TIMEOUT = 11, 7958 /* DXE failure for TX/RX, DXE resource unavailability */ 7959 QCA_WLAN_HANG_DXE_FAILURE = 12, 7960 /* WMI pending commands exceed the maximum count */ 7961 QCA_WLAN_HANG_WMI_EXCEED_MAX_PENDING_CMDS = 13, 7962 /* Timeout for peer STA connection accept command's response from the 7963 * FW in AP mode. This command is triggered when a STA (peer) connects 7964 * to AP (DUT). 7965 */ 7966 QCA_WLAN_HANG_AP_STA_CONNECT_REQ_TIMEOUT = 14, 7967 /* Timeout for the AP connection accept command's response from the FW 7968 * in STA mode. This command is triggered when the STA (DUT) connects 7969 * to an AP (peer). 7970 */ 7971 QCA_WLAN_HANG_STA_AP_CONNECT_REQ_TIMEOUT = 15, 7972 /* Timeout waiting for the response to the MAC HW mode change command 7973 * sent to FW as a part of MAC mode switch among DBS (Dual Band 7974 * Simultaneous), SCC (Single Channel Concurrency), and MCC (Multi 7975 * Channel Concurrency) mode. 7976 */ 7977 QCA_WLAN_HANG_MAC_HW_MODE_CHANGE_TIMEOUT = 16, 7978 /* Timeout waiting for the response from FW to configure the MAC HW's 7979 * mode. This operation is to configure the single/two MACs in either 7980 * SCC/MCC/DBS mode. 7981 */ 7982 QCA_WLAN_HANG_MAC_HW_MODE_CONFIG_TIMEOUT = 17, 7983 /* Timeout waiting for response of VDEV start command from the FW */ 7984 QCA_WLAN_HANG_VDEV_START_RESPONSE_TIMED_OUT = 18, 7985 /* Timeout waiting for response of VDEV restart command from the FW */ 7986 QCA_WLAN_HANG_VDEV_RESTART_RESPONSE_TIMED_OUT = 19, 7987 /* Timeout waiting for response of VDEV stop command from the FW */ 7988 QCA_WLAN_HANG_VDEV_STOP_RESPONSE_TIMED_OUT = 20, 7989 /* Timeout waiting for response of VDEV delete command from the FW */ 7990 QCA_WLAN_HANG_VDEV_DELETE_RESPONSE_TIMED_OUT = 21, 7991 /* Timeout waiting for response of peer all delete request command to 7992 * the FW on a specific VDEV. 7993 */ 7994 QCA_WLAN_HANG_VDEV_PEER_DELETE_ALL_RESPONSE_TIMED_OUT = 22, 7995 /* WMI sequence mismatch between WMI command and Tx completion */ 7996 QCA_WLAN_HANG_WMI_BUF_SEQUENCE_MISMATCH = 23, 7997 /* Write to Device HAL register failed */ 7998 QCA_WLAN_HANG_REG_WRITE_FAILURE = 24, 7999 /* No credit left to send the wow_wakeup_from_sleep to firmware */ 8000 QCA_WLAN_HANG_SUSPEND_NO_CREDIT = 25, 8001 /* Bus failure */ 8002 QCA_WLAN_HANG_BUS_FAILURE = 26, 8003 /* tasklet/credit latency found */ 8004 QCA_WLAN_HANG_TASKLET_CREDIT_LATENCY_DETECT = 27, 8005 /* MSDU buffers received in REO error ring, exceeding certain 8006 * threshold 8007 */ 8008 QCA_WLAN_HANG_RX_MSDU_BUF_RCVD_IN_ERR_RING = 28, 8009 /* Vdev SM is out of sync and connect req received 8010 * when already connected 8011 */ 8012 QCA_WLAN_HANG_VDEV_SM_OUT_OF_SYNC = 29, 8013 /* Stats request timeout */ 8014 QCA_WLAN_HANG_STATS_REQ_TIMEOUT = 30, 8015 /* Leak in TX descriptor for a packet */ 8016 QCA_WLAN_HANG_TX_DESC_LEAK = 31, 8017 /* Scheduler watchdog timeout */ 8018 QCA_WLAN_HANG_SCHED_TIMEOUT = 32, 8019 /* Failed to send self peer deletion cmd to firmware */ 8020 QCA_WLAN_HANG_SELF_PEER_DEL_FAIL = 33, 8021 /* Received del self sta without del bss */ 8022 QCA_WLAN_HANG_DEL_SELF_STA_FAIL = 34, 8023 /* Recovery needed when sending flush completion to userspace */ 8024 QCA_WLAN_HANG_FLUSH_LOGS = 35, 8025 /* Host wakeup because of page fault */ 8026 QCA_WLAN_HANG_HOST_WAKEUP_REASON_PAGE_FAULT = 36, 8027 }; 8028 8029 /** 8030 * enum qca_wlan_vendor_attr_hang - Used by the vendor command 8031 * QCA_NL80211_VENDOR_SUBCMD_HANG. 8032 */ 8033 enum qca_wlan_vendor_attr_hang { 8034 QCA_WLAN_VENDOR_ATTR_HANG_INVALID = 0, 8035 /* Reason for the hang - u32 attribute with a value from enum 8036 * qca_wlan_vendor_hang_reason. 8037 */ 8038 QCA_WLAN_VENDOR_ATTR_HANG_REASON = 1, 8039 /* The binary blob data associated with the hang reason specified by 8040 * QCA_WLAN_VENDOR_ATTR_HANG_REASON. This binary data is expected to 8041 * contain the required dump to analyze the reason for the hang. 8042 * NLA_BINARY attribute, the max size is 1024 bytes. 8043 */ 8044 QCA_WLAN_VENDOR_ATTR_HANG_REASON_DATA = 2, 8045 8046 QCA_WLAN_VENDOR_ATTR_HANG_AFTER_LAST, 8047 QCA_WLAN_VENDOR_ATTR_HANG_MAX = 8048 QCA_WLAN_VENDOR_ATTR_HANG_AFTER_LAST - 1, 8049 }; 8050 8051 /** 8052 * enum qca_wlan_vendor_flush_pending_policy: Represents values for 8053 * the policy to flush pending frames, configured via 8054 * %QCA_NL80211_VENDOR_SUBCMD_PEER_FLUSH_PENDING. This enumeration defines the 8055 * valid values for %QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_POLICY. 8056 * 8057 * @QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_NONE: This value clears all 8058 * the flush policy configured before. This command basically disables the 8059 * flush config set by the user. 8060 * @QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_IMMEDIATE: This value configures 8061 * the flush policy to be immediate. All pending packets for the peer/TID are 8062 * flushed when this command/policy is received. 8063 * @QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_TWT_SP_END: This value configures 8064 * the flush policy to the end of TWT SP. All pending packets for the peer/TID 8065 * are flushed when the end of TWT SP is reached. 8066 */ 8067 enum qca_wlan_vendor_flush_pending_policy { 8068 QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_NONE = 0, 8069 QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_IMMEDIATE = 1, 8070 QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_TWT_SP_END = 2, 8071 }; 8072 8073 /** 8074 * enum qca_wlan_vendor_attr_flush_pending - Attributes for 8075 * flushing pending traffic in firmware. 8076 * 8077 * @QCA_WLAN_VENDOR_ATTR_PEER_ADDR: Configure peer MAC address. 8078 * @QCA_WLAN_VENDOR_ATTR_AC: Configure access category of the pending 8079 * packets. It is u8 value with bit 0~3 represent AC_BE, AC_BK, 8080 * AC_VI, AC_VO respectively. Set the corresponding bit to 1 to 8081 * flush packets with access category. This is optional. See below. 8082 * @QCA_WLAN_VENDOR_ATTR_TID_MASK: Configure TID mask of the pending packets. 8083 * It is a u32 value with bit 0-7 representing TID 0-7. Set corresponding 8084 * bit to 1 to act upon the TID. This is optional. Either this attribute or 8085 * %QCA_WLAN_VENDOR_ATTR_AC must be provided. If both are provided, 8086 * %QCA_WLAN_VENDOR_ATTR_TID_MASK takes precedence. If neither are provided 8087 * it is an error. 8088 * @QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_POLICY: Policy of flushing the pending 8089 * packets corresponding to the peer/TID provided. It is a u32 value, 8090 * represented by %enum qca_wlan_vendor_flush_pending_policy. This 8091 * value is honored only when TID mask is provided. This is not honored when AC 8092 * mask is provided. 8093 */ 8094 enum qca_wlan_vendor_attr_flush_pending { 8095 QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_INVALID = 0, 8096 QCA_WLAN_VENDOR_ATTR_PEER_ADDR = 1, 8097 QCA_WLAN_VENDOR_ATTR_AC = 2, 8098 QCA_WLAN_VENDOR_ATTR_TID_MASK = 3, 8099 QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_POLICY = 4, 8100 8101 /* keep last */ 8102 QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_AFTER_LAST, 8103 QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_MAX = 8104 QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_AFTER_LAST - 1, 8105 }; 8106 8107 /** 8108 * qca_wlan_vendor_spectral_scan_cap_formula_id: Attribute values for 8109 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_FORMULA_ID in the vendor subcmd 8110 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO. This represents the 8111 * Spectral bin scaling formula ID. 8112 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_NO_SCALING: No scaling 8113 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_AGC_GAIN_RSSI_CORR_BASED: AGC gain 8114 * and RSSI threshold based formula. 8115 */ 8116 enum qca_wlan_vendor_spectral_scan_cap_formula_id { 8117 QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_NO_SCALING = 0, 8118 QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_AGC_GAIN_RSSI_CORR_BASED = 1, 8119 }; 8120 8121 /** 8122 * enum qca_wlan_vendor_attr_rropavail_info - Specifies whether Representative 8123 * RF Operating Parameter (RROP) information is available, and if so, at which 8124 * point in the application-driver interaction sequence it can be retrieved by 8125 * the application from the driver. This point may vary by architecture and 8126 * other factors. This is a u16 value. 8127 */ 8128 enum qca_wlan_vendor_attr_rropavail_info { 8129 /* RROP information is unavailable. */ 8130 QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_UNAVAILABLE, 8131 /* RROP information is available and the application can retrieve the 8132 * information after receiving an QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS 8133 * event from the driver. 8134 */ 8135 QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_EXTERNAL_ACS_START, 8136 /* RROP information is available only after a vendor specific scan 8137 * (requested using QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN) has 8138 * successfully completed. The application can retrieve the information 8139 * after receiving the QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE event from 8140 * the driver. 8141 */ 8142 QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_VSCAN_END, 8143 }; 8144 8145 /** 8146 * enum qca_wlan_vendor_attr_rrop_info - Specifies vendor specific 8147 * Representative RF Operating Parameter (RROP) information. It is sent for the 8148 * vendor command QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO. This information is 8149 * intended for use by external Auto Channel Selection applications. It provides 8150 * guidance values for some RF parameters that are used by the system during 8151 * operation. These values could vary by channel, band, radio, and so on. 8152 */ 8153 enum qca_wlan_vendor_attr_rrop_info { 8154 QCA_WLAN_VENDOR_ATTR_RROP_INFO_INVALID = 0, 8155 8156 /* Representative Tx Power List (RTPL) which has an array of nested 8157 * values as per attributes in enum qca_wlan_vendor_attr_rtplinst. 8158 */ 8159 QCA_WLAN_VENDOR_ATTR_RROP_INFO_RTPL = 1, 8160 8161 QCA_WLAN_VENDOR_ATTR_RROP_INFO_AFTER_LAST, 8162 QCA_WLAN_VENDOR_ATTR_RROP_INFO_MAX = 8163 QCA_WLAN_VENDOR_ATTR_RROP_INFO_AFTER_LAST - 1 8164 }; 8165 8166 /** 8167 * enum qca_wlan_vendor_attr_rtplinst - Specifies attributes for individual list 8168 * entry instances in the Representative Tx Power List (RTPL). It provides 8169 * simplified power values intended for helping external Auto channel Selection 8170 * applications compare potential Tx power performance between channels, other 8171 * operating conditions remaining identical. These values are not necessarily 8172 * the actual Tx power values that will be used by the system. They are also not 8173 * necessarily the max or average values that will be used. Instead, they are 8174 * relative, summarized keys for algorithmic use computed by the driver or 8175 * underlying firmware considering a number of vendor specific factors. 8176 */ 8177 enum qca_wlan_vendor_attr_rtplinst { 8178 QCA_WLAN_VENDOR_ATTR_RTPLINST_INVALID = 0, 8179 8180 /* Primary channel number (u8). 8181 * Note: If both the driver and user space application support the 8182 * 6 GHz band, this attribute is deprecated and 8183 * QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY_FREQUENCY should be used. To 8184 * maintain backward compatibility, 8185 * QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY is still used if either the 8186 * driver or user space application or both do not support the 6 GHz 8187 * band. 8188 */ 8189 QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY = 1, 8190 /* Representative Tx power in dBm (s32) with emphasis on throughput. */ 8191 QCA_WLAN_VENDOR_ATTR_RTPLINST_TXPOWER_THROUGHPUT = 2, 8192 /* Representative Tx power in dBm (s32) with emphasis on range. */ 8193 QCA_WLAN_VENDOR_ATTR_RTPLINST_TXPOWER_RANGE = 3, 8194 /* Primary channel center frequency (u32) in MHz */ 8195 QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY_FREQUENCY = 4, 8196 8197 QCA_WLAN_VENDOR_ATTR_RTPLINST_AFTER_LAST, 8198 QCA_WLAN_VENDOR_ATTR_RTPLINST_MAX = 8199 QCA_WLAN_VENDOR_ATTR_RTPLINST_AFTER_LAST - 1, 8200 }; 8201 8202 /** 8203 * enum qca_wlan_vendor_attr_config_latency_level - Level for 8204 * wlan latency module. 8205 * 8206 * There will be various of Wi-Fi functionality like scan/roaming/adaptive 8207 * power saving which would causing data exchange out of service, this 8208 * would be a big impact on latency. For latency sensitive applications over 8209 * Wi-Fi are intolerant to such operations and thus would configure them 8210 * to meet their respective needs. It is well understood by such applications 8211 * that altering the default behavior would degrade the Wi-Fi functionality 8212 * w.r.t the above pointed WLAN operations. 8213 * 8214 * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_NORMAL: 8215 * Default WLAN operation level which throughput orientated. 8216 * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_XR: 8217 * Use XR level to benefit XR (extended reality) application to achieve 8218 * latency and power by via constraint scan/roaming/adaptive PS. 8219 * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_LOW: 8220 * Use low latency level to benefit application like concurrent 8221 * downloading or video streaming via constraint scan/adaptive PS. 8222 * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_ULTRALOW: 8223 * Use ultra low latency level to benefit for gaming/voice 8224 * application via constraint scan/roaming/adaptive PS. 8225 */ 8226 enum qca_wlan_vendor_attr_config_latency_level { 8227 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_INVALID = 0, 8228 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_NORMAL = 1, 8229 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_XR = 2, 8230 /* legacy name */ 8231 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_MODERATE = 8232 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_XR, 8233 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_LOW = 3, 8234 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_ULTRALOW = 4, 8235 8236 /* keep last */ 8237 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_AFTER_LAST, 8238 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_MAX = 8239 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_AFTER_LAST - 1, 8240 }; 8241 8242 /** 8243 * enum qca_wlan_vendor_attr_wlan_mac - Used by the vendor command 8244 * QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO. 8245 */ 8246 enum qca_wlan_vendor_attr_mac { 8247 QCA_WLAN_VENDOR_ATTR_MAC_INVALID = 0, 8248 8249 /* MAC mode info list which has an array of nested values as 8250 * per attributes in enum qca_wlan_vendor_attr_mac_mode_info. 8251 */ 8252 QCA_WLAN_VENDOR_ATTR_MAC_INFO = 1, 8253 8254 /* keep last */ 8255 QCA_WLAN_VENDOR_ATTR_MAC_AFTER_LAST, 8256 QCA_WLAN_VENDOR_ATTR_MAC_MAX = 8257 QCA_WLAN_VENDOR_ATTR_MAC_AFTER_LAST - 1, 8258 }; 8259 8260 /** 8261 * enum qca_wlan_vendor_attr_mac_iface_info - Information of the connected 8262 * Wi-Fi netdev interface on a respective MAC. 8263 * Used by the attribute QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO. 8264 */ 8265 enum qca_wlan_vendor_attr_mac_iface_info { 8266 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_INVALID = 0, 8267 /* Wi-Fi netdev's interface index (u32) */ 8268 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_IFINDEX = 1, 8269 /* Associated frequency in MHz of the connected Wi-Fi interface (u32) */ 8270 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_FREQ = 2, 8271 8272 /* keep last */ 8273 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_AFTER_LAST, 8274 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_MAX = 8275 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_AFTER_LAST - 1, 8276 }; 8277 8278 /** 8279 * enum qca_wlan_vendor_attr_mac_info - Points to MAC the information. 8280 * Used by the attribute QCA_WLAN_VENDOR_ATTR_MAC_INFO of the 8281 * vendor command QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO. 8282 */ 8283 enum qca_wlan_vendor_attr_mac_info { 8284 QCA_WLAN_VENDOR_ATTR_MAC_INFO_INVALID = 0, 8285 /* Hardware MAC ID associated for the MAC (u32) */ 8286 QCA_WLAN_VENDOR_ATTR_MAC_INFO_MAC_ID = 1, 8287 /* Band supported by the MAC at a given point. 8288 * This is a u32 bitmask of BIT(NL80211_BAND_*) as described in %enum 8289 * nl80211_band. 8290 */ 8291 QCA_WLAN_VENDOR_ATTR_MAC_INFO_BAND = 2, 8292 /* Refers to list of WLAN netdev interfaces associated with this MAC. 8293 * Represented by enum qca_wlan_vendor_attr_mac_iface_info. 8294 */ 8295 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO = 3, 8296 8297 /* keep last */ 8298 QCA_WLAN_VENDOR_ATTR_MAC_INFO_AFTER_LAST, 8299 QCA_WLAN_VENDOR_ATTR_MAC_INFO_MAX = 8300 QCA_WLAN_VENDOR_ATTR_MAC_INFO_AFTER_LAST - 1, 8301 }; 8302 8303 /** 8304 * enum qca_wlan_vendor_attr_get_logger_features - Used by the vendor command 8305 * QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET. 8306 */ 8307 enum qca_wlan_vendor_attr_get_logger_features { 8308 QCA_WLAN_VENDOR_ATTR_LOGGER_INVALID = 0, 8309 /* Unsigned 32-bit enum value of wifi_logger_supported_features */ 8310 QCA_WLAN_VENDOR_ATTR_LOGGER_SUPPORTED = 1, 8311 /* keep last */ 8312 QCA_WLAN_VENDOR_ATTR_LOGGER_AFTER_LAST, 8313 QCA_WLAN_VENDOR_ATTR_LOGGER_MAX = 8314 QCA_WLAN_VENDOR_ATTR_LOGGER_AFTER_LAST - 1, 8315 }; 8316 8317 /** 8318 * enum wifi_logger_supported_features - Values for supported logger features 8319 */ 8320 enum wifi_logger_supported_features { 8321 WIFI_LOGGER_MEMORY_DUMP_FEATURE = (1 << (0)), 8322 WIFI_LOGGER_PER_PACKET_TX_RX_STATUS_FEATURE = (1 << (1)), 8323 WIFI_LOGGER_CONNECT_EVENT_FEATURE = (1 << (2)), 8324 WIFI_LOGGER_POWER_EVENT_FEATURE = (1 << (3)), 8325 WIFI_LOGGER_WAKE_LOCK_FEATURE = (1 << (4)), 8326 WIFI_LOGGER_VERBOSE_FEATURE = (1 << (5)), 8327 WIFI_LOGGER_WATCHDOG_TIMER_FEATURE = (1 << (6)), 8328 WIFI_LOGGER_DRIVER_DUMP_FEATURE = (1 << (7)), 8329 WIFI_LOGGER_PACKET_FATE_FEATURE = (1 << (8)), 8330 }; 8331 8332 /** 8333 * enum qca_wlan_tdls_caps_features_supported - Values for TDLS get 8334 * capabilities features 8335 */ 8336 enum qca_wlan_tdls_caps_features_supported { 8337 WIFI_TDLS_SUPPORT = (1 << (0)), 8338 WIFI_TDLS_EXTERNAL_CONTROL_SUPPORT = (1 << (1)), 8339 WIFI_TDLS_OFFCHANNEL_SUPPORT = (1 << (2)), 8340 8341 /* Indicates if the TDLS session can be formed with the peer using 8342 * higher bandwidth than the bandwidth of the AP path. 8343 */ 8344 WIFI_TDLS_WIDER_BW_SUPPORT = (1 << (3)), 8345 }; 8346 8347 /** 8348 * enum qca_wlan_vendor_attr_tdls_get_capabilities - Used by the vendor command 8349 * QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_CAPABILITIES. 8350 */ 8351 enum qca_wlan_vendor_attr_tdls_get_capabilities { 8352 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_INVALID = 0, 8353 /* Indicates the max concurrent sessions */ 8354 /* Unsigned 32-bit value */ 8355 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_MAX_CONC_SESSIONS, 8356 /* Indicates the support for features */ 8357 /* Unsigned 32-bit bitmap qca_wlan_tdls_caps_features_supported 8358 */ 8359 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_FEATURES_SUPPORTED, 8360 8361 /* keep last */ 8362 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_AFTER_LAST, 8363 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_MAX = 8364 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_AFTER_LAST - 1, 8365 }; 8366 8367 /** 8368 * enum qca_wlan_offloaded_packets_sending_control - Offload packets control 8369 * command used as value for the attribute 8370 * QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_SENDING_CONTROL. 8371 */ 8372 enum qca_wlan_offloaded_packets_sending_control { 8373 QCA_WLAN_OFFLOADED_PACKETS_SENDING_CONTROL_INVALID = 0, 8374 QCA_WLAN_OFFLOADED_PACKETS_SENDING_START, 8375 QCA_WLAN_OFFLOADED_PACKETS_SENDING_STOP 8376 }; 8377 8378 /** 8379 * enum qca_wlan_vendor_attr_offloaded_packets - Used by the vendor command 8380 * QCA_NL80211_VENDOR_SUBCMD_OFFLOADED_PACKETS. 8381 */ 8382 enum qca_wlan_vendor_attr_offloaded_packets { 8383 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_INVALID = 0, 8384 /* Takes valid value from the enum 8385 * qca_wlan_offloaded_packets_sending_control 8386 * Unsigned 32-bit value 8387 */ 8388 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_SENDING_CONTROL, 8389 /* Unsigned 32-bit value */ 8390 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_REQUEST_ID, 8391 /* array of u8 len: Max packet size */ 8392 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_IP_PACKET_DATA, 8393 /* 6-byte MAC address used to represent source MAC address */ 8394 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_SRC_MAC_ADDR, 8395 /* 6-byte MAC address used to represent destination MAC address */ 8396 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_DST_MAC_ADDR, 8397 /* Unsigned 32-bit value, in milli seconds */ 8398 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_PERIOD, 8399 /* This optional unsigned 16-bit attribute is used for specifying 8400 * ethernet protocol type. If not specified ethertype defaults to IPv4. 8401 */ 8402 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_ETHER_PROTO_TYPE, 8403 8404 /* keep last */ 8405 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_AFTER_LAST, 8406 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_MAX = 8407 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_AFTER_LAST - 1, 8408 }; 8409 8410 /** 8411 * enum qca_wlan_rssi_monitoring_control - RSSI control commands used as values 8412 * by the attribute QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CONTROL. 8413 */ 8414 enum qca_wlan_rssi_monitoring_control { 8415 QCA_WLAN_RSSI_MONITORING_CONTROL_INVALID = 0, 8416 QCA_WLAN_RSSI_MONITORING_START, 8417 QCA_WLAN_RSSI_MONITORING_STOP, 8418 }; 8419 8420 /** 8421 * enum qca_wlan_vendor_attr_rssi_monitoring - Used by the vendor command 8422 * QCA_NL80211_VENDOR_SUBCMD_MONITOR_RSSI. 8423 */ 8424 enum qca_wlan_vendor_attr_rssi_monitoring { 8425 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_INVALID = 0, 8426 /* Takes valid value from the enum 8427 * qca_wlan_rssi_monitoring_control 8428 * Unsigned 32-bit value enum qca_wlan_rssi_monitoring_control 8429 */ 8430 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CONTROL, 8431 /* Unsigned 32-bit value */ 8432 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_REQUEST_ID, 8433 /* Signed 8-bit value in dBm */ 8434 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX_RSSI, 8435 /* Signed 8-bit value in dBm */ 8436 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MIN_RSSI, 8437 /* attributes to be used/received in callback */ 8438 /* 6-byte MAC address used to represent current BSSID MAC address */ 8439 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_BSSID, 8440 /* Signed 8-bit value indicating the current RSSI */ 8441 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_RSSI, 8442 /* keep last */ 8443 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_AFTER_LAST, 8444 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX = 8445 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_AFTER_LAST - 1, 8446 }; 8447 8448 /** 8449 * enum qca_wlan_vendor_attr_ndp_params - Used by the vendor command 8450 * QCA_NL80211_VENDOR_SUBCMD_NDP. 8451 */ 8452 enum qca_wlan_vendor_attr_ndp_params { 8453 QCA_WLAN_VENDOR_ATTR_NDP_PARAM_INVALID = 0, 8454 /* Unsigned 32-bit value 8455 * enum of sub commands values in qca_wlan_ndp_sub_cmd 8456 */ 8457 QCA_WLAN_VENDOR_ATTR_NDP_SUBCMD, 8458 /* Unsigned 16-bit value */ 8459 QCA_WLAN_VENDOR_ATTR_NDP_TRANSACTION_ID, 8460 /* NL attributes for data used NDP SUB cmds */ 8461 /* Unsigned 32-bit value indicating a service info */ 8462 QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_INSTANCE_ID, 8463 /* Unsigned 32-bit value; channel frequency in MHz */ 8464 QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL, 8465 /* Interface Discovery MAC address. An array of 6 Unsigned int8 */ 8466 QCA_WLAN_VENDOR_ATTR_NDP_PEER_DISCOVERY_MAC_ADDR, 8467 /* Interface name on which NDP is being created */ 8468 QCA_WLAN_VENDOR_ATTR_NDP_IFACE_STR, 8469 /* Unsigned 32-bit value for security */ 8470 /* CONFIG_SECURITY is deprecated, use NCS_SK_TYPE/PMK/SCID instead */ 8471 QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_SECURITY, 8472 /* Unsigned 32-bit value for QoS */ 8473 QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_QOS, 8474 /* Array of u8: len = QCA_WLAN_VENDOR_ATTR_NAN_DP_APP_INFO_LEN */ 8475 QCA_WLAN_VENDOR_ATTR_NDP_APP_INFO, 8476 /* Unsigned 32-bit value for NDP instance Id */ 8477 QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID, 8478 /* Array of instance Ids */ 8479 QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID_ARRAY, 8480 /* Unsigned 32-bit value for initiator/responder NDP response code 8481 * accept/reject 8482 */ 8483 QCA_WLAN_VENDOR_ATTR_NDP_RESPONSE_CODE, 8484 /* NDI MAC address. An array of 6 Unsigned int8 */ 8485 QCA_WLAN_VENDOR_ATTR_NDP_NDI_MAC_ADDR, 8486 /* Unsigned 32-bit value errors types returned by driver 8487 * The wifi_nan.h in AOSP project platform/hardware/libhardware_legacy 8488 * NanStatusType includes these values. 8489 */ 8490 QCA_WLAN_VENDOR_ATTR_NDP_DRV_RESPONSE_STATUS_TYPE, 8491 /* Unsigned 32-bit value error values returned by driver 8492 * The nan_i.h in AOSP project platform/hardware/qcom/wlan 8493 * NanInternalStatusType includes these values. 8494 */ 8495 QCA_WLAN_VENDOR_ATTR_NDP_DRV_RETURN_VALUE, 8496 /* Unsigned 32-bit value for Channel setup configuration 8497 * The wifi_nan.h in AOSP project platform/hardware/libhardware_legacy 8498 * NanDataPathChannelCfg includes these values. 8499 */ 8500 QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_CONFIG, 8501 /* Unsigned 32-bit value for Cipher Suite Shared Key Type */ 8502 QCA_WLAN_VENDOR_ATTR_NDP_CSID, 8503 /* Array of u8: len = NAN_PMK_INFO_LEN 32 bytes */ 8504 QCA_WLAN_VENDOR_ATTR_NDP_PMK, 8505 /* Security Context Identifier that contains the PMKID 8506 * Array of u8: len = NAN_SCID_BUF_LEN 1024 bytes 8507 */ 8508 QCA_WLAN_VENDOR_ATTR_NDP_SCID, 8509 /* Array of u8: len = NAN_SECURITY_MAX_PASSPHRASE_LEN 63 bytes */ 8510 QCA_WLAN_VENDOR_ATTR_NDP_PASSPHRASE, 8511 /* Array of u8: len = NAN_MAX_SERVICE_NAME_LEN 255 bytes */ 8512 QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_NAME, 8513 /* Unsigned 32-bit bitmap indicating schedule update 8514 * BIT_0: NSS Update 8515 * BIT_1: Channel list update 8516 */ 8517 QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_REASON, 8518 /* Unsigned 32-bit value for NSS */ 8519 QCA_WLAN_VENDOR_ATTR_NDP_NSS, 8520 /* Unsigned 32-bit value for NUMBER NDP CHANNEL */ 8521 QCA_WLAN_VENDOR_ATTR_NDP_NUM_CHANNELS, 8522 /* Unsigned 32-bit value for CHANNEL BANDWIDTH 8523 * 0:20 MHz, 1:40 MHz, 2:80 MHz, 3:160 MHz 8524 */ 8525 QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_WIDTH, 8526 /* Array of channel/band width */ 8527 QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_INFO, 8528 /* IPv6 address used by NDP (in network byte order), 16 bytes array. 8529 * This attribute is used and optional for ndp request, ndp response, 8530 * ndp indication, and ndp confirm. 8531 */ 8532 QCA_WLAN_VENDOR_ATTR_NDP_IPV6_ADDR = 27, 8533 /* Unsigned 16-bit value indicating transport port used by NDP. 8534 * This attribute is used and optional for ndp response, ndp indication, 8535 * and ndp confirm. 8536 */ 8537 QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PORT = 28, 8538 /* Unsigned 8-bit value indicating protocol used by NDP and assigned by 8539 * the Internet Assigned Numbers Authority (IANA) as per: 8540 * https://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml 8541 * This attribute is used and optional for ndp response, ndp indication, 8542 * and ndp confirm. 8543 */ 8544 QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PROTOCOL = 29, 8545 /* Unsigned 8-bit value indicating if NDP remote peer supports NAN NDPE. 8546 * 1:support 0:not support 8547 */ 8548 QCA_WLAN_VENDOR_ATTR_PEER_NDPE_SUPPORT = 30, 8549 /* As per Wi-Fi Aware Specification v3.2 Service Id is the first 8550 * 48 bits of the SHA-256 hash of the Service Name. 8551 * A lower-case representation of the Service Name shall be used to 8552 * calculate the Service ID. 8553 * Array of u8: length is 6 bytes 8554 * This attribute is used and optional for ndp indication. 8555 */ 8556 QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_ID = 31, 8557 /* Unsigned 8-bit value for Cipher Suite capabilities. 8558 * u8 attribute. 8559 * This attribute is used and optional in ndp request, ndp response, 8560 * ndp indication, and ndp confirm. 8561 * This attribute is used to indicate the Capabilities field of Cipher 8562 * Suite Information attribute (CSIA) of NDP frames as defined in 8563 * Wi-Fi Aware Specification v4.0, 9.5.21.2, Table 122. 8564 * Firmware can accept or ignore any of the capability bits. 8565 */ 8566 QCA_WLAN_VENDOR_ATTR_NDP_CSIA_CAPABILITIES = 32, 8567 /* Indicate that GTK protection is required for NDP. 8568 * NLA_FLAG attribute. 8569 * This attribute can be used in ndp request, ndp response, ndp 8570 * indication, and ndp confirm. 8571 * GTK protection required is indicated in the NDPE attribute of NAN 8572 * action frame (NAF) during NDP negotiation as defined in 8573 * Wi-Fi Aware Specification v4.0, 9.5.16.2. 8574 * If the device and peer supports GTKSA and if GTK protection required 8575 * bit is set in NDPE IE, devices will share GTK to each other in SKDA 8576 * of Data Path Security Confirm and Data Path Security Install frames 8577 * of NDP negotiation to send and receive protected group addressed data 8578 * frames from each other. 8579 */ 8580 QCA_WLAN_VENDOR_ATTR_NDP_GTK_REQUIRED = 33, 8581 8582 /* keep last */ 8583 QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_AFTER_LAST, 8584 QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_MAX = 8585 QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_AFTER_LAST - 1, 8586 }; 8587 8588 enum qca_wlan_ndp_sub_cmd { 8589 QCA_WLAN_VENDOR_ATTR_NDP_INVALID = 0, 8590 /* Command to create a NAN data path interface. 8591 * This command was initially designed to both create and start a NAN 8592 * data path interface. However, changes to Linux 5.12 no longer allow 8593 * interface creation via vendor commands. When the driver advertises 8594 * QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI 8595 * userspace must explicitly first create the interface using 8596 * NL80211_CMD_NEW_INTERFACE before subsequently invoking this command 8597 * to start the interface. 8598 */ 8599 QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_CREATE = 1, 8600 /* Command to delete a NAN data path interface. 8601 * This command was initially designed to both stop and delete a NAN 8602 * data path interface. However, changes to Linux 5.12 no longer allow 8603 * interface deletion via vendor commands. When the driver advertises 8604 * QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI 8605 * userspace must explicitly delete the interface using 8606 * NL80211_CMD_DEL_INTERFACE after calling this command. 8607 */ 8608 QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_DELETE = 2, 8609 /* Command to initiate a NAN data path session */ 8610 QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_REQUEST = 3, 8611 /* Command to notify if the NAN data path session was sent */ 8612 QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_RESPONSE = 4, 8613 /* Command to respond to NAN data path session */ 8614 QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_REQUEST = 5, 8615 /* Command to notify on the responder about the response */ 8616 QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_RESPONSE = 6, 8617 /* Command to initiate a NAN data path end */ 8618 QCA_WLAN_VENDOR_ATTR_NDP_END_REQUEST = 7, 8619 /* Command to notify the if end request was sent */ 8620 QCA_WLAN_VENDOR_ATTR_NDP_END_RESPONSE = 8, 8621 /* Command to notify the peer about the end request */ 8622 QCA_WLAN_VENDOR_ATTR_NDP_REQUEST_IND = 9, 8623 /* Command to confirm the NAN data path session is complete */ 8624 QCA_WLAN_VENDOR_ATTR_NDP_CONFIRM_IND = 10, 8625 /* Command to indicate the peer about the end request being received */ 8626 QCA_WLAN_VENDOR_ATTR_NDP_END_IND = 11, 8627 /* Command to indicate the peer of schedule update */ 8628 QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_IND = 12 8629 }; 8630 8631 /** 8632 * enum qca_wlan_vendor_attr_nd_offload - Used by the vendor command 8633 * QCA_NL80211_VENDOR_SUBCMD_ND_OFFLOAD. 8634 */ 8635 enum qca_wlan_vendor_attr_nd_offload { 8636 QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_INVALID = 0, 8637 /* Flag to set Neighbour Discovery offload */ 8638 QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_FLAG, 8639 /* Keep last */ 8640 QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_AFTER_LAST, 8641 QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_MAX = 8642 QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_AFTER_LAST - 1, 8643 }; 8644 8645 /** 8646 * enum packet_filter_sub_cmd - Packet filter sub commands 8647 */ 8648 enum packet_filter_sub_cmd { 8649 /** 8650 * Write packet filter program and/or data. The driver/firmware should 8651 * disable APF before writing into local buffer and re-enable APF after 8652 * writing is done. 8653 */ 8654 QCA_WLAN_SET_PACKET_FILTER = 1, 8655 /* Get packet filter feature capabilities from driver */ 8656 QCA_WLAN_GET_PACKET_FILTER = 2, 8657 /** 8658 * Write packet filter program and/or data. User space will send the 8659 * %QCA_WLAN_DISABLE_PACKET_FILTER command before issuing this command 8660 * and will send the %QCA_WLAN_ENABLE_PACKET_FILTER afterwards. The key 8661 * difference from that %QCA_WLAN_SET_PACKET_FILTER is the control over 8662 * enable/disable is given to user space with this command. Also, 8663 * user space sends the length of program portion in the buffer within 8664 * %QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROG_LENGTH. 8665 */ 8666 QCA_WLAN_WRITE_PACKET_FILTER = 3, 8667 /* Read packet filter program and/or data */ 8668 QCA_WLAN_READ_PACKET_FILTER = 4, 8669 /* Enable APF feature */ 8670 QCA_WLAN_ENABLE_PACKET_FILTER = 5, 8671 /* Disable APF feature */ 8672 QCA_WLAN_DISABLE_PACKET_FILTER = 6, 8673 }; 8674 8675 /** 8676 * enum qca_wlan_vendor_attr_packet_filter - BPF control commands used by 8677 * vendor QCA_NL80211_VENDOR_SUBCMD_PACKET_FILTER. 8678 */ 8679 enum qca_wlan_vendor_attr_packet_filter { 8680 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_INVALID = 0, 8681 /* Unsigned 32-bit enum passed using packet_filter_sub_cmd */ 8682 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_SUB_CMD, 8683 /* Unsigned 32-bit value indicating the packet filter version */ 8684 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_VERSION, 8685 /* Unsigned 32-bit value indicating the packet filter id */ 8686 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_ID, 8687 /** 8688 * Unsigned 32-bit value indicating the packet filter size including 8689 * program + data. 8690 */ 8691 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_SIZE, 8692 /* Unsigned 32-bit value indicating the packet filter current offset */ 8693 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_CURRENT_OFFSET, 8694 /* Program and/or data in bytes */ 8695 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROGRAM, 8696 /* Unsigned 32-bit value of the length of the program section in packet 8697 * filter buffer. 8698 */ 8699 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROG_LENGTH = 7, 8700 8701 /* keep last */ 8702 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_AFTER_LAST, 8703 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_MAX = 8704 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_AFTER_LAST - 1, 8705 }; 8706 8707 /** 8708 * enum qca_wlan_vendor_drv_info - WLAN driver info used by vendor command 8709 * QCA_NL80211_VENDOR_SUBCMD_GET_BUS_SIZE. 8710 */ 8711 enum qca_wlan_vendor_drv_info { 8712 QCA_WLAN_VENDOR_ATTR_DRV_INFO_INVALID = 0, 8713 /* Maximum Message size info between firmware & HOST 8714 * Unsigned 32-bit value 8715 */ 8716 QCA_WLAN_VENDOR_ATTR_DRV_INFO_BUS_SIZE, 8717 /* keep last */ 8718 QCA_WLAN_VENDOR_ATTR_DRV_INFO_AFTER_LAST, 8719 QCA_WLAN_VENDOR_ATTR_DRV_INFO_MAX = 8720 QCA_WLAN_VENDOR_ATTR_DRV_INFO_AFTER_LAST - 1, 8721 }; 8722 8723 /** 8724 * enum qca_wlan_vendor_attr_wake_stats - Wake lock stats used by vendor 8725 * command QCA_NL80211_VENDOR_SUBCMD_GET_WAKE_REASON_STATS. 8726 */ 8727 enum qca_wlan_vendor_attr_wake_stats { 8728 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_INVALID = 0, 8729 /* Unsigned 32-bit value indicating the total count of wake event */ 8730 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_CMD_EVENT_WAKE, 8731 /* Array of individual wake count, each index representing wake reason 8732 */ 8733 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_CMD_EVENT_WAKE_CNT_PTR, 8734 /* Unsigned 32-bit value representing wake count array */ 8735 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_CMD_EVENT_WAKE_CNT_SZ, 8736 /* Unsigned 32-bit total wake count value of driver/fw */ 8737 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_DRIVER_FW_LOCAL_WAKE, 8738 /* Array of wake stats of driver/fw */ 8739 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_DRIVER_FW_LOCAL_WAKE_CNT_PTR, 8740 /* Unsigned 32-bit total wake count value of driver/fw */ 8741 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_DRIVER_FW_LOCAL_WAKE_CNT_SZ, 8742 /* Unsigned 32-bit total wake count value of packets received */ 8743 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_RX_DATA_WAKE, 8744 /* Unsigned 32-bit wake count value unicast packets received */ 8745 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_UNICAST_CNT, 8746 /* Unsigned 32-bit wake count value multicast packets received */ 8747 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_MULTICAST_CNT, 8748 /* Unsigned 32-bit wake count value broadcast packets received */ 8749 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_BROADCAST_CNT, 8750 /* Unsigned 32-bit wake count value of ICMP packets */ 8751 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP_PKT, 8752 /* Unsigned 32-bit wake count value of ICMP6 packets */ 8753 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_PKT, 8754 /* Unsigned 32-bit value ICMP6 router advertisement */ 8755 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_RA, 8756 /* Unsigned 32-bit value ICMP6 neighbor advertisement */ 8757 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_NA, 8758 /* Unsigned 32-bit value ICMP6 neighbor solicitation */ 8759 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_NS, 8760 /* Unsigned 32-bit wake count value of receive side ICMP4 multicast */ 8761 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP4_RX_MULTICAST_CNT, 8762 /* Unsigned 32-bit wake count value of receive side ICMP6 multicast */ 8763 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_RX_MULTICAST_CNT, 8764 /* Unsigned 32-bit wake count value of receive side multicast */ 8765 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_OTHER_RX_MULTICAST_CNT, 8766 /* Unsigned 32-bit wake count value of a given RSSI breach */ 8767 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RSSI_BREACH_CNT, 8768 /* Unsigned 32-bit wake count value of low RSSI */ 8769 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_LOW_RSSI_CNT, 8770 /* Unsigned 32-bit value GSCAN count */ 8771 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_GSCAN_CNT, 8772 /* Unsigned 32-bit value PNO complete count */ 8773 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_PNO_COMPLETE_CNT, 8774 /* Unsigned 32-bit value PNO match count */ 8775 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_PNO_MATCH_CNT, 8776 /* keep last */ 8777 QCA_WLAN_VENDOR_GET_WAKE_STATS_AFTER_LAST, 8778 QCA_WLAN_VENDOR_GET_WAKE_STATS_MAX = 8779 QCA_WLAN_VENDOR_GET_WAKE_STATS_AFTER_LAST - 1, 8780 }; 8781 8782 /** 8783 * enum qca_wlan_vendor_thermal_level - Defines various thermal levels 8784 * configured by userspace to the driver/firmware. 8785 * The values can be encapsulated in QCA_WLAN_VENDOR_ATTR_THERMAL_LEVEL or 8786 * QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_LEVEL attribute. 8787 * The driver/firmware takes actions requested by userspace such as throttling 8788 * wifi TX etc. in order to mitigate high temperature. 8789 * 8790 * @QCA_WLAN_VENDOR_THERMAL_LEVEL_NONE: Stop/clear all throttling actions. 8791 * @QCA_WLAN_VENDOR_THERMAL_LEVEL_LIGHT: Throttle TX lightly. 8792 * @QCA_WLAN_VENDOR_THERMAL_LEVEL_MODERATE: Throttle TX moderately. 8793 * @QCA_WLAN_VENDOR_THERMAL_LEVEL_SEVERE: Throttle TX severely. 8794 * @QCA_WLAN_VENDOR_THERMAL_LEVEL_CRITICAL: Critical thermal level reached. 8795 * @QCA_WLAN_VENDOR_THERMAL_LEVEL_EMERGENCY: Emergency thermal level reached. 8796 */ 8797 enum qca_wlan_vendor_thermal_level { 8798 QCA_WLAN_VENDOR_THERMAL_LEVEL_NONE = 0, 8799 QCA_WLAN_VENDOR_THERMAL_LEVEL_LIGHT = 1, 8800 QCA_WLAN_VENDOR_THERMAL_LEVEL_MODERATE = 2, 8801 QCA_WLAN_VENDOR_THERMAL_LEVEL_SEVERE = 3, 8802 QCA_WLAN_VENDOR_THERMAL_LEVEL_CRITICAL = 4, 8803 QCA_WLAN_VENDOR_THERMAL_LEVEL_EMERGENCY = 5, 8804 }; 8805 8806 /** 8807 * enum qca_wlan_vendor_attr_thermal_cmd - Vendor subcmd attributes to set 8808 * cmd value. Used for NL attributes for data used by 8809 * QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD sub command. 8810 */ 8811 enum qca_wlan_vendor_attr_thermal_cmd { 8812 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_INVALID = 0, 8813 /* The value of command, driver will implement different operations 8814 * according to this value. It uses values defined in 8815 * enum qca_wlan_vendor_attr_thermal_cmd_type. 8816 * u32 attribute. 8817 */ 8818 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_VALUE = 1, 8819 /* Userspace uses this attribute to configure thermal level to the 8820 * driver/firmware, or get thermal level from the driver/firmware. 8821 * Used in request or response, u32 attribute, 8822 * possible values are defined in enum qca_wlan_vendor_thermal_level. 8823 */ 8824 QCA_WLAN_VENDOR_ATTR_THERMAL_LEVEL = 2, 8825 /* Userspace uses this attribute to configure the time in which the 8826 * driver/firmware should complete applying settings it received from 8827 * userspace with QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SET_LEVEL 8828 * command type. Used in request, u32 attribute, value is in 8829 * milliseconds. A value of zero indicates to apply the settings 8830 * immediately. The driver/firmware can delay applying the configured 8831 * thermal settings within the time specified in this attribute if 8832 * there is any critical ongoing operation. 8833 */ 8834 QCA_WLAN_VENDOR_ATTR_THERMAL_COMPLETION_WINDOW = 3, 8835 /* Nested attribute, the driver/firmware uses this attribute to report 8836 * thermal statistics of different thermal levels to userspace when 8837 * requested using the 8838 * QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_THERMAL_STATS command 8839 * type. This attribute contains a nested array of records of thermal 8840 * statistics of multiple levels. The attributes used inside this nested 8841 * attribute are defined in enum qca_wlan_vendor_attr_thermal_stats. 8842 */ 8843 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS = 4, 8844 8845 /* keep last */ 8846 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_AFTER_LAST, 8847 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_MAX = 8848 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_AFTER_LAST - 1 8849 }; 8850 8851 /** 8852 * qca_wlan_vendor_attr_thermal_cmd_type: Attribute values for 8853 * QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_VALUE to the vendor subcmd 8854 * QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD. This represents the 8855 * thermal command types sent to driver. 8856 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_PARAMS: Request to 8857 * get thermal shutdown configuration parameters for display. Parameters 8858 * responded from driver are defined in 8859 * enum qca_wlan_vendor_attr_get_thermal_params_rsp. 8860 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE: Request to 8861 * get temperature. Host should respond with a temperature data. It is defined 8862 * in enum qca_wlan_vendor_attr_thermal_get_temperature. 8863 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SUSPEND: Request to execute thermal 8864 * suspend action. 8865 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_RESUME: Request to execute thermal 8866 * resume action. 8867 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SET_LEVEL: Configure thermal level to 8868 * the driver/firmware. 8869 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_LEVEL: Request to get the current 8870 * thermal level from the driver/firmware. The driver should respond with a 8871 * thermal level defined in enum qca_wlan_vendor_thermal_level. 8872 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_THERMAL_STATS: Request to get the 8873 * current thermal statistics from the driver/firmware. The driver should 8874 * respond with statistics of all thermal levels encapsulated in the attribute 8875 * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS. 8876 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_CLEAR_THERMAL_STATS: Request to clear 8877 * the current thermal statistics for all thermal levels maintained in the 8878 * driver/firmware and start counting from zero again. 8879 */ 8880 enum qca_wlan_vendor_attr_thermal_cmd_type { 8881 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_PARAMS, 8882 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE, 8883 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SUSPEND, 8884 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_RESUME, 8885 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SET_LEVEL, 8886 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_LEVEL, 8887 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_THERMAL_STATS, 8888 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_CLEAR_THERMAL_STATS, 8889 }; 8890 8891 /** 8892 * enum qca_wlan_vendor_attr_thermal_get_temperature - vendor subcmd attributes 8893 * to get chip temperature by user. 8894 * enum values are used for NL attributes for data used by 8895 * QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE command for data used 8896 * by QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD sub command. 8897 */ 8898 enum qca_wlan_vendor_attr_thermal_get_temperature { 8899 QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_INVALID = 0, 8900 /* Temperature value (degree Celsius) from driver. 8901 * u32 attribute. 8902 */ 8903 QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_DATA, 8904 8905 /* keep last */ 8906 QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_AFTER_LAST, 8907 QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_MAX = 8908 QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_AFTER_LAST - 1, 8909 }; 8910 8911 /** 8912 * enum qca_wlan_vendor_attr_get_thermal_params_rsp - vendor subcmd attributes 8913 * to get configuration parameters of thermal shutdown feature. Enum values are 8914 * used by QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_PARAMS command for data 8915 * used by QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD sub command. 8916 */ 8917 enum qca_wlan_vendor_attr_get_thermal_params_rsp { 8918 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_INVALID = 0, 8919 /* Indicate if the thermal shutdown feature is enabled. 8920 * NLA_FLAG attribute. 8921 */ 8922 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_SHUTDOWN_EN, 8923 /* Indicate if the auto mode is enabled. 8924 * Enable: Driver triggers the suspend/resume action. 8925 * Disable: User space triggers the suspend/resume action. 8926 * NLA_FLAG attribute. 8927 */ 8928 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_SHUTDOWN_AUTO_EN, 8929 /* Thermal resume threshold (degree Celsius). Issue the resume command 8930 * if the temperature value is lower than this threshold. 8931 * u16 attribute. 8932 */ 8933 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_RESUME_THRESH, 8934 /* Thermal warning threshold (degree Celsius). FW reports temperature 8935 * to driver if it's higher than this threshold. 8936 * u16 attribute. 8937 */ 8938 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_WARNING_THRESH, 8939 /* Thermal suspend threshold (degree Celsius). Issue the suspend command 8940 * if the temperature value is higher than this threshold. 8941 * u16 attribute. 8942 */ 8943 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_SUSPEND_THRESH, 8944 /* FW reports temperature data periodically at this interval (ms). 8945 * u16 attribute. 8946 */ 8947 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_SAMPLE_RATE, 8948 8949 /* keep last */ 8950 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_AFTER_LAST, 8951 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_MAX = 8952 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_AFTER_LAST - 1, 8953 }; 8954 8955 /** 8956 * enum qca_wlan_vendor_attr_thermal_event - vendor subcmd attributes to 8957 * report thermal events from driver to user space. 8958 * enum values are used for NL attributes for data used by 8959 * QCA_NL80211_VENDOR_SUBCMD_THERMAL_EVENT sub command. 8960 */ 8961 enum qca_wlan_vendor_attr_thermal_event { 8962 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_INVALID = 0, 8963 /* Temperature value (degree Celsius) from driver. 8964 * u32 attribute. 8965 */ 8966 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_TEMPERATURE, 8967 /* Indication of resume completion from power save mode. 8968 * NLA_FLAG attribute. 8969 */ 8970 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_RESUME_COMPLETE, 8971 /* Thermal level from the driver. 8972 * u32 attribute. Possible values are defined in 8973 * enum qca_wlan_vendor_thermal_level. 8974 */ 8975 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_LEVEL = 3, 8976 8977 /* keep last */ 8978 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_AFTER_LAST, 8979 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_MAX = 8980 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_AFTER_LAST - 1, 8981 }; 8982 8983 /** 8984 * enum qca_wlan_vendor_attr_thermal_stats - vendor subcmd attributes 8985 * to get thermal status from the driver/firmware. 8986 * enum values are used for NL attributes encapsulated inside the 8987 * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS nested attribute. 8988 * 8989 * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MIN_TEMPERATURE: Minimum temperature 8990 * of a thermal level in Celsius. u32 size. 8991 * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MAX_TEMPERATURE: Maximum temperature 8992 * of a thermal level in Celsius. u32 size. 8993 * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_DWELL_TIME: The total time spent on each 8994 * thermal level in milliseconds. u32 size. 8995 * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_TEMP_LEVEL_COUNTER: Indicates the number 8996 * of times the temperature crossed into the temperature range defined by the 8997 * thermal level from both higher and lower directions. u32 size. 8998 */ 8999 enum qca_wlan_vendor_attr_thermal_stats { 9000 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_INVALID = 0, 9001 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MIN_TEMPERATURE, 9002 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MAX_TEMPERATURE, 9003 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_DWELL_TIME, 9004 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_TEMP_LEVEL_COUNTER, 9005 9006 /* keep last */ 9007 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_AFTER_LAST, 9008 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MAX = 9009 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_AFTER_LAST - 1, 9010 }; 9011 9012 /** 9013 * enum he_fragmentation_val - HE fragmentation support values 9014 * Indicates level of dynamic fragmentation that is supported by 9015 * a STA as a recipient. 9016 * HE fragmentation values are defined in IEEE P802.11ax/D2.0, 9.4.2.237.2 9017 * (HE MAC Capabilities Information field) and are used in HE Capabilities 9018 * element to advertise the support. These values are validated in the driver 9019 * to check the device capability and advertised in the HE Capabilities 9020 * element. These values are used to configure testbed device to allow the 9021 * advertised hardware capabilities to be downgraded for testing purposes. 9022 * 9023 * @HE_FRAG_DISABLE: no support for dynamic fragmentation 9024 * @HE_FRAG_LEVEL1: support for dynamic fragments that are 9025 * contained within an MPDU or S-MPDU, no support for dynamic fragments 9026 * within an A-MPDU that is not an S-MPDU. 9027 * @HE_FRAG_LEVEL2: support for dynamic fragments that are 9028 * contained within an MPDU or S-MPDU and support for up to one dynamic 9029 * fragment for each MSDU, each A-MSDU if supported by the recipient, and 9030 * each MMPDU within an A-MPDU or multi-TID A-MPDU that is not an 9031 * MPDU or S-MPDU. 9032 * @HE_FRAG_LEVEL3: support for dynamic fragments that are 9033 * contained within an MPDU or S-MPDU and support for multiple dynamic 9034 * fragments for each MSDU and for each A-MSDU if supported by the 9035 * recipient within an A-MPDU or multi-TID AMPDU and up to one dynamic 9036 * fragment for each MMPDU in a multi-TID A-MPDU that is not an S-MPDU. 9037 */ 9038 enum he_fragmentation_val { 9039 HE_FRAG_DISABLE, 9040 HE_FRAG_LEVEL1, 9041 HE_FRAG_LEVEL2, 9042 HE_FRAG_LEVEL3, 9043 }; 9044 9045 /** 9046 * enum he_mcs_config - HE MCS support configuration 9047 * 9048 * Configures the HE Tx/Rx MCS map in HE capability IE for given bandwidth. 9049 * These values are used in driver to configure the HE MCS map to advertise 9050 * Tx/Rx MCS map in HE capability and these values are applied for all the 9051 * streams supported by the device. To configure MCS for different bandwidths, 9052 * vendor command needs to be sent using this attribute with appropriate value. 9053 * For example, to configure HE_80_MCS_0_7, send vendor command using HE MCS 9054 * attribute with HE_80_MCS0_7. And to configure HE MCS for HE_160_MCS0_11 9055 * send this command using HE MCS config attribute with value HE_160_MCS0_11. 9056 * These values are used to configure testbed device to allow the advertised 9057 * hardware capabilities to be downgraded for testing purposes. The enum values 9058 * are defined such that BIT[1:0] indicates the MCS map value. Values 3,7 and 9059 * 11 are not used as BIT[1:0] value is 3 which is used to disable MCS map. 9060 * These values are validated in the driver before setting the MCS map and 9061 * driver returns error if the input is other than these enum values. 9062 * 9063 * @HE_80_MCS0_7: support for HE 80/40/20 MHz MCS 0 to 7 9064 * @HE_80_MCS0_9: support for HE 80/40/20 MHz MCS 0 to 9 9065 * @HE_80_MCS0_11: support for HE 80/40/20 MHz MCS 0 to 11 9066 * @HE_160_MCS0_7: support for HE 160 MHz MCS 0 to 7 9067 * @HE_160_MCS0_9: support for HE 160 MHz MCS 0 to 9 9068 * @HE_160_MCS0_11: support for HE 160 MHz MCS 0 to 11 9069 * @HE_80P80_MCS0_7: support for HE 80p80 MHz MCS 0 to 7 9070 * @HE_80P80_MCS0_9: support for HE 80p80 MHz MCS 0 to 9 9071 * @HE_80P80_MCS0_11: support for HE 80p80 MHz MCS 0 to 11 9072 */ 9073 enum he_mcs_config { 9074 HE_80_MCS0_7 = 0, 9075 HE_80_MCS0_9 = 1, 9076 HE_80_MCS0_11 = 2, 9077 HE_160_MCS0_7 = 4, 9078 HE_160_MCS0_9 = 5, 9079 HE_160_MCS0_11 = 6, 9080 HE_80P80_MCS0_7 = 8, 9081 HE_80P80_MCS0_9 = 9, 9082 HE_80P80_MCS0_11 = 10, 9083 }; 9084 9085 /** 9086 * enum qca_wlan_ba_session_config - BA session configuration 9087 * 9088 * Indicates the configuration values for BA session configuration attribute. 9089 * 9090 * @QCA_WLAN_ADD_BA: Establish a new BA session with given configuration. 9091 * @QCA_WLAN_DELETE_BA: Delete the existing BA session for given TID. 9092 */ 9093 enum qca_wlan_ba_session_config { 9094 QCA_WLAN_ADD_BA = 1, 9095 QCA_WLAN_DELETE_BA = 2, 9096 }; 9097 9098 /** 9099 * enum qca_wlan_ac_type - Access category type 9100 * 9101 * Indicates the access category type value. 9102 * 9103 * @QCA_WLAN_AC_BE: BE access category 9104 * @QCA_WLAN_AC_BK: BK access category 9105 * @QCA_WLAN_AC_VI: VI access category 9106 * @QCA_WLAN_AC_VO: VO access category 9107 * @QCA_WLAN_AC_ALL: All ACs 9108 */ 9109 enum qca_wlan_ac_type { 9110 QCA_WLAN_AC_BE = 0, 9111 QCA_WLAN_AC_BK = 1, 9112 QCA_WLAN_AC_VI = 2, 9113 QCA_WLAN_AC_VO = 3, 9114 QCA_WLAN_AC_ALL = 4, 9115 }; 9116 9117 /** 9118 * enum qca_wlan_he_ltf_cfg - HE LTF configuration 9119 * 9120 * Indicates the HE LTF configuration value. 9121 * 9122 * @QCA_WLAN_HE_LTF_AUTO: HE-LTF is automatically set to the mandatory HE-LTF, 9123 * based on the GI setting 9124 * @QCA_WLAN_HE_LTF_1X: 1X HE LTF is 3.2us LTF 9125 * @QCA_WLAN_HE_LTF_2X: 2X HE LTF is 6.4us LTF 9126 * @QCA_WLAN_HE_LTF_4X: 4X HE LTF is 12.8us LTF 9127 */ 9128 enum qca_wlan_he_ltf_cfg { 9129 QCA_WLAN_HE_LTF_AUTO = 0, 9130 QCA_WLAN_HE_LTF_1X = 1, 9131 QCA_WLAN_HE_LTF_2X = 2, 9132 QCA_WLAN_HE_LTF_4X = 3, 9133 }; 9134 9135 /** 9136 * enum qca_wlan_he_mac_padding_dur - HE trigger frame MAC padding duration 9137 * 9138 * Indicates the HE trigger frame MAC padding duration value. 9139 * 9140 * @QCA_WLAN_HE_NO_ADDITIONAL_PROCESS_TIME: no additional time required to 9141 * process the trigger frame. 9142 * @QCA_WLAN_HE_8US_OF_PROCESS_TIME: indicates the 8us of processing time for 9143 * trigger frame. 9144 * @QCA_WLAN_HE_16US_OF_PROCESS_TIME: indicates the 16us of processing time for 9145 * trigger frame. 9146 */ 9147 enum qca_wlan_he_mac_padding_dur { 9148 QCA_WLAN_HE_NO_ADDITIONAL_PROCESS_TIME = 0, 9149 QCA_WLAN_HE_8US_OF_PROCESS_TIME = 1, 9150 QCA_WLAN_HE_16US_OF_PROCESS_TIME = 2, 9151 }; 9152 9153 /** 9154 * enum qca_wlan_he_om_ctrl_ch_bw - HE OM control field BW configuration 9155 * 9156 * Indicates the HE Operating mode control channel width setting value. 9157 * 9158 * @QCA_WLAN_HE_OM_CTRL_BW_20M: Primary 20 MHz 9159 * @QCA_WLAN_HE_OM_CTRL_BW_40M: Primary 40 MHz 9160 * @QCA_WLAN_HE_OM_CTRL_BW_80M: Primary 80 MHz 9161 * @QCA_WLAN_HE_OM_CTRL_BW_160M: 160 MHz and 80+80 MHz 9162 */ 9163 enum qca_wlan_he_om_ctrl_ch_bw { 9164 QCA_WLAN_HE_OM_CTRL_BW_20M = 0, 9165 QCA_WLAN_HE_OM_CTRL_BW_40M = 1, 9166 QCA_WLAN_HE_OM_CTRL_BW_80M = 2, 9167 QCA_WLAN_HE_OM_CTRL_BW_160M = 3, 9168 }; 9169 9170 /** 9171 * enum qca_wlan_keep_alive_data_type - Keep alive data type configuration 9172 * 9173 * Indicates the frame types to use for keep alive data. 9174 * 9175 * @QCA_WLAN_KEEP_ALIVE_DEFAULT: Driver default type used for keep alive. 9176 * @QCA_WLAN_KEEP_ALIVE_DATA: Data frame type for keep alive. 9177 * @QCA_WLAN_KEEP_ALIVE_MGMT: Management frame type for keep alive. 9178 */ 9179 enum qca_wlan_keep_alive_data_type { 9180 QCA_WLAN_KEEP_ALIVE_DEFAULT = 0, 9181 QCA_WLAN_KEEP_ALIVE_DATA = 1, 9182 QCA_WLAN_KEEP_ALIVE_MGMT = 2, 9183 }; 9184 9185 /** 9186 * enum eht_mcs_config - EHT MCS support configuration 9187 * 9188 * Configures the EHT Tx/Rx MCS map in EHT Capability element. 9189 * These values are used in the driver to configure the EHT MCS map to advertise 9190 * Tx/Rx MCS map in EHT capability and these values are applied for all the 9191 * streams supported by the device. 9192 * @EHT_MCS0_7: EHT MCS 0 to 7 support 9193 * @EHT_MCS0_9: EHT MCS 0 to 9 support 9194 * @EHT_MCS0_11: EHT MCS 0 to 11 support 9195 * @EHT_MCS0_13: EHT MCS 0 to 13 support 9196 */ 9197 enum eht_mcs_config { 9198 EHT_MCS0_7 = 0, 9199 EHT_MCS0_9 = 1, 9200 EHT_MCS0_11 = 2, 9201 EHT_MCS0_13 = 3, 9202 }; 9203 9204 /** 9205 * enum qca_wlan_eht_mlo_mode: EHT MLO mode configuration. 9206 * @QCA_WLAN_EHT_MODE_INVALID: Invalid. 9207 * @QCA_WLAN_EHT_MLSR: Multi-link single radio mode 9208 * @QCA_WLAN_EHT_EMLSR: Enhanced multi-link single radio mode. 9209 * @QCA_WLAN_EHT_NON_STR_MLMR: Non simultaneous transmit and receive 9210 * multi-link multi radio mode. 9211 * @QCA_WLAN_EHT_STR_MLMR: Simultaneous transmit and receive 9212 * multi-link multi radio mode. 9213 */ 9214 enum qca_wlan_eht_mlo_mode { 9215 QCA_WLAN_EHT_MODE_INVALID = 0, 9216 QCA_WLAN_EHT_MLSR = 1, 9217 QCA_WLAN_EHT_EMLSR = 2, 9218 QCA_WLAN_EHT_NON_STR_MLMR = 3, 9219 QCA_WLAN_EHT_STR_MLMR = 4, 9220 }; 9221 9222 /** 9223 * enum qca_wlan_emlsr_mode: Enhanced Multi-link Single Radio mode configuration 9224 * @QCA_WLAN_EMLSR_MODE_ENTER: Enter EMLSR mode 9225 * @QCA_WLAN_EMLSR_MODE_EXIT: Exit EMLSR mode 9226 */ 9227 enum qca_wlan_emlsr_mode { 9228 QCA_WLAN_EMLSR_MODE_ENTER = 0, 9229 QCA_WLAN_EMLSR_MODE_EXIT = 1, 9230 }; 9231 9232 /** 9233 * enum qca_wlan_ttlm_negotiation_support: TID-To-Link Mapping Negotiation 9234 * support 9235 * @QCA_WLAN_TTLM_DISABLE: TTLM disabled 9236 * @QCA_WLAN_TTLM_SAME_LINK_SET: Mapping of all TIDs to the same link set, 9237 * both DL and UL 9238 * @QCA_WLAN_TTLM_SAME_DIFF_LINK_SET: Mapping of each TID to the same or 9239 * different link set 9240 */ 9241 enum qca_wlan_ttlm_negotiation_support { 9242 QCA_WLAN_TTLM_DISABLE = 0, 9243 QCA_WLAN_TTLM_SAME_LINK_SET = 1, 9244 QCA_WLAN_TTLM_SAME_DIFF_LINK_SET = 2, 9245 }; 9246 9247 /** 9248 * enum qca_coex_traffic_shaping_mode: Coex traffic shaping mode 9249 * @QCA_COEX_TRAFFIC_SHAPING_MODE_DISABLE: Coex policies disabled 9250 * @QCA_COEX_TRAFFIC_SHAPING_MODE_ENABLE: All coex policies enabled 9251 */ 9252 enum qca_coex_traffic_shaping_mode { 9253 QCA_COEX_TRAFFIC_SHAPING_MODE_DISABLE = 0, 9254 QCA_COEX_TRAFFIC_SHAPING_MODE_ENABLE = 1, 9255 }; 9256 9257 /** 9258 * enum qca_wlan_vendor_attr_omi_tx: Represents attributes for HE and 9259 * EHT operating mode control transmit request. These attributes are 9260 * sent as part of QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OMI_TX and 9261 * QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION. 9262 * 9263 * @QCA_WLAN_VENDOR_ATTR_HE_OMI_RX_NSS: Mandatory 8-bit unsigned value 9264 * indicates the maximum number of spatial streams, NSS, that the STA 9265 * supports in reception for PPDU bandwidths less than or equal to 80 MHz 9266 * and is set to NSS - 1. 9267 * 9268 * @QCA_WLAN_VENDOR_ATTR_HE_OMI_CH_BW: Mandatory 8-bit unsigned value 9269 * indicates the operating channel width supported by the STA for both 9270 * reception and transmission. Uses enum qca_wlan_he_om_ctrl_ch_bw values. 9271 * 9272 * @QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DISABLE: Mandatory 8-bit unsigned value 9273 * indicates the all trigger based UL MU operations by the STA. 9274 * 0 - UL MU operations are enabled by the STA. 9275 * 1 - All triggered UL MU transmissions are suspended by the STA. 9276 * 9277 * @QCA_WLAN_VENDOR_ATTR_HE_OMI_TX_NSTS: Mandatory 8-bit unsigned value 9278 * indicates the maximum number of space-time streams, NSTS, that 9279 * the STA supports in transmission and is set to NSTS - 1. 9280 * 9281 * @QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DATA_DISABLE: 8-bit unsigned value 9282 * combined with the UL MU Disable subfield and the recipient's setting 9283 * of the OM Control UL MU Data Disable RX Support subfield in the HE MAC 9284 * capabilities to determine which HE TB PPDUs are possible by the 9285 * STA to transmit. 9286 * 0 - UL MU data operations are enabled by the STA. 9287 * 1 - Determine which HE TB PPDU types are allowed by the STA if UL MU disable 9288 * bit is not set, else UL MU Tx is suspended. 9289 * 9290 * @QCA_WLAN_VENDOR_ATTR_EHT_OMI_RX_NSS_EXTN: 8-bit unsigned value in the EHT OM 9291 * Control subfield combined with the Rx NSS subfield in the OM Control subfield 9292 * indicates NSS - 1, where NSS is the maximum number of spatial streams that 9293 * STA supports in reception for PPDU bandwidths less than or equal to 80 MHz. 9294 * 9295 * @QCA_WLAN_VENDOR_ATTR_EHT_OMI_CH_BW_EXTN: 8-bit unsigned value indicates 9296 * 320 MHz operating channel width supported by the EHT STA for both reception 9297 * and transmission. 9298 * 9299 * @QCA_WLAN_VENDOR_ATTR_EHT_OMI_TX_NSS_EXTN: 8-bit unsigned value in the EHT OM 9300 * Control subfield combined with the Tx NSTS subfield in OM Control subfield 9301 * indicates NSTS - 1, where NSTS is the maximum number of space-time streams 9302 * that the STA supports in transmission for PPDU bandwidths less than or equal 9303 * to 80 MHz. 9304 */ 9305 enum qca_wlan_vendor_attr_omi_tx { 9306 QCA_WLAN_VENDOR_ATTR_HE_OMI_INVALID = 0, 9307 QCA_WLAN_VENDOR_ATTR_HE_OMI_RX_NSS = 1, 9308 QCA_WLAN_VENDOR_ATTR_HE_OMI_CH_BW = 2, 9309 QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DISABLE = 3, 9310 QCA_WLAN_VENDOR_ATTR_HE_OMI_TX_NSTS = 4, 9311 QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DATA_DISABLE = 5, 9312 QCA_WLAN_VENDOR_ATTR_EHT_OMI_RX_NSS_EXTN = 6, 9313 QCA_WLAN_VENDOR_ATTR_EHT_OMI_CH_BW_EXTN = 7, 9314 QCA_WLAN_VENDOR_ATTR_EHT_OMI_TX_NSS_EXTN = 8, 9315 9316 /* keep last */ 9317 QCA_WLAN_VENDOR_ATTR_OMI_AFTER_LAST, 9318 QCA_WLAN_VENDOR_ATTR_OMI_MAX = 9319 QCA_WLAN_VENDOR_ATTR_OMI_AFTER_LAST - 1, 9320 }; 9321 9322 /* deprecated legacy names */ 9323 #define QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OMI_TX \ 9324 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OMI_TX 9325 #define qca_wlan_vendor_attr_he_omi_tx \ 9326 qca_wlan_vendor_attr_omi_tx 9327 #define QCA_WLAN_VENDOR_ATTR_HE_OMI_AFTER_LAST \ 9328 QCA_WLAN_VENDOR_ATTR_OMI_AFTER_LAST 9329 #define QCA_WLAN_VENDOR_ATTR_HE_OMI_MAX \ 9330 QCA_WLAN_VENDOR_ATTR_OMI_MAX 9331 9332 /** 9333 * enum qca_wlan_vendor_phy_mode - Different PHY modes 9334 * These values are used with %QCA_WLAN_VENDOR_ATTR_CONFIG_PHY_MODE. 9335 * 9336 * @QCA_WLAN_VENDOR_PHY_MODE_AUTO: autoselect 9337 * @QCA_WLAN_VENDOR_PHY_MODE_2G_AUTO: 2.4 GHz 802.11b/g/n/ax autoselect 9338 * @QCA_WLAN_VENDOR_PHY_MODE_5G_AUTO: 5 GHz 802.11a/n/ac/ax autoselect 9339 * @QCA_WLAN_VENDOR_PHY_MODE_11A: 5 GHz, OFDM 9340 * @QCA_WLAN_VENDOR_PHY_MODE_11B: 2.4 GHz, CCK 9341 * @QCA_WLAN_VENDOR_PHY_MODE_11G: 2.4 GHz, OFDM 9342 * @QCA_WLAN_VENDOR_PHY_MODE_11AGN: Support 802.11n in both 2.4 GHz and 5 GHz 9343 * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT20: 2.4 GHz, HT20 9344 * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40PLUS: 2.4 GHz, HT40 (ext ch +1) 9345 * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40MINUS: 2.4 GHz, HT40 (ext ch -1) 9346 * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40: 2.4 GHz, Auto HT40 9347 * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT20: 5 GHz, HT20 9348 * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40PLUS: 5 GHz, HT40 (ext ch +1) 9349 * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40MINUS: 5 GHz, HT40 (ext ch -1) 9350 * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40: 5 GHz, Auto HT40 9351 * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT20: 5 GHz, VHT20 9352 * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40PLUS: 5 GHz, VHT40 (Ext ch +1) 9353 * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40MINUS: 5 GHz VHT40 (Ext ch -1) 9354 * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40: 5 GHz, VHT40 9355 * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80: 5 GHz, VHT80 9356 * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80P80: 5 GHz, VHT80+80 9357 * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT160: 5 GHz, VHT160 9358 * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE20: HE20 9359 * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40: HE40 9360 * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40PLUS: HE40 (ext ch +1) 9361 * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40MINUS: HE40 (ext ch -1) 9362 * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80: HE80 9363 * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80P80: HE 80P80 9364 * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE160: HE160 9365 */ 9366 enum qca_wlan_vendor_phy_mode { 9367 QCA_WLAN_VENDOR_PHY_MODE_AUTO = 0, 9368 QCA_WLAN_VENDOR_PHY_MODE_2G_AUTO = 1, 9369 QCA_WLAN_VENDOR_PHY_MODE_5G_AUTO = 2, 9370 QCA_WLAN_VENDOR_PHY_MODE_11A = 3, 9371 QCA_WLAN_VENDOR_PHY_MODE_11B = 4, 9372 QCA_WLAN_VENDOR_PHY_MODE_11G = 5, 9373 QCA_WLAN_VENDOR_PHY_MODE_11AGN = 6, 9374 QCA_WLAN_VENDOR_PHY_MODE_11NG_HT20 = 7, 9375 QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40PLUS = 8, 9376 QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40MINUS = 9, 9377 QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40 = 10, 9378 QCA_WLAN_VENDOR_PHY_MODE_11NA_HT20 = 11, 9379 QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40PLUS = 12, 9380 QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40MINUS = 13, 9381 QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40 = 14, 9382 QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT20 = 15, 9383 QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40PLUS = 16, 9384 QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40MINUS = 17, 9385 QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40 = 18, 9386 QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80 = 19, 9387 QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80P80 = 20, 9388 QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT160 = 21, 9389 QCA_WLAN_VENDOR_PHY_MODE_11AX_HE20 = 22, 9390 QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40 = 23, 9391 QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40PLUS = 24, 9392 QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40MINUS = 25, 9393 QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80 = 26, 9394 QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80P80 = 27, 9395 QCA_WLAN_VENDOR_PHY_MODE_11AX_HE160 = 28, 9396 }; 9397 9398 /* Attributes for data used by 9399 * QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION 9400 */ 9401 enum qca_wlan_vendor_attr_wifi_test_config { 9402 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_INVALID = 0, 9403 /* 8-bit unsigned value to configure the driver to enable/disable 9404 * WMM feature. This attribute is used to configure testbed device. 9405 * 1-enable, 0-disable 9406 */ 9407 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_WMM_ENABLE = 1, 9408 9409 /* 8-bit unsigned value to configure the driver to accept/reject 9410 * the addba request from peer. This attribute is used to configure 9411 * the testbed device. 9412 * 1-accept addba, 0-reject addba 9413 */ 9414 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ACCEPT_ADDBA_REQ = 2, 9415 9416 /* 8-bit unsigned value to configure the driver to send or not to 9417 * send the addba request to peer. 9418 * This attribute is used to configure the testbed device. 9419 * 1-send addba, 0-do not send addba 9420 */ 9421 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_SEND_ADDBA_REQ = 3, 9422 9423 /* 8-bit unsigned value to indicate the HE fragmentation support. 9424 * Uses enum he_fragmentation_val values. 9425 * This attribute is used to configure the testbed device to 9426 * allow the advertised hardware capabilities to be downgraded 9427 * for testing purposes. 9428 */ 9429 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_FRAGMENTATION = 4, 9430 9431 /* 8-bit unsigned value to indicate the HE MCS support. 9432 * Uses enum he_mcs_config values. 9433 * This attribute is used to configure the testbed device to 9434 * allow the advertised hardware capabilities to be downgraded 9435 * for testing purposes. 9436 */ 9437 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MCS = 5, 9438 9439 /* 8-bit unsigned value to configure the driver to allow or not to 9440 * allow the connection with WEP/TKIP in HT/VHT/HE modes. 9441 * This attribute is used to configure the testbed device. 9442 * 1-allow WEP/TKIP in HT/VHT/HE, 0-do not allow WEP/TKIP. 9443 */ 9444 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_WEP_TKIP_IN_HE = 6, 9445 9446 /* 8-bit unsigned value to configure the driver to add a 9447 * new BA session or delete the existing BA session for 9448 * given TID. ADDBA command uses the buffer size and TID 9449 * configuration if user specifies the values else default 9450 * value for buffer size is used for all TIDs if the TID 9451 * also not specified. For DEL_BA command TID value is 9452 * required to process the command. 9453 * Uses enum qca_wlan_ba_session_config values. 9454 * This attribute is used to configure the testbed device. 9455 */ 9456 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ADD_DEL_BA_SESSION = 7, 9457 9458 /* 16-bit unsigned value to configure the buffer size in addba 9459 * request and response frames. 9460 * This attribute is used to configure the testbed device. 9461 * The range of the value is 0 to 256. 9462 */ 9463 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ADDBA_BUFF_SIZE = 8, 9464 9465 /* 8-bit unsigned value to configure the buffer size in addba 9466 * request and response frames. 9467 * This attribute is used to configure the testbed device. 9468 */ 9469 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BA_TID = 9, 9470 9471 /* 8-bit unsigned value to configure the no ack policy. 9472 * To configure no ack policy, access category value is 9473 * required to process the command. 9474 * This attribute is used to configure the testbed device. 9475 * 1 - enable no ack, 0 - disable no ack. 9476 */ 9477 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_NO_ACK = 10, 9478 9479 /* 8-bit unsigned value to configure the AC for no ack policy 9480 * This attribute is used to configure the testbed device. 9481 * Uses the enum qca_wlan_ac_type values. 9482 */ 9483 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_NO_ACK_AC = 11, 9484 9485 /* 8-bit unsigned value to configure the HE LTF 9486 * This attribute is used to configure the testbed device. 9487 * Uses the enum qca_wlan_he_ltf_cfg values. 9488 */ 9489 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_LTF = 12, 9490 9491 /* 8-bit unsigned value to configure the tx beamformee. 9492 * This attribute is used to configure the testbed device. 9493 * 1-enable, 0-disable. 9494 */ 9495 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_TX_BEAMFORMEE = 13, 9496 9497 /* 8-bit unsigned value to configure the tx beamformee number 9498 * of space-time streams. 9499 * This attribute is used to configure the testbed device. 9500 * The range of the value is 0 to 8. 9501 */ 9502 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TX_BEAMFORMEE_NSTS = 14, 9503 9504 /* 8-bit unsigned value to configure the MU EDCA params for given AC 9505 * This attribute is used to configure the testbed device. 9506 * Uses the enum qca_wlan_ac_type values. 9507 */ 9508 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_AC = 15, 9509 9510 /* 8-bit unsigned value to configure the MU EDCA AIFSN for given AC 9511 * To configure MU EDCA AIFSN value, MU EDCA access category value 9512 * is required to process the command. 9513 * This attribute is used to configure the testbed device. 9514 */ 9515 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_AIFSN = 16, 9516 9517 /* 8-bit unsigned value to configure the MU EDCA ECW min value for 9518 * given AC. 9519 * To configure MU EDCA ECW min value, MU EDCA access category value 9520 * is required to process the command. 9521 * This attribute is used to configure the testbed device. 9522 */ 9523 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_ECWMIN = 17, 9524 9525 /* 8-bit unsigned value to configure the MU EDCA ECW max value for 9526 * given AC. 9527 * To configure MU EDCA ECW max value, MU EDCA access category value 9528 * is required to process the command. 9529 * This attribute is used to configure the testbed device. 9530 */ 9531 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_ECWMAX = 18, 9532 9533 /* 8-bit unsigned value to configure the MU EDCA timer for given AC 9534 * To configure MU EDCA timer value, MU EDCA access category value 9535 * is required to process the command. 9536 * This attribute is used to configure the testbed device. 9537 */ 9538 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_TIMER = 19, 9539 9540 /* 8-bit unsigned value to configure the HE trigger frame MAC padding 9541 * duration. 9542 * This attribute is used to configure the testbed device. 9543 * Uses the enum qca_wlan_he_mac_padding_dur values. 9544 */ 9545 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MAC_PADDING_DUR = 20, 9546 9547 /* 8-bit unsigned value to override the MU EDCA params to defaults 9548 * regardless of the AP beacon MU EDCA params. If it is enabled use 9549 * the default values else use the MU EDCA params from AP beacon. 9550 * This attribute is used to configure the testbed device. 9551 * 1-enable, 0-disable. 9552 */ 9553 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OVERRIDE_MU_EDCA = 21, 9554 9555 /* 8-bit unsigned value to configure the support for receiving 9556 * an MPDU that contains an operating mode control subfield. 9557 * This attribute is used to configure the testbed device. 9558 * 1-enable, 0-disable. 9559 */ 9560 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_SUPP = 22, 9561 9562 /* Nested attribute values required to setup the TWT session. 9563 * enum qca_wlan_vendor_attr_twt_setup provides the necessary 9564 * information to set up the session. It contains broadcast flags, 9565 * set_up flags, trigger value, flow type, flow ID, wake interval 9566 * exponent, protection, target wake time, wake duration, wake interval 9567 * mantissa. These nested attributes are used to setup a host triggered 9568 * TWT session. 9569 */ 9570 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SETUP = 23, 9571 9572 /* This nested attribute is used to terminate the current TWT session. 9573 * It does not currently carry any attributes. 9574 */ 9575 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_TERMINATE = 24, 9576 9577 /* This nested attribute is used to suspend the current TWT session. 9578 * It does not currently carry any attributes. 9579 */ 9580 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SUSPEND = 25, 9581 9582 /* Nested attribute values to indicate the request for resume. 9583 * This attribute is used to resume the TWT session. 9584 * enum qca_wlan_vendor_attr_twt_resume provides the necessary 9585 * parameters required to resume the TWT session. 9586 */ 9587 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_RESUME = 26, 9588 9589 /* 8-bit unsigned value to set the HE operating mode control 9590 * (OM CTRL) Channel Width subfield. 9591 * The Channel Width subfield indicates the operating channel width 9592 * supported by the STA for both reception and transmission. 9593 * Uses the enum qca_wlan_he_om_ctrl_ch_bw values. 9594 * This setting is cleared with the 9595 * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG 9596 * flag attribute to reset defaults. 9597 * This attribute is used to configure the testbed device. 9598 */ 9599 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_BW = 27, 9600 9601 /* 8-bit unsigned value to configure the number of spatial 9602 * streams in HE operating mode control field. 9603 * This setting is cleared with the 9604 * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG 9605 * flag attribute to reset defaults. 9606 * This attribute is used to configure the testbed device. 9607 */ 9608 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_NSS = 28, 9609 9610 /* Flag attribute to configure the UL MU disable bit in 9611 * HE operating mode control field. 9612 * This setting is cleared with the 9613 * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG 9614 * flag attribute to reset defaults. 9615 * This attribute is used to configure the testbed device. 9616 */ 9617 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_UL_MU_DISABLE = 29, 9618 9619 /* Flag attribute to clear the previously set HE operating mode 9620 * control field configuration. 9621 * This attribute is used to configure the testbed device to reset 9622 * defaults to clear any previously set HE operating mode control 9623 * field configuration. 9624 */ 9625 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG = 30, 9626 9627 /* 8-bit unsigned value to configure HE single user PPDU 9628 * transmission. By default this setting is disabled and it 9629 * is disabled in the reset defaults of the device configuration. 9630 * This attribute is used to configure the testbed device. 9631 * 1-enable, 0-disable 9632 */ 9633 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TX_SUPPDU = 31, 9634 9635 /* 8-bit unsigned value to configure action frame transmission 9636 * in HE trigger based PPDU transmission. 9637 * By default this setting is disabled and it is disabled in 9638 * the reset defaults of the device configuration. 9639 * This attribute is used to configure the testbed device. 9640 * 1-enable, 0-disable 9641 */ 9642 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_ACTION_TX_TB_PPDU = 32, 9643 9644 /* Nested attribute to indicate HE operating mode control field 9645 * transmission. It contains operating mode control field Nss, 9646 * channel bandwidth, Tx Nsts and UL MU disable attributes. 9647 * These nested attributes are used to send HE operating mode control 9648 * with configured values. 9649 * Uses the enum qca_wlan_vendor_attr_omi_tx attributes. 9650 * This attribute is used to configure the testbed device. 9651 */ 9652 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OMI_TX = 33, 9653 9654 /* 8-bit unsigned value to configure +HTC_HE support to indicate the 9655 * support for the reception of a frame that carries an HE variant 9656 * HT Control field. 9657 * This attribute is used to configure the testbed device. 9658 * 1-enable, 0-disable 9659 */ 9660 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_HTC_HE_SUPP = 34, 9661 9662 /* 8-bit unsigned value to configure VHT support in 2.4G band. 9663 * This attribute is used to configure the testbed device. 9664 * 1-enable, 0-disable 9665 */ 9666 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_2G_VHT = 35, 9667 9668 /* 8-bit unsigned value to configure HE testbed defaults. 9669 * This attribute is used to configure the testbed device. 9670 * 1-set the device HE capabilities to testbed defaults. 9671 * 0-reset the device HE capabilities to supported config. 9672 */ 9673 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_SET_HE_TESTBED_DEFAULTS = 36, 9674 9675 /* 8-bit unsigned value to configure TWT request support. 9676 * This attribute is used to configure the testbed device. 9677 * 1-enable, 0-disable. 9678 */ 9679 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TWT_REQ_SUPPORT = 37, 9680 9681 /* 8-bit unsigned value to configure protection for Management 9682 * frames when PMF is enabled for the association. 9683 * This attribute is used to configure the testbed device. 9684 * 0-use the correct key, 1-use an incorrect key, 2-disable protection. 9685 */ 9686 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_PMF_PROTECTION = 38, 9687 9688 /* Flag attribute to inject Disassociation frame to the connected AP. 9689 * This attribute is used to configure the testbed device. 9690 */ 9691 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_DISASSOC_TX = 39, 9692 9693 /* 8-bit unsigned value to configure an override for the RSNXE Used 9694 * subfield in the MIC control field of the FTE in FT Reassociation 9695 * Request frame. 9696 * 0 - Default behavior, 1 - override with 1, 2 - override with 0. 9697 * This attribute is used to configure the testbed device. 9698 * This attribute can be configured only when STA is in associated state 9699 * and the configuration is valid until the disconnection. 9700 */ 9701 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FT_REASSOCREQ_RSNXE_USED = 40, 9702 9703 /* 8-bit unsigned value to configure the driver to ignore CSA (Channel 9704 * Switch Announcement) when STA is in connected state. 9705 * 0 - Default behavior, 1 - Ignore CSA. 9706 * This attribute is used to configure the testbed device. 9707 * This attribute can be configured only when STA is in associated state 9708 * and the configuration is valid until the disconnection. 9709 */ 9710 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_IGNORE_CSA = 41, 9711 9712 /* Nested attribute values required to configure OCI (Operating Channel 9713 * Information). Attributes defined in enum 9714 * qca_wlan_vendor_attr_oci_override are nested within this attribute. 9715 * This attribute is used to configure the testbed device. 9716 * This attribute can be configured only when STA is in associated state 9717 * and the configuration is valid until the disconnection. 9718 */ 9719 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OCI_OVERRIDE = 42, 9720 9721 /* 8-bit unsigned value to configure the driver/firmware to ignore SA 9722 * Query timeout. If this configuration is enabled STA shall not send 9723 * Deauthentication frmae when SA Query times out (mainly, after a 9724 * channel switch when OCV is enabled). 9725 * 0 - Default behavior, 1 - Ignore SA Query timeout. 9726 * This attribute is used to configure the testbed device. 9727 * This attribute can be configured only when STA is in associated state 9728 * and the configuration is valid until the disconnection. 9729 */ 9730 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_IGNORE_SA_QUERY_TIMEOUT = 43, 9731 9732 /* 8-bit unsigned value to configure the driver/firmware to start or 9733 * stop transmitting FILS discovery frames. 9734 * 0 - Stop transmitting FILS discovery frames 9735 * 1 - Start transmitting FILS discovery frames 9736 * This attribute is used to configure the testbed device. 9737 * This attribute can be configured only in AP mode and the 9738 * configuration is valid until AP restart. 9739 */ 9740 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FILS_DISCOVERY_FRAMES_TX = 44, 9741 9742 /* 8-bit unsigned value to configure the driver/firmware to enable or 9743 * disable full bandwidth UL MU-MIMO subfield in the HE PHY capabilities 9744 * information field. 9745 * 0 - Disable full bandwidth UL MU-MIMO subfield 9746 * 1 - Enable full bandwidth UL MU-MIMO subfield 9747 * This attribute is used to configure the testbed device. 9748 */ 9749 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FULL_BW_UL_MU_MIMO = 45, 9750 9751 /* 16-bit unsigned value to configure the driver with a specific BSS 9752 * max idle period to advertise in the BSS Max Idle Period element 9753 * (IEEE Std 802.11-2016, 9.4.2.79) in (Re)Association Request frames. 9754 * This attribute is used to configure the testbed device. 9755 */ 9756 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BSS_MAX_IDLE_PERIOD = 46, 9757 9758 /* 8-bit unsigned value to configure the driver to use only RU 242 tone 9759 * for data transmission. 9760 * 0 - Default behavior, 1 - Configure RU 242 tone for data Tx. 9761 * This attribute is used to configure the testbed device. 9762 */ 9763 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_RU_242_TONE_TX = 47, 9764 9765 /* 8-bit unsigned value to configure the driver to disable data and 9766 * management response frame transmission to test the BSS max idle 9767 * feature. 9768 * 0 - Default behavior, 1 - Disable data and management response Tx. 9769 * This attribute is used to configure the testbed device. 9770 */ 9771 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_DISABLE_DATA_MGMT_RSP_TX = 48, 9772 9773 /* 8-bit unsigned value to configure the driver/firmware to enable or 9774 * disable Punctured Preamble Rx subfield in the HE PHY capabilities 9775 * information field. 9776 * 0 - Disable Punctured Preamble Rx subfield 9777 * 1 - Enable Punctured Preamble Rx subfield 9778 * This attribute is used to configure the testbed device. 9779 */ 9780 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_PUNCTURED_PREAMBLE_RX = 49, 9781 9782 /* 8-bit unsigned value to configure the driver to ignore the SAE H2E 9783 * requirement mismatch for 6 GHz connection. 9784 * 0 - Default behavior, 1 - Ignore SAE H2E requirement mismatch. 9785 * This attribute is used to configure the testbed device. 9786 */ 9787 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_IGNORE_H2E_RSNXE = 50, 9788 9789 /* 8-bit unsigned value to configure the driver to allow 6 GHz 9790 * connection with all security modes. 9791 * 0 - Default behavior, 1 - Allow 6 GHz connection with all security 9792 * modes. 9793 * This attribute is used for testing purposes. 9794 */ 9795 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_6GHZ_SECURITY_TEST_MODE = 51, 9796 9797 /* 8-bit unsigned value to configure the driver to transmit data with 9798 * ER SU PPDU type. 9799 * 9800 * 0 - Default behavior, 1 - Enable ER SU PPDU type TX. 9801 * This attribute is used for testing purposes. 9802 */ 9803 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ER_SU_PPDU_TYPE = 52, 9804 9805 /* 8-bit unsigned value to configure the driver to use Data or 9806 * Management frame type for keep alive data. 9807 * Uses enum qca_wlan_keep_alive_data_type values. 9808 * 9809 * This attribute is used for testing purposes. 9810 */ 9811 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_KEEP_ALIVE_FRAME_TYPE = 53, 9812 9813 /* 8-bit unsigned value to configure the driver to use scan request 9814 * BSSID value in Probe Request frame RA(A1) during the scan. The 9815 * driver saves this configuration and applies this setting to all user 9816 * space scan requests until the setting is cleared. If this 9817 * configuration is set, the driver uses the BSSID value from the scan 9818 * request to set the RA(A1) in the Probe Request frames during the 9819 * scan. 9820 * 9821 * 0 - Default behavior uses the broadcast RA in Probe Request frames. 9822 * 1 - Uses the scan request BSSID in RA in Probe Request frames. 9823 * This attribute is used for testing purposes. 9824 */ 9825 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_USE_BSSID_IN_PROBE_REQ_RA = 54, 9826 9827 /* 8-bit unsigned value to configure the driver to enable/disable the 9828 * BSS max idle period support. 9829 * 9830 * 0 - Disable the BSS max idle support. 9831 * 1 - Enable the BSS max idle support. 9832 * This attribute is used for testing purposes. 9833 */ 9834 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BSS_MAX_IDLE_PERIOD_ENABLE = 55, 9835 9836 /* 8-bit unsigned value to configure the driver/firmware to enable or 9837 * disable Rx control frame to MultiBSS subfield in the HE MAC 9838 * capabilities information field. 9839 * 0 - Disable Rx control frame to MultiBSS subfield 9840 * 1 - Enable Rx control frame to MultiBSS subfield 9841 * This attribute is used to configure the testbed device. 9842 */ 9843 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_RX_CTRL_FRAME_TO_MBSS = 56, 9844 9845 /* 8-bit unsigned value to configure the driver/firmware to enable or 9846 * disable Broadcast TWT support subfield in the HE MAC capabilities 9847 * information field. 9848 * 0 - Disable Broadcast TWT support subfield 9849 * 1 - Enable Broadcast TWT support subfield 9850 * This attribute is used to configure the testbed device. 9851 */ 9852 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BCAST_TWT_SUPPORT = 57, 9853 9854 /* 8-bit unsigned value to configure the driver/firmware to allow eMLSR 9855 * mode for IEEE 802.11be MLO capable devices. If the attribute is set 9856 * to 1, and if the firmware supports this capability too, the STA 9857 * advertises this capability to the AP over Association Request frame. 9858 * This attribute will not have any effect on legacy devices with no 9859 * IEEE 802.11be support. 9860 * 0 - Default behavior 9861 * 1 - Enable eMLSR (Enhanced Multi-link Single-Radio) mode 9862 * This attribute is used to configure the testbed device. 9863 */ 9864 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_11BE_EMLSR_MODE = 58, 9865 9866 /* 8-bit unsigned value to configure the driver to enable/disable the 9867 * periodic sounding for Tx beamformer functionality. The default 9868 * behavior uses algorithm to do sounding based on packet stats. 9869 * 9870 * 0 - Default behavior. 9871 * 1 - Enable the periodic sounding for Tx beamformer. 9872 * This attribute is used for testing purposes. 9873 */ 9874 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BEAMFORMER_PERIODIC_SOUNDING = 59, 9875 9876 /* 8-bit unsigned value to configure beamformee SS EHT capability 9877 * to indicate the maximum number of spatial streams that the STA 9878 * can receive in an EHT sounding NDP for <= 80 MHz bandwidth. 9879 * The range of the value is 3 to 7. 9880 * This attribute is used to configure the testbed device. 9881 */ 9882 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_BEAMFORMEE_SS_80MHZ = 60, 9883 9884 /* 8-bit unsigned value to configure beamformee SS EHT capability 9885 * to indicate the maximum number of spatial streams that the STA 9886 * can receive in an EHT sounding NDP for 160 MHz bandwidth. 9887 * The range of the value is 3 to 7. 9888 * This attribute is used to configure the testbed device. 9889 */ 9890 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_BEAMFORMEE_SS_160MHZ = 61, 9891 9892 /* 8-bit unsigned value to configure beamformee SS EHT capability 9893 * to indicate the maximum number of spatial streams that the STA 9894 * can receive in an EHT sounding NDP for 320 MHz bandwidth. 9895 * The range of the value is 3 to 7. 9896 * This attribute is used to configure the testbed device. 9897 */ 9898 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_BEAMFORMEE_SS_320MHZ = 62, 9899 9900 /* 8-bit unsigned value to configure the driver to exclude station 9901 * profile in Probe Request frame Multi-Link element. 9902 * 0 - Default behavior, sends the Probe Request frame with station 9903 * profile data included in the Multi-Link element. 9904 * 1 - Exclude station profile in Probe Request frame Multi-Link 9905 * element. 9906 * This attribute is used to configure the testbed device. 9907 */ 9908 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EXCLUDE_STA_PROF_IN_PROBE_REQ = 63, 9909 9910 /* 8-bit unsigned value to configure EHT testbed defaults. 9911 * This attribute is used to configure the testbed device. 9912 * 1 - Set the device EHT capabilities to testbed defaults. 9913 * 0 - Reset the device EHT capabilities to supported config. 9914 */ 9915 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_SET_EHT_TESTBED_DEFAULTS = 64, 9916 9917 /* 8-bit unsigned value to indicate the EHT MCS support. 9918 * Uses enum eht_mcs_config values. 9919 * This attribute is used to configure the testbed device to 9920 * allow the advertised hardware capabilities to be downgraded 9921 * for testing purposes. 9922 */ 9923 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_MCS = 65, 9924 9925 /* 8-bit unsigned value to configure EHT TB Sounding Feedback 9926 * Rate Limit capability. 9927 * This attribute is used to configure the testbed device. 9928 * 0 - Indicates no maximum supported data rate limitation. 9929 * 1 - Indicates the maximum supported data rate is the lower of 9930 * the 1500 Mb/s and the maximum supported data rate. 9931 */ 9932 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_TB_SOUNDING_FB_RL = 66, 9933 9934 /* 8-bit unsigned value to configure the support for receiving an MPDU 9935 * that contains an EHT operating mode control subfield. 9936 * This attribute is used to configure the testbed device. 9937 * 1-enable, 0-disable. 9938 */ 9939 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_OM_CTRL_SUPPORT = 67, 9940 9941 /* 8-bit unsigned value to configure the driver with EMLSR padding delay 9942 * subfield value. 9943 * 9944 * 0 - 0 us 9945 * 1 - 32 us 9946 * 2 - 64 us 9947 * 3 - 128 us 9948 * 4 - 256 us 9949 * 5-255 - Reserved 9950 * 9951 * This attribute is used for testing purposes. 9952 */ 9953 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EMLSR_PADDING_DELAY = 68, 9954 9955 /* 9956 * 8-bit unsigned value to indicate the firmware to force the active MLO 9957 * links to power save mode for the configured number of beacon periods. 9958 * This allows the firmware to suspend STA links for X beacon periods 9959 * and remain asleep even if the AP advertises TIM as opposed to regular 9960 * power save mode where STA links wake up if the AP indicates that it 9961 * has buffered data to send. 9962 * This attribute is used to configure the testbed device. 9963 */ 9964 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FORCE_MLO_POWER_SAVE_BCN_PERIOD = 69, 9965 9966 /* 9967 * 8-bit unsigned value to indicate the firmware to be in STR MLMR mode 9968 * to enable simultaneous transmission of PPDUs on all active links. 9969 * 0 - Default behavior 9970 * 1 - Enter STR mode for simultaneous data transmission on all links 9971 */ 9972 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_MLO_STR_TX = 70, 9973 9974 /* Nested attribute to indicate EHT MLO links on which powersave to be 9975 * enabled. It contains link ID attributes. These nested attributes are 9976 * of the type u8 and are used to enable the powersave on associated 9977 * MLO links corresponding to the link IDs provided in the command. 9978 * This attribute is used to configure the testbed device. 9979 */ 9980 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_MLO_LINK_POWER_SAVE = 71, 9981 9982 /* 8-bit unsigned value to configure the MLD ID of the BSS whose link 9983 * info is requested in the ML Probe Request frame. In the MLO-MBSSID 9984 * testcase, STA can request information of non-Tx BSS through Tx BSS 9985 * by configuring non-Tx BSS MLD ID within the ML probe request that 9986 * is transmitted via host initiated scan request. 9987 * 9988 * This attribute is used for testing purposes. 9989 */ 9990 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_MLD_ID_ML_PROBE_REQ = 72, 9991 9992 /* keep last */ 9993 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_AFTER_LAST, 9994 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_MAX = 9995 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_AFTER_LAST - 1, 9996 }; 9997 9998 /** 9999 * enum qca_wlan_twt_operation - Operation of the config TWT request 10000 * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION. 10001 * The response for the respective operations can be either synchronous or 10002 * asynchronous (wherever specified). If synchronous, the response to this 10003 * operation is obtained in the corresponding vendor command reply to the user 10004 * space. For the asynchronous case the response is obtained as an event with 10005 * the same operation type. 10006 * 10007 * Drivers shall support either of these modes but not both simultaneously. 10008 * This support for asynchronous mode is advertised through the flag 10009 * QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT. If this flag is not advertised, 10010 * the driver shall support synchronous mode. 10011 * 10012 * @QCA_WLAN_TWT_SET: Setup a TWT session. Required parameters are configured 10013 * through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum 10014 * qca_wlan_vendor_attr_twt_setup. Depending upon the 10015 * @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT capability, this is either a 10016 * synchronous or asynchronous operation. 10017 * 10018 * @QCA_WLAN_TWT_GET: Get the configured TWT parameters. Required parameters are 10019 * obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum 10020 * qca_wlan_vendor_attr_twt_setup. This is a synchronous operation. 10021 * 10022 * @QCA_WLAN_TWT_TERMINATE: Terminate the TWT session. Required parameters are 10023 * obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum 10024 * qca_wlan_vendor_attr_twt_setup. Valid only after the TWT session is setup. 10025 * This terminate can either get triggered by the user space or can as well be 10026 * a notification from the firmware if it initiates a terminate. 10027 * Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT capability, 10028 * the request from user space can either be a synchronous or asynchronous 10029 * operation. 10030 * 10031 * @QCA_WLAN_TWT_SUSPEND: Suspend the TWT session. Required parameters are 10032 * obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum 10033 * qca_wlan_vendor_attr_twt_setup. Valid only after the TWT session is setup. 10034 * Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT capability, 10035 * this is either a synchronous or asynchronous operation. 10036 * 10037 * @QCA_WLAN_TWT_RESUME: Resume the TWT session. Required parameters are 10038 * configured through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum 10039 * qca_wlan_vendor_attr_twt_resume. Valid only after the TWT session is setup. 10040 * This can as well be a notification from the firmware on a QCA_WLAN_TWT_NUDGE 10041 * request. Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT 10042 * capability, this is either a synchronous or asynchronous operation. 10043 * 10044 * @QCA_WLAN_TWT_NUDGE: Suspend and resume the TWT session. TWT nudge is a 10045 * combination of suspend and resume in a single request. Required parameters 10046 * are configured through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the 10047 * enum qca_wlan_vendor_attr_twt_nudge. Valid only after the TWT session is 10048 * setup. Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT 10049 * capability, this is either a synchronous or asynchronous operation. 10050 * 10051 * @QCA_WLAN_TWT_GET_STATS: Get the TWT session traffic statistics information. 10052 * Refers the enum qca_wlan_vendor_attr_twt_stats. Valid only after the TWT 10053 * session is setup. It's a synchronous operation. 10054 * 10055 * @QCA_WLAN_TWT_CLEAR_STATS: Clear TWT session traffic statistics information. 10056 * Valid only after the TWT session is setup. It's a synchronous operation. 10057 * 10058 * @QCA_WLAN_TWT_GET_CAPABILITIES: Get TWT capabilities of this device and its 10059 * peer. Refers the enum qca_wlan_vendor_attr_twt_capability. It's a synchronous 10060 * operation. 10061 * 10062 * @QCA_WLAN_TWT_SETUP_READY_NOTIFY: Notify userspace that the firmware is 10063 * ready for a new TWT session setup after it issued a TWT teardown. 10064 * 10065 * @QCA_WLAN_TWT_SET_PARAM: Configure TWT related parameters. Required 10066 * parameters are obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refer 10067 * the enum qca_wlan_vendor_attr_twt_set_param. 10068 * 10069 * @QCA_WLAN_TWT_NOTIFY: Used to notify userspace about changes in TWT 10070 * related information for example TWT required bit in AP capabilities etc. 10071 * The reason for the notification is sent using 10072 * QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_NOTIFY_STATUS. 10073 */ 10074 enum qca_wlan_twt_operation { 10075 QCA_WLAN_TWT_SET = 0, 10076 QCA_WLAN_TWT_GET = 1, 10077 QCA_WLAN_TWT_TERMINATE = 2, 10078 QCA_WLAN_TWT_SUSPEND = 3, 10079 QCA_WLAN_TWT_RESUME = 4, 10080 QCA_WLAN_TWT_NUDGE = 5, 10081 QCA_WLAN_TWT_GET_STATS = 6, 10082 QCA_WLAN_TWT_CLEAR_STATS = 7, 10083 QCA_WLAN_TWT_GET_CAPABILITIES = 8, 10084 QCA_WLAN_TWT_SETUP_READY_NOTIFY = 9, 10085 QCA_WLAN_TWT_SET_PARAM = 10, 10086 QCA_WLAN_TWT_NOTIFY = 11, 10087 }; 10088 10089 /** 10090 * enum qca_wlan_vendor_attr_config_twt: Defines attributes used by 10091 * %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT. 10092 * 10093 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION: u8 attribute. Specify the TWT 10094 * operation of this request. Possible values are defined in enum 10095 * qca_wlan_twt_operation. The parameters for the respective operation is 10096 * specified through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. 10097 * 10098 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS: Nested attribute representing the 10099 * parameters configured for TWT. These parameters are represented by 10100 * enum qca_wlan_vendor_attr_twt_setup, enum qca_wlan_vendor_attr_twt_resume, 10101 * enum qca_wlan_vendor_attr_twt_set_param, or 10102 * enum qca_wlan_vendor_attr_twt_stats based on the operation. 10103 * 10104 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_NOTIFY_STATUS: Size is u8, mandatory when 10105 * QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION is set to QCA_WLAN_TWT_NOTIFY. 10106 * The values used by this attribute are defined in 10107 * enum qca_wlan_vendor_twt_status. 10108 */ 10109 enum qca_wlan_vendor_attr_config_twt { 10110 QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_INVALID = 0, 10111 QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION = 1, 10112 QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS = 2, 10113 QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_NOTIFY_STATUS = 3, 10114 10115 /* keep last */ 10116 QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_AFTER_LAST, 10117 QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_MAX = 10118 QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_AFTER_LAST - 1, 10119 }; 10120 10121 /** 10122 * enum qca_wlan_vendor_attr_bss_filter - Used by the vendor command 10123 * QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER. 10124 * The user can add/delete the filter by specifying the BSSID/STA MAC address in 10125 * QCA_WLAN_VENDOR_ATTR_BSS_FILTER_MAC_ADDR, filter type in 10126 * QCA_WLAN_VENDOR_ATTR_BSS_FILTER_TYPE, add/delete action in 10127 * QCA_WLAN_VENDOR_ATTR_BSS_FILTER_ACTION in the request. The user can get the 10128 * statistics of an unassociated station by specifying the MAC address in 10129 * QCA_WLAN_VENDOR_ATTR_BSS_FILTER_MAC_ADDR, station type in 10130 * QCA_WLAN_VENDOR_ATTR_BSS_FILTER_TYPE, GET action in 10131 * QCA_WLAN_VENDOR_ATTR_BSS_FILTER_ACTION in the request. The user also can get 10132 * the statistics of all unassociated stations by specifying the Broadcast MAC 10133 * address (ff:ff:ff:ff:ff:ff) in QCA_WLAN_VENDOR_ATTR_BSS_FILTER_MAC_ADDR with 10134 * above procedure. In the response, driver shall specify statistics 10135 * information nested in QCA_WLAN_VENDOR_ATTR_BSS_FILTER_STA_STATS. 10136 */ 10137 enum qca_wlan_vendor_attr_bss_filter { 10138 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_INVALID = 0, 10139 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_MAC_ADDR = 1, 10140 /* Other BSS filter type, unsigned 8 bit value. One of the values 10141 * in enum qca_wlan_vendor_bss_filter_type. 10142 */ 10143 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_TYPE = 2, 10144 /* Other BSS filter action, unsigned 8 bit value. One of the values 10145 * in enum qca_wlan_vendor_bss_filter_action. 10146 */ 10147 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_ACTION = 3, 10148 /* Array of nested attributes where each entry is the statistics 10149 * information of the specified station that belong to another BSS. 10150 * Attributes for each entry are taken from enum 10151 * qca_wlan_vendor_bss_filter_sta_stats. 10152 * Other BSS station configured in 10153 * QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER with filter type 10154 * QCA_WLAN_VENDOR_BSS_FILTER_TYPE_STA. 10155 * Statistics returned by QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER 10156 * with filter action QCA_WLAN_VENDOR_BSS_FILTER_ACTION_GET. 10157 */ 10158 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_STA_STATS = 4, 10159 10160 /* keep last */ 10161 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_AFTER_LAST, 10162 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_MAX = 10163 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_AFTER_LAST - 1, 10164 }; 10165 10166 /** 10167 * enum qca_wlan_vendor_bss_filter_type - Type of 10168 * filter used in other BSS filter operations. Used by the vendor command 10169 * QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER. 10170 * 10171 * @QCA_WLAN_VENDOR_BSS_FILTER_TYPE_BSSID: BSSID filter 10172 * @QCA_WLAN_VENDOR_BSS_FILTER_TYPE_STA: Station MAC address filter 10173 */ 10174 enum qca_wlan_vendor_bss_filter_type { 10175 QCA_WLAN_VENDOR_BSS_FILTER_TYPE_BSSID, 10176 QCA_WLAN_VENDOR_BSS_FILTER_TYPE_STA, 10177 }; 10178 10179 /** 10180 * enum qca_wlan_vendor_bss_filter_action - Type of 10181 * action in other BSS filter operations. Used by the vendor command 10182 * QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER. 10183 * 10184 * @QCA_WLAN_VENDOR_BSS_FILTER_ACTION_ADD: Add filter 10185 * @QCA_WLAN_VENDOR_BSS_FILTER_ACTION_DEL: Delete filter 10186 * @QCA_WLAN_VENDOR_BSS_FILTER_ACTION_GET: Get the statistics 10187 */ 10188 enum qca_wlan_vendor_bss_filter_action { 10189 QCA_WLAN_VENDOR_BSS_FILTER_ACTION_ADD, 10190 QCA_WLAN_VENDOR_BSS_FILTER_ACTION_DEL, 10191 QCA_WLAN_VENDOR_BSS_FILTER_ACTION_GET, 10192 }; 10193 10194 /** 10195 * enum qca_wlan_vendor_bss_filter_sta_stats - Attributes for 10196 * the statistics of a specific unassociated station belonging to another BSS. 10197 * The statistics provides information of the unassociated station 10198 * filtered by other BSS operation - such as MAC, signal value. 10199 * Used by the vendor command QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER. 10200 * 10201 * @QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_MAC: MAC address of the station. 10202 * @QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_RSSI: Last received signal strength 10203 * of the station. Unsigned 8 bit number containing RSSI. 10204 * @QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_RSSI_TS: Time stamp of the host 10205 * driver for the last received RSSI. Unsigned 64 bit number containing 10206 * nanoseconds from the boottime. 10207 * @QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_PAD: Attribute used for padding for 10208 * 64-bit alignment. 10209 */ 10210 enum qca_wlan_vendor_bss_filter_sta_stats { 10211 QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_INVALID = 0, 10212 QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_MAC = 1, 10213 QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_RSSI = 2, 10214 QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_RSSI_TS = 3, 10215 QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_PAD = 4, 10216 10217 /* keep last */ 10218 QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_AFTER_LAST, 10219 QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_MAX = 10220 QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_AFTER_LAST - 1 10221 }; 10222 10223 /* enum qca_wlan_nan_subcmd_type - Type of NAN command used by attribute 10224 * QCA_WLAN_VENDOR_ATTR_NAN_SUBCMD_TYPE as a part of vendor command 10225 * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT. 10226 */ 10227 enum qca_wlan_nan_ext_subcmd_type { 10228 /* Subcmd of type NAN Enable Request */ 10229 QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ = 1, 10230 /* Subcmd of type NAN Disable Request */ 10231 QCA_WLAN_NAN_EXT_SUBCMD_TYPE_DISABLE_REQ = 2, 10232 }; 10233 10234 /** 10235 * enum qca_wlan_vendor_attr_nan_params - Used by the vendor command 10236 * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT. 10237 */ 10238 enum qca_wlan_vendor_attr_nan_params { 10239 QCA_WLAN_VENDOR_ATTR_NAN_INVALID = 0, 10240 /* Carries NAN command for firmware component. Every vendor command 10241 * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT must contain this attribute with a 10242 * payload containing the NAN command. NLA_BINARY attribute. 10243 */ 10244 QCA_WLAN_VENDOR_ATTR_NAN_CMD_DATA = 1, 10245 /* Indicates the type of NAN command sent with 10246 * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT. enum qca_wlan_nan_ext_subcmd_type 10247 * describes the possible range of values. This attribute is mandatory 10248 * if the command being issued is either 10249 * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ or 10250 * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_DISABLE_REQ. NLA_U32 attribute. 10251 */ 10252 QCA_WLAN_VENDOR_ATTR_NAN_SUBCMD_TYPE = 2, 10253 /* Frequency (in MHz) of primary NAN discovery social channel in 2.4 GHz 10254 * band. This attribute is mandatory when command type is 10255 * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ. NLA_U32 attribute. 10256 */ 10257 QCA_WLAN_VENDOR_ATTR_NAN_DISC_24GHZ_BAND_FREQ = 3, 10258 /* Frequency (in MHz) of secondary NAN discovery social channel in 5 GHz 10259 * band. This attribute is optional and should be included when command 10260 * type is QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ and NAN discovery 10261 * has to be started on 5GHz along with 2.4GHz. NLA_U32 attribute. 10262 */ 10263 QCA_WLAN_VENDOR_ATTR_NAN_DISC_5GHZ_BAND_FREQ = 4, 10264 10265 /* keep last */ 10266 QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_AFTER_LAST, 10267 QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_MAX = 10268 QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_AFTER_LAST - 1 10269 }; 10270 10271 /** 10272 * qca_wlan_twt_setup_state: Represents the TWT session states. 10273 * 10274 * QCA_WLAN_TWT_SETUP_STATE_NOT_ESTABLISHED: TWT session not established. 10275 * QCA_WLAN_TWT_SETUP_STATE_ACTIVE: TWT session is active. 10276 * QCA_WLAN_TWT_SETUP_STATE_SUSPEND: TWT session is in suspended state. 10277 */ 10278 enum qca_wlan_twt_setup_state { 10279 QCA_WLAN_TWT_SETUP_STATE_NOT_ESTABLISHED = 0, 10280 QCA_WLAN_TWT_SETUP_STATE_ACTIVE = 1, 10281 QCA_WLAN_TWT_SETUP_STATE_SUSPEND = 2, 10282 }; 10283 10284 /** 10285 * enum qca_wlan_vendor_attr_twt_setup: Represents attributes for 10286 * TWT (Target Wake Time) setup request. These attributes are sent as part of 10287 * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SETUP and 10288 * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION. Also used by 10289 * attributes through %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT. 10290 * 10291 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST: Flag attribute. 10292 * Disable (flag attribute not present) - Individual TWT 10293 * Enable (flag attribute present) - Broadcast TWT. 10294 * Individual means the session is between the STA and the AP. 10295 * This session is established using a separate negotiation between 10296 * STA and AP. 10297 * Broadcast means the session is across multiple STAs and an AP. The 10298 * configuration parameters are announced in Beacon frames by the AP. 10299 * This is used in 10300 * 1. TWT SET Request and Response 10301 * 2. TWT GET Response 10302 * 10303 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_REQ_TYPE: Required (u8). 10304 * Unsigned 8-bit qca_wlan_vendor_twt_setup_req_type to 10305 * specify the TWT request type. This is used in TWT SET operation. 10306 * 10307 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TRIGGER: Flag attribute 10308 * Enable (flag attribute present) - TWT with trigger support. 10309 * Disable (flag attribute not present) - TWT without trigger support. 10310 * Trigger means the AP will send the trigger frame to allow STA to send data. 10311 * Without trigger, the STA will wait for the MU EDCA timer before 10312 * transmitting the data. 10313 * This is used in 10314 * 1. TWT SET Request and Response 10315 * 2. TWT GET Response 10316 * 10317 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_TYPE: Required (u8) 10318 * 0 - Announced TWT - In this mode, STA may skip few service periods to 10319 * save more power. If STA wants to wake up, it will send a PS-POLL/QoS 10320 * NULL frame to AP. 10321 * 1 - Unannounced TWT - The STA will wakeup during every SP. 10322 * This is a required parameter for 10323 * 1. TWT SET Request and Response 10324 * 2. TWT GET Response 10325 * 10326 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_ID: Optional (u8) 10327 * Flow ID is the unique identifier for each TWT session. 10328 * If not provided then dialog ID will be set to zero. 10329 * This is an optional parameter for 10330 * 1. TWT SET Request and Response 10331 * 2. TWT GET Request and Response 10332 * 3. TWT TERMINATE Request and Response 10333 * 4. TWT SUSPEND Request and Response 10334 * Flow ID values from 0 to 254 represent a single TWT session 10335 * Flow ID value of 255 represents all TWT sessions for the following 10336 * 1. TWT TERMINATE Request and Response 10337 * 2. TWT SUSPEND Request and Response 10338 * 4. TWT CLEAR STATISTICS request 10339 * 5. TWT GET STATISTICS request and response 10340 * If an invalid dialog ID is provided, status 10341 * QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST will be returned. 10342 * 10343 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_EXP: Required (u8) 10344 * This attribute (exp) is used along with the mantissa to derive the 10345 * wake interval using the following formula: 10346 * pow(2,exp) = wake_intvl_us/wake_intvl_mantis 10347 * Wake interval is the interval between 2 successive SP. 10348 * This is a required parameter for 10349 * 1. TWT SET Request and Response 10350 * 2. TWT GET Response 10351 * 10352 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_PROTECTION: Flag attribute 10353 * Enable (flag attribute present) - Protection required. 10354 * Disable (flag attribute not present) - Protection not required. 10355 * If protection is enabled, then the AP will use protection 10356 * mechanism using RTS/CTS to self to reserve the airtime. 10357 * This is used in 10358 * 1. TWT SET Request and Response 10359 * 2. TWT GET Response 10360 * 10361 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME: Optional (u32) 10362 * This attribute is used as the SP offset which is the offset from 10363 * TSF after which the wake happens. The units are in microseconds. If 10364 * this attribute is not provided, then the value will be set to zero. 10365 * This is an optional parameter for 10366 * 1. TWT SET Request and Response 10367 * 2. TWT GET Response 10368 * 10369 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_DURATION: Required (u32) 10370 * This is the duration of the service period. This is specified as 10371 * multiples of 256 microseconds. Valid values are 0x1 to 0xFF. 10372 * This is a required parameter for 10373 * 1. TWT SET Request and Response 10374 * 2. TWT GET Response 10375 * 10376 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA: Required (u32) 10377 * This attribute is used to configure wake interval mantissa. 10378 * The units are in TU. 10379 * This is a required parameter for 10380 * 1. TWT SET Request and Response 10381 * 2. TWT GET Response 10382 * 10383 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATUS: Required (u8) 10384 * This field is applicable for TWT response only. 10385 * This contains status values in enum qca_wlan_vendor_twt_status 10386 * and is passed to the userspace. This is used in TWT SET operation. 10387 * This is a required parameter for 10388 * 1. TWT SET Response 10389 * 2. TWT TERMINATE Response 10390 * 3. TWT SUSPEND Response 10391 * 4. TWT RESUME Response 10392 * 5. TWT NUDGE Response 10393 * 10394 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESP_TYPE: Required (u8) 10395 * This field is applicable for TWT response only. 10396 * This field contains response type from the TWT responder and is 10397 * passed to the userspace. The values for this field are defined in 10398 * enum qca_wlan_vendor_twt_setup_resp_type. This is used in TWT SET 10399 * response. 10400 * 10401 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME_TSF: Required (u64) 10402 * In TWT setup command this field contains absolute TSF that will 10403 * be used by TWT requester during setup. 10404 * In TWT response this field contains absolute TSF value of the 10405 * wake time received from the TWT responder and is passed to 10406 * the userspace. 10407 * This is an optional parameter for 10408 * 1. TWT SET Request 10409 * This is a required parameter for 10410 * 1. TWT SET Response 10411 * 2. TWT GET Response 10412 * 10413 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TWT_INFO_ENABLED: Flag attribute. 10414 * Enable (flag attribute present) - Indicates that the TWT responder 10415 * supports reception of TWT information frame from the TWT requestor. 10416 * Disable (flag attribute not present) - Indicates that the responder 10417 * doesn't support reception of TWT information frame from requestor. 10418 * This is used in 10419 * 1. TWT SET Response 10420 * 2. TWT GET Response 10421 * 10422 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAC_ADDR: 6-byte MAC address 10423 * Represents the MAC address of the peer for which the TWT session 10424 * is being configured. This is used in AP mode to represent the respective 10425 * client. 10426 * In AP mode, this is a required parameter in response for 10427 * 1. TWT SET 10428 * 2. TWT GET 10429 * 3. TWT TERMINATE 10430 * 4. TWT SUSPEND 10431 * In STA mode, this is an optional parameter in request and response for 10432 * the above four TWT operations. 10433 * In AP mode, this is a required parameter in request for 10434 * 1. TWT GET 10435 * 2. TWT TERMINATE 10436 * 10437 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_INTVL: Optional (u32) 10438 * Minimum tolerance limit of wake interval parameter in microseconds. 10439 * 10440 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_INTVL: Optional (u32) 10441 * Maximum tolerance limit of wake interval parameter in microseconds. 10442 * 10443 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_DURATION: Optional (u32) 10444 * Minimum tolerance limit of wake duration parameter in microseconds. 10445 * 10446 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_DURATION: Optional (u32) 10447 * Maximum tolerance limit of wake duration parameter in microseconds. 10448 * 10449 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATE: Optional (u32) 10450 * TWT state for the given dialog id. The values for this are represented 10451 * by enum qca_wlan_twt_setup_state. 10452 * This is obtained through TWT GET operation. 10453 * 10454 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL2_MANTISSA: Optional (u32) 10455 * This attribute is used to configure wake interval mantissa. 10456 * The unit is microseconds. This attribute, when specified, takes 10457 * precedence over QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA. 10458 * This parameter is used for 10459 * 1. TWT SET Request and Response 10460 * 2. TWT GET Response 10461 * 10462 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_ID: Optional (u8) 10463 * This attribute is used to configure Broadcast TWT ID. 10464 * The Broadcast TWT ID indicates a specific Broadcast TWT for which the 10465 * transmitting STA is providing TWT parameters. The allowed values are 0 to 31. 10466 * This parameter is used for 10467 * 1. TWT SET Request 10468 * 2. TWT TERMINATE Request 10469 * 10470 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_RECOMMENDATION: Optional (u8) 10471 * This attribute is used to configure Broadcast TWT recommendation. 10472 * The Broadcast TWT Recommendation subfield contains a value that indicates 10473 * recommendations on the types of frames that are transmitted by TWT 10474 * scheduled STAs and scheduling AP during the broadcast TWT SP. 10475 * The allowed values are 0 - 3. 10476 * This parameter is used for 10477 * 1. TWT SET Request 10478 * 10479 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_PERSISTENCE: Optional (u8) 10480 * This attribute is used to configure Broadcast TWT Persistence. 10481 * The Broadcast TWT Persistence subfield indicates the number of 10482 * TBTTs during which the Broadcast TWT SPs corresponding to this 10483 * broadcast TWT Parameter set are present. The number of beacon intervals 10484 * during which the Broadcast TWT SPs are present is equal to the value in the 10485 * Broadcast TWT Persistence subfield plus 1 except that the value 255 10486 * indicates that the Broadcast TWT SPs are present until explicitly terminated. 10487 * This parameter is used for 10488 * 1. TWT SET Request 10489 * 10490 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESPONDER_PM_MODE: Optional (u8) 10491 * This attribute contains the value of the Responder PM Mode subfield (0 or 1) 10492 * from TWT response frame. 10493 * This parameter is used for 10494 * 1. TWT SET Response 10495 * 2. TWT GET Response 10496 * 10497 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_ANNOUNCE_TIMEOUT: Optional (u32) 10498 * This attribute is used to configure the announce timeout value (in us) in 10499 * the firmware. This timeout value is only applicable for the announced TWT. If 10500 * the timeout value is non-zero the firmware waits up to the timeout value to 10501 * use Data frame as an announcement frame. If the timeout value is 0 the 10502 * firmware sends an explicit QoS NULL frame as the announcement frame on SP 10503 * start. The default value in the firmware is 0. 10504 * This parameter is used for 10505 * 1. TWT SET Request 10506 * 10507 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_PAD: Attribute used for padding for 64-bit 10508 * alignment. 10509 */ 10510 enum qca_wlan_vendor_attr_twt_setup { 10511 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_INVALID = 0, 10512 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST = 1, 10513 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_REQ_TYPE = 2, 10514 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TRIGGER = 3, 10515 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_TYPE = 4, 10516 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_ID = 5, 10517 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_EXP = 6, 10518 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_PROTECTION = 7, 10519 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME = 8, 10520 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_DURATION = 9, 10521 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA = 10, 10522 10523 /* TWT Response only attributes */ 10524 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATUS = 11, 10525 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESP_TYPE = 12, 10526 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME_TSF = 13, 10527 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TWT_INFO_ENABLED = 14, 10528 10529 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAC_ADDR = 15, 10530 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_INTVL = 16, 10531 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_INTVL = 17, 10532 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_DURATION = 18, 10533 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_DURATION = 19, 10534 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATE = 20, 10535 10536 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL2_MANTISSA = 21, 10537 10538 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_ID = 22, 10539 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_RECOMMENDATION = 23, 10540 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_PERSISTENCE = 24, 10541 10542 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESPONDER_PM_MODE = 25, 10543 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_ANNOUNCE_TIMEOUT = 26, 10544 10545 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_PAD = 27, 10546 10547 /* keep last */ 10548 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_AFTER_LAST, 10549 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX = 10550 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_AFTER_LAST - 1, 10551 }; 10552 10553 /** 10554 * enum qca_wlan_vendor_twt_status - Represents the status of the requested 10555 * TWT operation 10556 * 10557 * @QCA_WLAN_VENDOR_TWT_STATUS_OK: TWT request successfully completed 10558 * @QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_ENABLED: TWT not enabled 10559 * @QCA_WLAN_VENDOR_TWT_STATUS_USED_DIALOG_ID: TWT dialog ID is already used 10560 * @QCA_WLAN_VENDOR_TWT_STATUS_SESSION_BUSY: TWT session is busy 10561 * @QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST: TWT session does not exist 10562 * @QCA_WLAN_VENDOR_TWT_STATUS_NOT_SUSPENDED: TWT session not in suspend state 10563 * @QCA_WLAN_VENDOR_TWT_STATUS_INVALID_PARAM: Invalid parameters 10564 * @QCA_WLAN_VENDOR_TWT_STATUS_NOT_READY: FW not ready 10565 * @QCA_WLAN_VENDOR_TWT_STATUS_NO_RESOURCE: FW resource exhausted 10566 * @QCA_WLAN_VENDOR_TWT_STATUS_NO_ACK: Peer AP/STA did not ACK the 10567 * request/response frame 10568 * @QCA_WLAN_VENDOR_TWT_STATUS_NO_RESPONSE: Peer AP did not send the response 10569 * frame 10570 * @QCA_WLAN_VENDOR_TWT_STATUS_DENIED: AP did not accept the request 10571 * @QCA_WLAN_VENDOR_TWT_STATUS_UNKNOWN_ERROR: Adding TWT dialog failed due to an 10572 * unknown reason 10573 * @QCA_WLAN_VENDOR_TWT_STATUS_ALREADY_SUSPENDED: TWT session already in 10574 * suspend state 10575 * @QCA_WLAN_VENDOR_TWT_STATUS_IE_INVALID: FW has dropped the frame due to 10576 * invalid IE in the received TWT frame 10577 * @QCA_WLAN_VENDOR_TWT_STATUS_PARAMS_NOT_IN_RANGE: Parameters received from 10578 * the responder are not in the specified range 10579 * @QCA_WLAN_VENDOR_TWT_STATUS_PEER_INITIATED_TERMINATE: FW terminated the TWT 10580 * session due to request from the responder. Used on the TWT_TERMINATE 10581 * notification from the firmware. 10582 * @QCA_WLAN_VENDOR_TWT_STATUS_ROAM_INITIATED_TERMINATE: FW terminated the TWT 10583 * session due to roaming. Used on the TWT_TERMINATE notification from the 10584 * firmware. 10585 * @QCA_WLAN_VENDOR_TWT_STATUS_SCC_MCC_CONCURRENCY_TERMINATE: FW terminated the 10586 * TWT session due to SCC (Single Channel Concurrency) and MCC (Multi Channel 10587 * Concurrency). Used on the TWT_TERMINATE notification from the firmware. 10588 * @QCA_WLAN_VENDOR_TWT_STATUS_ROAMING_IN_PROGRESS: FW rejected the TWT setup 10589 * request due to roaming in progress. 10590 * @QCA_WLAN_VENDOR_TWT_STATUS_CHANNEL_SWITCH_IN_PROGRESS: FW rejected the TWT 10591 * setup request due to channel switch in progress. 10592 * @QCA_WLAN_VENDOR_TWT_STATUS_SCAN_IN_PROGRESS: FW rejected the TWT setup 10593 * request due to scan in progress. 10594 * QCA_WLAN_VENDOR_TWT_STATUS_POWER_SAVE_EXIT_TERMINATE: The driver requested to 10595 * terminate an existing TWT session on power save exit request from userspace. 10596 * Used on the TWT_TERMINATE notification from the driver/firmware. 10597 * @QCA_WLAN_VENDOR_TWT_STATUS_TWT_REQUIRED: The peer has set the TWT 10598 * required bit in its capabilities. 10599 * @QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_REQUIRED: The peer has cleared 10600 * the TWT required bit(1->0) in its capabilities. 10601 */ 10602 enum qca_wlan_vendor_twt_status { 10603 QCA_WLAN_VENDOR_TWT_STATUS_OK = 0, 10604 QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_ENABLED = 1, 10605 QCA_WLAN_VENDOR_TWT_STATUS_USED_DIALOG_ID = 2, 10606 QCA_WLAN_VENDOR_TWT_STATUS_SESSION_BUSY = 3, 10607 QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST = 4, 10608 QCA_WLAN_VENDOR_TWT_STATUS_NOT_SUSPENDED = 5, 10609 QCA_WLAN_VENDOR_TWT_STATUS_INVALID_PARAM = 6, 10610 QCA_WLAN_VENDOR_TWT_STATUS_NOT_READY = 7, 10611 QCA_WLAN_VENDOR_TWT_STATUS_NO_RESOURCE = 8, 10612 QCA_WLAN_VENDOR_TWT_STATUS_NO_ACK = 9, 10613 QCA_WLAN_VENDOR_TWT_STATUS_NO_RESPONSE = 10, 10614 QCA_WLAN_VENDOR_TWT_STATUS_DENIED = 11, 10615 QCA_WLAN_VENDOR_TWT_STATUS_UNKNOWN_ERROR = 12, 10616 QCA_WLAN_VENDOR_TWT_STATUS_ALREADY_SUSPENDED = 13, 10617 QCA_WLAN_VENDOR_TWT_STATUS_IE_INVALID = 14, 10618 QCA_WLAN_VENDOR_TWT_STATUS_PARAMS_NOT_IN_RANGE = 15, 10619 QCA_WLAN_VENDOR_TWT_STATUS_PEER_INITIATED_TERMINATE = 16, 10620 QCA_WLAN_VENDOR_TWT_STATUS_ROAM_INITIATED_TERMINATE = 17, 10621 QCA_WLAN_VENDOR_TWT_STATUS_SCC_MCC_CONCURRENCY_TERMINATE = 18, 10622 QCA_WLAN_VENDOR_TWT_STATUS_ROAMING_IN_PROGRESS = 19, 10623 QCA_WLAN_VENDOR_TWT_STATUS_CHANNEL_SWITCH_IN_PROGRESS = 20, 10624 QCA_WLAN_VENDOR_TWT_STATUS_SCAN_IN_PROGRESS = 21, 10625 QCA_WLAN_VENDOR_TWT_STATUS_POWER_SAVE_EXIT_TERMINATE = 22, 10626 QCA_WLAN_VENDOR_TWT_STATUS_TWT_REQUIRED = 23, 10627 QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_REQUIRED = 24, 10628 }; 10629 10630 /** 10631 * enum qca_wlan_vendor_attr_twt_resume - Represents attributes for 10632 * TWT (Target Wake Time) resume request. These attributes are sent as part of 10633 * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_RESUME and 10634 * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION. Also used by 10635 * attributes through %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT. 10636 * 10637 * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT: Optional (u8) 10638 * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT2_TWT: Optional (u32) 10639 * These attributes are used as the SP offset which is the offset from TSF after 10640 * which the wake happens. The units are in microseconds. Please note that 10641 * _NEXT_TWT is limited to u8 whereas _NEXT2_TWT takes the u32 data. 10642 * _NEXT2_TWT takes the precedence over _NEXT_TWT and thus the recommendation 10643 * is to use _NEXT2_TWT. If neither of these attributes is provided, the value 10644 * will be set to zero. 10645 * 10646 * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT_SIZE: Required (u32) 10647 * This attribute represents the next TWT subfield size. 10648 * Value 0 represents 0 bits, 1 represents 32 bits, 2 for 48 bits, 10649 * and 4 for 64 bits. 10650 * 10651 * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_FLOW_ID: Required (u8). 10652 * Flow ID is the unique identifier for each TWT session. This attribute 10653 * represents the respective TWT session to resume. 10654 * Flow ID values from 0 to 254 represent a single TWT session 10655 * Flow ID value of 255 represents all TWT sessions. 10656 * If an invalid dialog id is provided, status 10657 * QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST will be returned. 10658 * 10659 * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_MAC_ADDR: 6-byte MAC address 10660 * Represents the MAC address of the peer to which TWT Resume is 10661 * being sent. This is used in AP mode to represent the respective 10662 * client and is a required parameter. In STA mode, this is an optional 10663 * parameter 10664 */ 10665 enum qca_wlan_vendor_attr_twt_resume { 10666 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_INVALID = 0, 10667 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT = 1, 10668 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT_SIZE = 2, 10669 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_FLOW_ID = 3, 10670 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT2_TWT = 4, 10671 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_MAC_ADDR = 5, 10672 10673 /* keep last */ 10674 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_AFTER_LAST, 10675 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_MAX = 10676 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_AFTER_LAST - 1, 10677 }; 10678 10679 /** 10680 * enum qca_wlan_vendor_attr_twt_nudge - Represents attributes for 10681 * TWT (Target Wake Time) nudge request. TWT nudge is a combination of suspend 10682 * and resume in a single request. These attributes are sent as part of 10683 * %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT. 10684 * 10685 * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_FLOW_ID: Required (u8) 10686 * Flow ID is the unique identifier for each TWT session. This attribute 10687 * represents the respective TWT session to suspend and resume. 10688 * Flow ID values from 0 to 254 represent a single TWT session 10689 * Flow ID value of 255 represents all TWT sessions in TWT NUDGE request 10690 * and response. 10691 * If an invalid dialog id is provided, status 10692 * QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST will be returned. 10693 * 10694 * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME: Required (u32) 10695 * This attribute is used as the SP offset which is the offset from 10696 * TSF after which the wake happens. The units are in microseconds. 10697 * 10698 * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_NEXT_TWT_SIZE: Required (u32) 10699 * This attribute represents the next TWT subfield size. 10700 * Value 0 represents 0 bits, 1 represents 32 bits, 2 for 48 bits, 10701 * and 4 for 64 bits. 10702 * 10703 * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_MAC_ADDR: 6-byte MAC address 10704 * Represents the MAC address of the peer to which TWT Suspend and Resume is 10705 * being sent. This is used in AP mode to represent the respective 10706 * client and is a required parameter. In STA mode, this is an optional 10707 * parameter. 10708 * 10709 * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME_TSF: Optional (u64) 10710 * This field contains absolute TSF value of the time at which the TWT 10711 * session will be resumed. 10712 * 10713 * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_SP_START_OFFSET: Optional (s32) 10714 * This field will be used when device supports Flexible TWT. 10715 * This field contains an offset value by which to shift the starting time 10716 * of the next service period. The value of offset can be negative or positive. 10717 * If provided, this attribute will override 10718 * QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME. The units are in microseconds. 10719 * 10720 * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_PAD: Attribute used for padding for 64-bit 10721 * alignment. 10722 */ 10723 enum qca_wlan_vendor_attr_twt_nudge { 10724 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_INVALID = 0, 10725 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_FLOW_ID = 1, 10726 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME = 2, 10727 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_NEXT_TWT_SIZE = 3, 10728 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_MAC_ADDR = 4, 10729 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME_TSF = 5, 10730 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_SP_START_OFFSET = 6, 10731 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_PAD = 7, 10732 10733 /* keep last */ 10734 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_AFTER_LAST, 10735 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_MAX = 10736 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_AFTER_LAST - 1, 10737 }; 10738 10739 /** 10740 * enum qca_wlan_vendor_attr_twt_stats: Represents attributes for 10741 * TWT (Target Wake Time) get statistics and clear statistics request. 10742 * These attributes are sent as part of 10743 * %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT. 10744 * 10745 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_FLOW_ID: Required (u8) 10746 * Flow ID is the unique identifier for each TWT session. This attribute 10747 * represents the respective TWT session for get and clear TWT statistics. 10748 * Flow ID values from 0 to 254 represent a single TWT session 10749 * Flow ID value of 255 represents all TWT sessions in 10750 * 1) TWT GET STATISTICS request and response 10751 * 2) TWT CLEAR STATISTICS request 10752 * 10753 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAC_ADDR: 6-byte MAC address 10754 * Represents the MAC address of the peer for which TWT Statistics 10755 * is required. 10756 * In AP mode this is used to represent the respective 10757 * client and is a required parameter for 10758 * 1) TWT GET STATISTICS request and response 10759 * 2) TWT CLEAR STATISTICS request and response 10760 * In STA mode, this is an optional parameter. 10761 * 10762 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_SESSION_WAKE_DURATION: Required (u32) 10763 * This is the duration of the service period in microseconds. 10764 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware. 10765 * 10766 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVG_WAKE_DURATION: Required (u32) 10767 * Average of the actual wake duration observed so far. Unit is microseconds. 10768 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware. 10769 * 10770 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS: Required (u32) 10771 * The number of TWT service periods elapsed so far. 10772 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware. 10773 * 10774 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_MIN_WAKE_DURATION: Required (u32) 10775 * This is the minimum value of the wake duration observed across 10776 * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS. Unit is 10777 * microseconds. 10778 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware. 10779 * 10780 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAX_WAKE_DURATION: Required (u32) 10781 * This is the maximum value of wake duration observed across 10782 * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS. Unit is 10783 * microseconds. 10784 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware. 10785 * 10786 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_MPDU: Required (u32) 10787 * Average number of MPDUs transmitted successfully across 10788 * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS. 10789 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware. 10790 * 10791 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_MPDU: Required (u32) 10792 * Average number of MPDUs received successfully across 10793 * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS. 10794 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware. 10795 * 10796 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_PACKET_SIZE: Required (u32) 10797 * Average number of bytes transmitted successfully across 10798 * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS. 10799 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware. 10800 * 10801 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_PACKET_SIZE: Required (u32) 10802 * Average number of bytes received successfully across 10803 * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS. 10804 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware. 10805 * 10806 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_STATUS: Required (u32) 10807 * Status of the TWT GET STATISTICS request. 10808 * This contains status values in enum qca_wlan_vendor_twt_status 10809 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware. 10810 */ 10811 enum qca_wlan_vendor_attr_twt_stats { 10812 QCA_WLAN_VENDOR_ATTR_TWT_STATS_INVALID = 0, 10813 QCA_WLAN_VENDOR_ATTR_TWT_STATS_FLOW_ID = 1, 10814 QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAC_ADDR = 2, 10815 QCA_WLAN_VENDOR_ATTR_TWT_STATS_SESSION_WAKE_DURATION = 3, 10816 QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVG_WAKE_DURATION = 4, 10817 QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS = 5, 10818 QCA_WLAN_VENDOR_ATTR_TWT_STATS_MIN_WAKE_DURATION = 6, 10819 QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAX_WAKE_DURATION = 7, 10820 QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_MPDU = 8, 10821 QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_MPDU = 9, 10822 QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_PACKET_SIZE = 10, 10823 QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_PACKET_SIZE = 11, 10824 QCA_WLAN_VENDOR_ATTR_TWT_STATS_STATUS = 12, 10825 10826 /* keep last */ 10827 QCA_WLAN_VENDOR_ATTR_TWT_STATS_AFTER_LAST, 10828 QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAX = 10829 QCA_WLAN_VENDOR_ATTR_TWT_STATS_AFTER_LAST - 1, 10830 }; 10831 10832 /** 10833 * qca_wlan_twt_get_capa - Represents the bitmap of TWT capabilities 10834 * supported by the device and the peer. 10835 * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_GET_CAPABILITIES 10836 * 10837 * @QCA_WLAN_TWT_CAPA_REQUESTOR: TWT requestor support is advertised by 10838 * TWT non-scheduling STA. This capability is advertised in the HE 10839 * Capability/Extended Capabilities information element in the 10840 * Association Request frame by the device. 10841 * 10842 * @QCA_WLAN_TWT_CAPA_RESPONDER: TWT responder support is advertised by 10843 * the TWT scheduling AP. This capability is advertised in the Extended 10844 * Capabilities/HE Capabilities information element. 10845 * 10846 * @QCA_WLAN_TWT_CAPA_BROADCAST: On the requestor side, this indicates support 10847 * for the broadcast TWT functionality. On the responder side, this indicates 10848 * support for the role of broadcast TWT scheduling functionality. This 10849 * capability is advertised in the HE Capabilities information element. 10850 * 10851 * @QCA_WLAN_TWT_CAPA_TWT_FLEXIBLE: The device supports flexible TWT schedule. 10852 * This capability is advertised in the HE Capabilities information element. 10853 * 10854 * @QCA_WLAN_TWT_CAPA_REQUIRED: The TWT Required is advertised by AP to indicate 10855 * that it mandates the associated HE STAs to support TWT. This capability is 10856 * advertised by AP in the HE Operation Parameters field of the HE Operation 10857 * information element. 10858 */ 10859 enum qca_wlan_twt_capa { 10860 QCA_WLAN_TWT_CAPA_REQUESTOR = BIT(0), 10861 QCA_WLAN_TWT_CAPA_RESPONDER = BIT(1), 10862 QCA_WLAN_TWT_CAPA_BROADCAST = BIT(2), 10863 QCA_WLAN_TWT_CAPA_FLEXIBLE = BIT(3), 10864 QCA_WLAN_TWT_CAPA_REQUIRED = BIT(4), 10865 }; 10866 10867 /** 10868 * enum qca_wlan_vendor_attr_twt_capability - Represents attributes for TWT 10869 * get capabilities request type. Used by QCA_WLAN_TWT_GET_CAPABILITIES TWT 10870 * operation. 10871 * @QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MAC_ADDR: 6-byte MAC address 10872 * Represents the MAC address of the peer for which the TWT capabilities 10873 * are being queried. This is used in AP mode to represent the respective 10874 * client. In STA mode, this is an optional parameter. 10875 * 10876 * @QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_SELF: (u16). 10877 * Self TWT capabilities. Carries a bitmap of TWT capabilities specified in 10878 * enum qca_wlan_twt_capa. 10879 * @QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_PEER: (u16). 10880 * Peer TWT capabilities. Carries a bitmap of TWT capabilities specified in 10881 * enum qca_wlan_twt_capa. 10882 */ 10883 enum qca_wlan_vendor_attr_twt_capability { 10884 QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_INVALID = 0, 10885 QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MAC_ADDR = 1, 10886 QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_SELF = 2, 10887 QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_PEER = 3, 10888 10889 /* keep last */ 10890 QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_AFTER_LAST, 10891 QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MAX = 10892 QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_AFTER_LAST - 1, 10893 }; 10894 10895 /** 10896 * enum qca_wlan_vendor_attr_twt_set_param: Represents attributes for 10897 * TWT (Target Wake Time) related parameters. It is used when 10898 * %QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION is set to %QCA_WLAN_TWT_SET_PARAM. 10899 * These attributes are sent as part of %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT. 10900 * 10901 * @QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AP_AC_VALUE: Optional (u8) 10902 * This attribute configures AC parameters to be used for all TWT 10903 * sessions in AP mode. 10904 * Uses the enum qca_wlan_ac_type values. 10905 */ 10906 enum qca_wlan_vendor_attr_twt_set_param { 10907 QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_INVALID = 0, 10908 QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AP_AC_VALUE = 1, 10909 10910 /* keep last */ 10911 QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AFTER_LAST, 10912 QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_MAX = 10913 QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AFTER_LAST - 1, 10914 }; 10915 10916 /** 10917 * enum qca_wlan_vendor_twt_setup_resp_type - Represents the response type by 10918 * the TWT responder 10919 * 10920 * @QCA_WLAN_VENDOR_TWT_RESP_ALTERNATE: TWT responder suggests TWT 10921 * parameters that are different from TWT requesting STA suggested 10922 * or demanded TWT parameters 10923 * @QCA_WLAN_VENDOR_TWT_RESP_DICTATE: TWT responder demands TWT 10924 * parameters that are different from TWT requesting STA TWT suggested 10925 * or demanded parameters 10926 * @QCA_WLAN_VENDOR_TWT_RESP_REJECT: TWT responder rejects TWT 10927 * setup 10928 * @QCA_WLAN_VENDOR_TWT_RESP_ACCEPT: TWT responder accepts the TWT 10929 * setup. 10930 */ 10931 enum qca_wlan_vendor_twt_setup_resp_type { 10932 QCA_WLAN_VENDOR_TWT_RESP_ALTERNATE = 1, 10933 QCA_WLAN_VENDOR_TWT_RESP_DICTATE = 2, 10934 QCA_WLAN_VENDOR_TWT_RESP_REJECT = 3, 10935 QCA_WLAN_VENDOR_TWT_RESP_ACCEPT = 4, 10936 }; 10937 10938 /** 10939 * enum qca_wlan_vendor_twt_setup_req_type - Required (u8) 10940 * Represents the setup type being requested for TWT. 10941 * @QCA_WLAN_VENDOR_TWT_SETUP_REQUEST: STA is not specifying all the TWT 10942 * parameters but relying on AP to fill the parameters during the negotiation. 10943 * @QCA_WLAN_VENDOR_TWT_SETUP_SUGGEST: STA will provide all the suggested 10944 * values which the AP may accept or AP may provide alternative parameters 10945 * which the STA may accept. 10946 * @QCA_WLAN_VENDOR_TWT_SETUP_DEMAND: STA is not willing to accept any 10947 * alternate parameters than the requested ones. 10948 */ 10949 enum qca_wlan_vendor_twt_setup_req_type { 10950 QCA_WLAN_VENDOR_TWT_SETUP_REQUEST = 1, 10951 QCA_WLAN_VENDOR_TWT_SETUP_SUGGEST = 2, 10952 QCA_WLAN_VENDOR_TWT_SETUP_DEMAND = 3, 10953 }; 10954 10955 /** 10956 * enum qca_wlan_roam_scan_event_type - Type of roam scan event 10957 * 10958 * Indicates the type of roam scan event sent by firmware/driver. 10959 * 10960 * @QCA_WLAN_ROAM_SCAN_TRIGGER_EVENT: Roam scan trigger event type. 10961 * @QCA_WLAN_ROAM_SCAN_STOP_EVENT: Roam scan stopped event type. 10962 */ 10963 enum qca_wlan_roam_scan_event_type { 10964 QCA_WLAN_ROAM_SCAN_TRIGGER_EVENT = 0, 10965 QCA_WLAN_ROAM_SCAN_STOP_EVENT = 1, 10966 }; 10967 10968 /** 10969 * enum qca_wlan_roam_scan_trigger_reason - Roam scan trigger reason 10970 * 10971 * Indicates the reason for triggering roam scan by firmware/driver. 10972 * 10973 * @QCA_WLAN_ROAM_SCAN_TRIGGER_REASON_LOW_RSSI: Due to low RSSI of current AP. 10974 * @QCA_WLAN_ROAM_SCAN_TRIGGER_REASON_HIGH_PER: Due to high packet error rate. 10975 */ 10976 enum qca_wlan_roam_scan_trigger_reason { 10977 QCA_WLAN_ROAM_SCAN_TRIGGER_REASON_LOW_RSSI = 0, 10978 QCA_WLAN_ROAM_SCAN_TRIGGER_REASON_HIGH_PER = 1, 10979 }; 10980 10981 /** 10982 * enum qca_wlan_vendor_attr_roam_scan - Vendor subcmd attributes to report 10983 * roam scan related details from driver/firmware to user space. enum values 10984 * are used for NL attributes sent with 10985 * %QCA_NL80211_VENDOR_SUBCMD_ROAM_SCAN_EVENT sub command. 10986 */ 10987 enum qca_wlan_vendor_attr_roam_scan { 10988 QCA_WLAN_VENDOR_ATTR_ROAM_SCAN_INVALID = 0, 10989 /* Encapsulates type of roam scan event being reported. enum 10990 * qca_wlan_roam_scan_event_type describes the possible range of 10991 * values. u32 attribute. 10992 */ 10993 QCA_WLAN_VENDOR_ATTR_ROAM_SCAN_EVENT_TYPE = 1, 10994 /* Encapsulates reason for triggering roam scan. enum 10995 * qca_wlan_roam_scan_trigger_reason describes the possible range of 10996 * values. u32 attribute. 10997 */ 10998 QCA_WLAN_VENDOR_ATTR_ROAM_SCAN_TRIGGER_REASON = 2, 10999 11000 /* keep last */ 11001 QCA_WLAN_VENDOR_ATTR_ROAM_SCAN_AFTER_LAST, 11002 QCA_WLAN_VENDOR_ATTR_ROAM_SCAN_MAX = 11003 QCA_WLAN_VENDOR_ATTR_ROAM_SCAN_AFTER_LAST - 1, 11004 }; 11005 11006 /** 11007 * enum qca_wlan_vendor_cfr_data_transport_modes - Defines QCA vendor CFR data 11008 * transport modes and is used by the attribute 11009 * QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE as a part of the vendor 11010 * command QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG. 11011 * @QCA_WLAN_VENDOR_CFR_DATA_RELAY_FS: Use relayfs to send CFR data. 11012 * @QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS: Use netlink events to send CFR 11013 * data. The data shall be encapsulated within 11014 * QCA_WLAN_VENDOR_ATTR_PEER_CFR_RESP_DATA along with the vendor sub command 11015 * QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG as an asynchronous event. 11016 */ 11017 enum qca_wlan_vendor_cfr_data_transport_modes { 11018 QCA_WLAN_VENDOR_CFR_DATA_RELAY_FS = 0, 11019 QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS = 1, 11020 }; 11021 11022 /** 11023 * enum qca_wlan_vendor_cfr_method - QCA vendor CFR methods used by 11024 * attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_METHOD as part of vendor 11025 * command QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG. 11026 * @QCA_WLAN_VENDOR_CFR_METHOD_QOS_NULL: CFR method using QoS Null frame 11027 * @QCA_WLAN_VENDOR_CFR_QOS_NULL_WITH_PHASE: CFR method using QoS Null frame 11028 * with phase 11029 * @QCA_WLAN_VENDOR_CFR_PROBE_RESPONSE: CFR method using Probe Response frame 11030 */ 11031 enum qca_wlan_vendor_cfr_method { 11032 QCA_WLAN_VENDOR_CFR_METHOD_QOS_NULL = 0, 11033 QCA_WLAN_VENDOR_CFR_QOS_NULL_WITH_PHASE = 1, 11034 QCA_WLAN_VENDOR_CFR_PROBE_RESPONSE = 2, 11035 }; 11036 11037 /** 11038 * enum qca_wlan_vendor_cfr_capture_type - QCA vendor CFR capture type used by 11039 * attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_TYPE. 11040 * @QCA_WLAN_VENDOR_CFR_DIRECT_FTM: Filter directed FTM ACK frames. 11041 * @QCA_WLAN_VENDOR_CFR_ALL_FTM_ACK: Filter all FTM ACK frames. 11042 * @QCA_WLAN_VENDOR_CFR_DIRECT_NDPA_NDP: Filter NDPA NDP directed frames. 11043 * @QCA_WLAN_VENDOR_CFR_TA_RA: Filter frames based on TA/RA/Subtype which 11044 * is provided by one or more of below attributes: 11045 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA 11046 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA 11047 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK 11048 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK 11049 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER 11050 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER 11051 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER 11052 * @QCA_WLAN_CFR_ALL_PACKET: Filter all packets. 11053 * @QCA_WLAN_VENDOR_CFR_NDPA_NDP_ALL: Filter all NDPA NDP frames. 11054 */ 11055 enum qca_wlan_vendor_cfr_capture_type { 11056 QCA_WLAN_VENDOR_CFR_DIRECT_FTM = 0, 11057 QCA_WLAN_VENDOR_CFR_ALL_FTM_ACK = 1, 11058 QCA_WLAN_VENDOR_CFR_DIRECT_NDPA_NDP = 2, 11059 QCA_WLAN_VENDOR_CFR_TA_RA = 3, 11060 QCA_WLAN_VENDOR_CFR_ALL_PACKET = 4, 11061 QCA_WLAN_VENDOR_CFR_NDPA_NDP_ALL = 5, 11062 }; 11063 11064 /** 11065 * enum qca_wlan_vendor_peer_cfr_capture_attr - Used by the vendor command 11066 * QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG to configure peer 11067 * Channel Frequency Response capture parameters and enable periodic CFR 11068 * capture. 11069 * 11070 * @QCA_WLAN_VENDOR_ATTR_CFR_PEER_MAC_ADDR: Optional (6-byte MAC address) 11071 * MAC address of peer. This is for CFR version 1 only. 11072 * 11073 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE: Required (flag) 11074 * Enable peer CFR capture. This attribute is mandatory to enable peer CFR 11075 * capture. If this attribute is not present, peer CFR capture is disabled. 11076 * 11077 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_BANDWIDTH: Optional (u8) 11078 * BW of measurement, attribute uses the values in enum nl80211_chan_width 11079 * Supported values: 20, 40, 80, 80+80, 160. 11080 * Note that all targets may not support all bandwidths. 11081 * This attribute is mandatory for version 1 if attribute 11082 * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used. 11083 * 11084 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_PERIODICITY: Optional (u32) 11085 * Periodicity of CFR measurement in milliseconds. 11086 * Periodicity should be a multiple of Base timer. 11087 * Current Base timer value supported is 10 milliseconds (default). 11088 * 0 for one shot capture. 11089 * This attribute is mandatory for version 1 if attribute 11090 * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used. 11091 * 11092 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_METHOD: Optional (u8) 11093 * Method used to capture Channel Frequency Response. 11094 * Attribute uses the values defined in enum qca_wlan_vendor_cfr_method. 11095 * This attribute is mandatory for version 1 if attribute 11096 * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used. 11097 * 11098 * @QCA_WLAN_VENDOR_ATTR_PERIODIC_CFR_CAPTURE_ENABLE: Optional (flag) 11099 * Enable periodic CFR capture. 11100 * This attribute is mandatory for version 1 to enable Periodic CFR capture. 11101 * If this attribute is not present, periodic CFR capture is disabled. 11102 * 11103 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_VERSION: Optional (u8) 11104 * Value is 1 or 2 since there are two versions of CFR capture. Two versions 11105 * can't be enabled at same time. This attribute is mandatory if target 11106 * support both versions and use one of them. 11107 * 11108 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE_GROUP_BITMAP: Optional (u32) 11109 * This attribute is mandatory for version 2 if 11110 * QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY is used. 11111 * Bits 15:0 bitfield indicates which group is to be enabled. 11112 * Bits 31:16 Reserved for future use. 11113 * 11114 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_DURATION: Optional (u32) 11115 * CFR capture duration in microsecond. This attribute is mandatory for 11116 * version 2 if attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_INTERVAL is used. 11117 * 11118 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_INTERVAL: Optional (u32) 11119 * CFR capture interval in microsecond. This attribute is mandatory for 11120 * version 2 if attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_DURATION is used. 11121 * 11122 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_TYPE: Optional (u32) 11123 * CFR capture type is defined in enum qca_wlan_vendor_cfr_capture_type. 11124 * This attribute is mandatory for version 2. 11125 * 11126 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_UL_MU_MASK: Optional (u64) 11127 * Bitfield indicating which user in the current UL MU transmissions are 11128 * enabled for CFR capture. Bits 36 to 0 indicate user indexes for 37 users in 11129 * a UL MU transmission. If bit 0 is set, the CFR capture will happen for user 11130 * index 0 in the current UL MU transmission. If bits 0 and 2 are set, CFR 11131 * capture for UL MU TX corresponds to user indices 0 and 2. Bits 63:37 are 11132 * reserved for future use. This is for CFR version 2 only. 11133 * 11134 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_FREEZE_TLV_DELAY_COUNT: Optional (u32) 11135 * Indicates the number of consecutive RX frames to be skipped before CFR 11136 * capture is enabled again. This is for CFR version 2 only. 11137 * 11138 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TABLE: Nested attribute containing 11139 * one or more %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY attributes. 11140 * 11141 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY: Nested attribute containing 11142 * the following group attributes: 11143 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NUMBER, 11144 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA, 11145 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA, 11146 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK, 11147 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK, 11148 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NSS, 11149 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_BW, 11150 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER, 11151 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER, 11152 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER 11153 * 11154 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NUMBER: Optional (u32) 11155 * Target supports multiple groups for some configurations. The group number 11156 * can be any value between 0 and 15. This is for CFR version 2 only. 11157 * 11158 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA: Optional (6-byte MAC address) 11159 * Transmitter address which is used to filter frames. This MAC address takes 11160 * effect with QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK. This is for CFR 11161 * version 2 only. 11162 * 11163 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA: Optional (6-byte MAC address) 11164 * Receiver address which is used to filter frames. This MAC address takes 11165 * effect with QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK. This is for CFR 11166 * version 2 only. 11167 * 11168 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK: Optional (6-byte MAC address) 11169 * Mask of transmitter address which is used to filter frames. This is for CFR 11170 * version 2 only. 11171 * 11172 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK: Optional (6-byte MAC address) 11173 * Mask of receiver address which is used to filter frames. This is for CFR 11174 * version 2 only. 11175 * 11176 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NSS: Optional (u32) 11177 * Indicates frames with a specific NSS will be filtered for CFR capture. 11178 * This is for CFR version 2 only. This is a bitmask. Bits 7:0 request CFR 11179 * capture to be done for frames matching the NSS specified within this bitmask. 11180 * Bits 31:8 are reserved for future use. Bits 7:0 map to NSS: 11181 * bit 0 : NSS 1 11182 * bit 1 : NSS 2 11183 * ... 11184 * bit 7 : NSS 8 11185 * 11186 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_BW: Optional (u32) 11187 * Indicates frames with a specific bandwidth will be filtered for CFR capture. 11188 * This is for CFR version 2 only. This is a bitmask. Bits 4:0 request CFR 11189 * capture to be done for frames matching the bandwidths specified within this 11190 * bitmask. Bits 31:5 are reserved for future use. Bits 4:0 map to bandwidth 11191 * numerated in enum nl80211_band (although not all bands may be supported 11192 * by a given device). 11193 * 11194 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER: Optional (u32) 11195 * Management frames matching the subtype filter categories will be filtered in 11196 * by MAC for CFR capture. This is a bitmask in which each bit represents the 11197 * corresponding Management frame subtype value per IEEE Std 802.11-2016, 11198 * 9.2.4.1.3 Type and Subtype subfields. For example, Beacon frame control type 11199 * is 8 and its value is 1 << 8 = 0x100. This is for CFR version 2 only. 11200 * 11201 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER: Optional (u32) 11202 * Control frames matching the subtype filter categories will be filtered in by 11203 * MAC for CFR capture. This is a bitmask in which each bit represents the 11204 * corresponding Control frame subtype value per IEEE Std 802.11-2016, 11205 * 9.2.4.1.3 Type and Subtype subfields. This is for CFR version 2 only. 11206 * 11207 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER: Optional (u32) 11208 * Data frames matching the subtype filter categories will be filtered in by 11209 * MAC for CFR capture. This is a bitmask in which each bit represents the 11210 * corresponding Data frame subtype value per IEEE Std 802.11-2016, 11211 * 9.2.4.1.3 Type and Subtype subfields. This is for CFR version 2 only. 11212 * 11213 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE: Optional (u8) 11214 * Userspace can use this attribute to specify the driver about which transport 11215 * mode shall be used by the driver to send CFR data to userspace. Uses values 11216 * from enum qca_wlan_vendor_cfr_data_transport_modes. When this attribute is 11217 * not present, the driver shall use the default transport mechanism which is 11218 * QCA_WLAN_VENDOR_CFR_DATA_RELAY_FS. 11219 * 11220 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_RECEIVER_PID: Optional (u32) 11221 * Userspace can use this attribute to specify the nl port id of the application 11222 * which receives the CFR data and processes it further so that the drivers can 11223 * unicast the netlink events to a specific application. Optionally included 11224 * when QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE is set to 11225 * QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS, not required otherwise. The drivers 11226 * shall multicast the netlink events when this attribute is not included. 11227 * 11228 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_RESP_DATA: Required (NLA_BINARY). 11229 * This attribute will be used by the driver to encapsulate and send CFR data 11230 * to userspace along with QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG as an 11231 * asynchronous event when the driver is configured to send CFR data using 11232 * netlink events with %QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS. 11233 * 11234 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_PAD: Attribute used for padding for 64-bit 11235 * alignment. 11236 */ 11237 enum qca_wlan_vendor_peer_cfr_capture_attr { 11238 QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_INVALID = 0, 11239 QCA_WLAN_VENDOR_ATTR_CFR_PEER_MAC_ADDR = 1, 11240 QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE = 2, 11241 QCA_WLAN_VENDOR_ATTR_PEER_CFR_BANDWIDTH = 3, 11242 QCA_WLAN_VENDOR_ATTR_PEER_CFR_PERIODICITY = 4, 11243 QCA_WLAN_VENDOR_ATTR_PEER_CFR_METHOD = 5, 11244 QCA_WLAN_VENDOR_ATTR_PERIODIC_CFR_CAPTURE_ENABLE = 6, 11245 QCA_WLAN_VENDOR_ATTR_PEER_CFR_VERSION = 7, 11246 QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE_GROUP_BITMAP = 8, 11247 QCA_WLAN_VENDOR_ATTR_PEER_CFR_DURATION = 9, 11248 QCA_WLAN_VENDOR_ATTR_PEER_CFR_INTERVAL = 10, 11249 QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_TYPE = 11, 11250 QCA_WLAN_VENDOR_ATTR_PEER_CFR_UL_MU_MASK = 12, 11251 QCA_WLAN_VENDOR_ATTR_PEER_CFR_FREEZE_TLV_DELAY_COUNT = 13, 11252 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TABLE = 14, 11253 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY = 15, 11254 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NUMBER = 16, 11255 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA = 17, 11256 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA = 18, 11257 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK = 19, 11258 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK = 20, 11259 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NSS = 21, 11260 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_BW = 22, 11261 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER = 23, 11262 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER = 24, 11263 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER = 25, 11264 QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE = 26, 11265 QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_RECEIVER_PID = 27, 11266 QCA_WLAN_VENDOR_ATTR_PEER_CFR_RESP_DATA = 28, 11267 QCA_WLAN_VENDOR_ATTR_PEER_CFR_PAD = 29, 11268 11269 /* Keep last */ 11270 QCA_WLAN_VENDOR_ATTR_PEER_CFR_AFTER_LAST, 11271 QCA_WLAN_VENDOR_ATTR_PEER_CFR_MAX = 11272 QCA_WLAN_VENDOR_ATTR_PEER_CFR_AFTER_LAST - 1, 11273 }; 11274 11275 /** 11276 * enum qca_wlan_throughput_level - Current throughput level 11277 * 11278 * Indicates the current level of throughput calculated by the driver. The 11279 * driver may choose different thresholds to decide whether the throughput level 11280 * is low or medium or high based on variety of parameters like physical link 11281 * capacity of the current connection, the number of packets being dispatched 11282 * per second, etc. The throughput level events might not be consistent with the 11283 * actual current throughput value being observed. 11284 * 11285 * @QCA_WLAN_THROUGHPUT_LEVEL_LOW: Low level of throughput 11286 * @QCA_WLAN_THROUGHPUT_LEVEL_MEDIUM: Medium level of throughput 11287 * @QCA_WLAN_THROUGHPUT_LEVEL_HIGH: High level of throughput 11288 */ 11289 enum qca_wlan_throughput_level { 11290 QCA_WLAN_THROUGHPUT_LEVEL_LOW = 0, 11291 QCA_WLAN_THROUGHPUT_LEVEL_MEDIUM = 1, 11292 QCA_WLAN_THROUGHPUT_LEVEL_HIGH = 2, 11293 }; 11294 11295 /** 11296 * enum qca_wlan_vendor_attr_throughput_change - Vendor subcmd attributes to 11297 * report throughput changes from the driver to user space. enum values are used 11298 * for netlink attributes sent with 11299 * %QCA_NL80211_VENDOR_SUBCMD_THROUGHPUT_CHANGE_EVENT sub command. 11300 */ 11301 enum qca_wlan_vendor_attr_throughput_change { 11302 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_INVALID = 0, 11303 /* Indicates the direction of throughput in which the change is being 11304 * reported. u8 attribute. Value is 0 for TX and 1 for RX. 11305 */ 11306 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_DIRECTION = 1, 11307 /* Indicates the newly observed throughput level. enum 11308 * qca_wlan_throughput_level describes the possible range of values. 11309 * u8 attribute. 11310 */ 11311 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_THROUGHPUT_LEVEL = 2, 11312 /* Indicates the driver's guidance on the new value to be set to 11313 * kernel's TCP parameter tcp_limit_output_bytes. u32 attribute. The 11314 * driver may optionally include this attribute. 11315 */ 11316 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_LIMIT_OUTPUT_BYTES = 3, 11317 /* Indicates the driver's guidance on the new value to be set to 11318 * kernel's TCP parameter tcp_adv_win_scale. s8 attribute. Possible 11319 * values are from -31 to 31. The driver may optionally include this 11320 * attribute. 11321 */ 11322 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_ADV_WIN_SCALE = 4, 11323 /* Indicates the driver's guidance on the new value to be set to 11324 * kernel's TCP parameter tcp_delack_seg. u32 attribute. The driver may 11325 * optionally include this attribute. 11326 */ 11327 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_DELACK_SEG = 5, 11328 11329 /* keep last */ 11330 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_AFTER_LAST, 11331 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_MAX = 11332 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_AFTER_LAST - 1, 11333 }; 11334 11335 /** 11336 * enum qca_coex_config_profiles - This enum defines different types of 11337 * traffic streams that can be prioritized one over the other during coex 11338 * scenarios. 11339 * The types defined in this enum are categorized in the below manner. 11340 * 0 - 31 values corresponds to WLAN 11341 * 32 - 63 values corresponds to BT 11342 * 64 - 95 values corresponds to Zigbee 11343 * @QCA_WIFI_STA_DISCOVERY: Prioritize discovery frames for WLAN STA 11344 * @QCA_WIFI_STA_CONNECTION: Prioritize connection frames for WLAN STA 11345 * @QCA_WIFI_STA_CLASS_3_MGMT: Prioritize class 3 mgmt frames for WLAN STA 11346 * @QCA_WIFI_STA_DATA : Prioritize data frames for WLAN STA 11347 * @QCA_WIFI_STA_ALL: Priritize all frames for WLAN STA 11348 * @QCA_WIFI_SAP_DISCOVERY: Prioritize discovery frames for WLAN SAP 11349 * @QCA_WIFI_SAP_CONNECTION: Prioritize connection frames for WLAN SAP 11350 * @QCA_WIFI_SAP_CLASS_3_MGMT: Prioritize class 3 mgmt frames for WLAN SAP 11351 * @QCA_WIFI_SAP_DATA: Prioritize data frames for WLAN SAP 11352 * @QCA_WIFI_SAP_ALL: Prioritize all frames for WLAN SAP 11353 * @QCA_BT_A2DP: Prioritize BT A2DP 11354 * @QCA_BT_BLE: Prioritize BT BLE 11355 * @QCA_BT_SCO: Prioritize BT SCO 11356 * @QCA_ZB_LOW: Prioritize Zigbee Low 11357 * @QCA_ZB_HIGH: Prioritize Zigbee High 11358 */ 11359 enum qca_coex_config_profiles { 11360 /* 0 - 31 corresponds to WLAN */ 11361 QCA_WIFI_STA_DISCOVERY = 0, 11362 QCA_WIFI_STA_CONNECTION = 1, 11363 QCA_WIFI_STA_CLASS_3_MGMT = 2, 11364 QCA_WIFI_STA_DATA = 3, 11365 QCA_WIFI_STA_ALL = 4, 11366 QCA_WIFI_SAP_DISCOVERY = 5, 11367 QCA_WIFI_SAP_CONNECTION = 6, 11368 QCA_WIFI_SAP_CLASS_3_MGMT = 7, 11369 QCA_WIFI_SAP_DATA = 8, 11370 QCA_WIFI_SAP_ALL = 9, 11371 QCA_WIFI_CASE_MAX = 31, 11372 /* 32 - 63 corresponds to BT */ 11373 QCA_BT_A2DP = 32, 11374 QCA_BT_BLE = 33, 11375 QCA_BT_SCO = 34, 11376 QCA_BT_CASE_MAX = 63, 11377 /* 64 - 95 corresponds to Zigbee */ 11378 QCA_ZB_LOW = 64, 11379 QCA_ZB_HIGH = 65, 11380 QCA_ZB_CASE_MAX = 95, 11381 /* 0xff is default value if the u8 profile value is not set. */ 11382 QCA_COEX_CONFIG_PROFILE_DEFAULT_VALUE = 255 11383 }; 11384 11385 /** 11386 * enum qca_vendor_attr_coex_config_types - Coex configurations types. 11387 * This enum defines the valid set of values of coex configuration types. These 11388 * values may used by attribute 11389 * %QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE. 11390 * 11391 * @QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_RESET: Reset all the 11392 * weights to default values. 11393 * @QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_START: Start to config 11394 * weights with configurability value. 11395 */ 11396 enum qca_vendor_attr_coex_config_types { 11397 QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_INVALID = 0, 11398 QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_RESET = 1, 11399 QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_START = 2, 11400 }; 11401 11402 /** 11403 * enum qca_vendor_attr_coex_config - Specifies vendor coex config attributes 11404 * 11405 * @QCA_VENDOR_ATTR_COEX_CONFIG_PROFILES: This attribute contains variable 11406 * length array of 8-bit values from enum qca_coex_config_profiles. 11407 * FW will prioritize the profiles in the order given in the array encapsulated 11408 * in this attribute. 11409 * For example: 11410 * ----------------------------------------------------------------------- 11411 * | 1 | 34 | 32 | 65 | 11412 * ----------------------------------------------------------------------- 11413 * If the attribute contains the values defined in above array then it means 11414 * 1) Wifi STA connection has priority over BT_SCO, BT_A2DP and ZIGBEE HIGH. 11415 * 2) BT_SCO has priority over BT_A2DP. 11416 * 3) BT_A2DP has priority over ZIGBEE HIGH. 11417 * Profiles which are not listed in this array shall not be preferred over the 11418 * profiles which are listed in the array as a part of this attribute. 11419 */ 11420 enum qca_vendor_attr_coex_config { 11421 QCA_VENDOR_ATTR_COEX_CONFIG_INVALID = 0, 11422 QCA_VENDOR_ATTR_COEX_CONFIG_PROFILES = 1, 11423 11424 /* Keep last */ 11425 QCA_VENDOR_ATTR_COEX_CONFIG_AFTER_LAST, 11426 QCA_VENDOR_ATTR_COEX_CONFIG_MAX = 11427 QCA_VENDOR_ATTR_COEX_CONFIG_AFTER_LAST - 1, 11428 }; 11429 11430 /** 11431 * enum qca_vendor_attr_coex_config_three_way - Specifies vendor coex config 11432 * attributes 11433 * Attributes for data used by QCA_NL80211_VENDOR_SUBCMD_COEX_CONFIG 11434 * 11435 * QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE: u32 attribute. 11436 * Indicate config type. 11437 * The config types are 32-bit values from qca_vendor_attr_coex_config_types 11438 * 11439 * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_1: u32 attribute. 11440 * Indicate the Priority 1 profiles. 11441 * The profiles are 8-bit values from enum qca_coex_config_profiles. 11442 * In same priority level, maximum to 4 profiles can be set here. 11443 * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_2: u32 attribute. 11444 * Indicate the Priority 2 profiles. 11445 * The profiles are 8-bit values from enum qca_coex_config_profiles. 11446 * In same priority level, maximum to 4 profiles can be set here. 11447 * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_3: u32 attribute. 11448 * Indicate the Priority 3 profiles. 11449 * The profiles are 8-bit values from enum qca_coex_config_profiles. 11450 * In same priority level, maximum to 4 profiles can be set here. 11451 * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_4: u32 attribute. 11452 * Indicate the Priority 4 profiles. 11453 * The profiles are 8-bit values from enum qca_coex_config_profiles. 11454 * In same priority level, maximum to 4 profiles can be set here. 11455 * NOTE: 11456 * Limitations for QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_x priority 11457 * arrangement: 11458 * 1: In the same u32 attribute (priority x), the profiles enum values own 11459 * same priority level. 11460 * 2: 0xff is default value if the u8 profile value is not set. 11461 * 3: max to 4 rules/profiles in same priority level. 11462 * 4: max to 4 priority level (priority 1 - priority 4) 11463 * 5: one priority level only supports one scenario from WLAN/BT/ZB, 11464 * hybrid rules not support. 11465 * 6: if WMI_COEX_CONFIG_THREE_WAY_COEX_RESET called, priority x will 11466 * remain blank to reset all parameters. 11467 * For example: 11468 * 11469 * If the attributes as follow: 11470 * priority 1: 11471 * ------------------------------------ 11472 * | 0xff | 0 | 1 | 2 | 11473 * ------------------------------------ 11474 * priority 2: 11475 * ------------------------------------- 11476 * | 0xff | 0xff | 0xff | 32 | 11477 * ------------------------------------- 11478 * priority 3: 11479 * ------------------------------------- 11480 * | 0xff | 0xff | 0xff | 65 | 11481 * ------------------------------------- 11482 * then it means: 11483 * 1: WIFI_STA_DISCOVERY, WIFI_STA_CLASS_3_MGMT and WIFI_STA_CONNECTION 11484 * owns same priority level. 11485 * 2: WIFI_STA_DISCOVERY, WIFI_STA_CLASS_3_MGMT and WIFI_STA_CONNECTION 11486 * has priority over BT_A2DP and ZB_HIGH. 11487 * 3: BT_A2DP has priority over ZB_HIGH. 11488 */ 11489 enum qca_vendor_attr_coex_config_three_way { 11490 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_INVALID = 0, 11491 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE = 1, 11492 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_1 = 2, 11493 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_2 = 3, 11494 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_3 = 4, 11495 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_4 = 5, 11496 11497 /* Keep last */ 11498 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_AFTER_LAST, 11499 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_MAX = 11500 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_AFTER_LAST - 1, 11501 }; 11502 11503 /** 11504 * enum qca_wlan_vendor_attr_link_properties - Represent the link properties. 11505 * 11506 * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR: MAC address of the peer 11507 * (STA/AP) for the connected link. 11508 * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_STA_FLAGS: Attribute containing a 11509 * &struct nl80211_sta_flag_update for the respective connected link. MAC 11510 * address of the peer represented by 11511 * QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR. 11512 */ 11513 enum qca_wlan_vendor_attr_link_properties { 11514 QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_INVALID = 0, 11515 /* 1 - 3 are reserved */ 11516 QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR = 4, 11517 QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_STA_FLAGS = 5, 11518 11519 /* Keep last */ 11520 QCA_VENDOR_ATTR_LINK_PROPERTIES_AFTER_LAST, 11521 QCA_VENDOR_ATTR_LINK_PROPERTIES_MAX = 11522 QCA_VENDOR_ATTR_LINK_PROPERTIES_AFTER_LAST - 1, 11523 }; 11524 11525 /** 11526 * enum qca_vendor_attr_peer_stats_cache_type - Represents peer stats cache type 11527 * This enum defines the valid set of values of peer stats cache types. These 11528 * values are used by attribute 11529 * %QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE. 11530 * 11531 * @QCA_WLAN_VENDOR_ATTR_PEER_TX_RATE_STATS: Represents peer TX rate statistics 11532 * @QCA_WLAN_VENDOR_ATTR_PEER_RX_RATE_STATS: Represents peer RX rate statistics 11533 * @QCA_WLAN_VENDOR_ATTR_PEER_TX_SOJOURN_STATS: Represents peer TX sojourn 11534 * statistics 11535 */ 11536 enum qca_vendor_attr_peer_stats_cache_type { 11537 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE_INVALID = 0, 11538 11539 QCA_WLAN_VENDOR_ATTR_PEER_TX_RATE_STATS, 11540 QCA_WLAN_VENDOR_ATTR_PEER_RX_RATE_STATS, 11541 QCA_WLAN_VENDOR_ATTR_PEER_TX_SOJOURN_STATS, 11542 }; 11543 11544 /** 11545 * enum qca_wlan_vendor_attr_peer_stats_cache_params - This enum defines 11546 * attributes required for QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH 11547 * Information in these attributes is used to flush peer rate statistics from 11548 * the driver to user application. 11549 * 11550 * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE: Unsigned 32-bit attribute 11551 * Indicate peer statistics cache type. 11552 * The statistics types are 32-bit values from 11553 * enum qca_vendor_attr_peer_stats_cache_type. 11554 * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_MAC: Unsigned 8-bit array 11555 * of size 6 octets, representing the peer MAC address. 11556 * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_DATA: Opaque data attribute 11557 * containing buffer of statistics to send to application layer entity. 11558 * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_COOKIE: Unsigned 64-bit attribute 11559 * representing a cookie for peer unique session. 11560 * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PAD: Attribute used for padding for 11561 * 64-bit alignment. 11562 */ 11563 enum qca_wlan_vendor_attr_peer_stats_cache_params { 11564 QCA_WLAN_VENDOR_ATTR_PEER_STATS_INVALID = 0, 11565 11566 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE = 1, 11567 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_MAC = 2, 11568 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_DATA = 3, 11569 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_COOKIE = 4, 11570 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PAD = 5, 11571 11572 /* Keep last */ 11573 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_LAST, 11574 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_MAX = 11575 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_LAST - 1 11576 }; 11577 11578 /** 11579 * enum qca_mpta_helper_attr_zigbee_state - Current Zigbee state 11580 * This enum defines all the possible states of Zigbee, which can be 11581 * delivered in the QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_STATE attribute. 11582 * 11583 * @ZIGBEE_IDLE: Zigbee in idle state 11584 * @ZIGBEE_FORM_NETWORK: Zigbee forming network 11585 * @ZIGBEE_WAIT_JOIN: Zigbee waiting for joining network 11586 * @ZIGBEE_JOIN: Zigbee joining network 11587 * @ZIGBEE_NETWORK_UP: Zigbee network is up 11588 * @ZIGBEE_HMI: Zigbee in HMI mode 11589 */ 11590 enum qca_mpta_helper_attr_zigbee_state { 11591 ZIGBEE_IDLE = 0, 11592 ZIGBEE_FORM_NETWORK = 1, 11593 ZIGBEE_WAIT_JOIN = 2, 11594 ZIGBEE_JOIN = 3, 11595 ZIGBEE_NETWORK_UP = 4, 11596 ZIGBEE_HMI = 5, 11597 }; 11598 11599 /* 11600 * enum qca_mpta_helper_vendor_attr - Attributes used in vendor sub-command 11601 * QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG. 11602 */ 11603 enum qca_mpta_helper_vendor_attr { 11604 QCA_MPTA_HELPER_VENDOR_ATTR_INVALID = 0, 11605 /* Optional attribute used to update Zigbee state. 11606 * enum qca_mpta_helper_attr_zigbee_state. 11607 * NLA_U32 attribute. 11608 */ 11609 QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_STATE = 1, 11610 /* Optional attribute used to configure WLAN duration for Shape-OCS 11611 * during interrupt. 11612 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_NON_WLAN_DURATION. 11613 * Value range 0 ~ 300 (ms). 11614 * NLA_U32 attribute. 11615 */ 11616 QCA_MPTA_HELPER_VENDOR_ATTR_INT_WLAN_DURATION = 2, 11617 /* Optional attribute used to configure non-WLAN duration for Shape-OCS 11618 * during interrupt. 11619 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_WLAN_DURATION. 11620 * Value range 0 ~ 300 (ms). 11621 * NLA_U32 attribute. 11622 */ 11623 QCA_MPTA_HELPER_VENDOR_ATTR_INT_NON_WLAN_DURATION = 3, 11624 /* Optional attribute used to configure WLAN duration for Shape-OCS 11625 * monitor period. 11626 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_NON_WLAN_DURATION. 11627 * Value range 0 ~ 300 (ms) 11628 * NLA_U32 attribute 11629 */ 11630 QCA_MPTA_HELPER_VENDOR_ATTR_MON_WLAN_DURATION = 4, 11631 /* Optional attribute used to configure non-WLAN duration for Shape-OCS 11632 * monitor period. 11633 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_WLAN_DURATION. 11634 * Value range 0 ~ 300 (ms) 11635 * NLA_U32 attribute 11636 */ 11637 QCA_MPTA_HELPER_VENDOR_ATTR_MON_NON_WLAN_DURATION = 5, 11638 /* Optional attribute used to configure OCS interrupt duration. 11639 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_OCS_DURATION. 11640 * Value range 1000 ~ 20000 (ms) 11641 * NLA_U32 attribute 11642 */ 11643 QCA_MPTA_HELPER_VENDOR_ATTR_INT_OCS_DURATION = 6, 11644 /* Optional attribute used to configure OCS monitor duration. 11645 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_OCS_DURATION. 11646 * Value range 1000 ~ 20000 (ms) 11647 * NLA_U32 attribute 11648 */ 11649 QCA_MPTA_HELPER_VENDOR_ATTR_MON_OCS_DURATION = 7, 11650 /* Optional attribute used to notify WLAN firmware the current Zigbee 11651 * channel. 11652 * Value range 11 ~ 26 11653 * NLA_U32 attribute 11654 */ 11655 QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_CHAN = 8, 11656 /* Optional attribute used to configure WLAN mute duration. 11657 * Value range 0 ~ 400 (ms) 11658 * NLA_U32 attribute 11659 */ 11660 QCA_MPTA_HELPER_VENDOR_ATTR_WLAN_MUTE_DURATION = 9, 11661 11662 /* keep last */ 11663 QCA_MPTA_HELPER_VENDOR_ATTR_AFTER_LAST, 11664 QCA_MPTA_HELPER_VENDOR_ATTR_MAX = 11665 QCA_MPTA_HELPER_VENDOR_ATTR_AFTER_LAST - 1 11666 }; 11667 11668 /** 11669 * enum qca_wlan_vendor_beacon_reporting_op_types - Defines different types of 11670 * operations for which %QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING can be used. 11671 * Will be used by %QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE. 11672 * 11673 * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START: Sent by userspace to the driver 11674 * to request the driver to start reporting Beacon frames. 11675 * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_STOP: Sent by userspace to the driver to 11676 * request the driver to stop reporting Beacon frames. 11677 * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO: Sent by the driver to 11678 * userspace to report received Beacon frames. 11679 * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE: Sent by the driver to userspace 11680 * to indicate that the driver is going to pause reporting Beacon frames. 11681 */ 11682 enum qca_wlan_vendor_beacon_reporting_op_types { 11683 QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START = 0, 11684 QCA_WLAN_VENDOR_BEACON_REPORTING_OP_STOP = 1, 11685 QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO = 2, 11686 QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE = 3, 11687 }; 11688 11689 /** 11690 * enum qca_wlan_vendor_beacon_reporting_pause_reasons - Defines different types 11691 * of reasons for which the driver is pausing reporting Beacon frames. Will be 11692 * used by %QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAUSE_REASON. 11693 * 11694 * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_UNSPECIFIED: For unspecified 11695 * reasons. 11696 * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_SCAN_STARTED: When the 11697 * driver/firmware is starting a scan. 11698 * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_DISCONNECTED: When the 11699 * driver/firmware disconnects from the ESS and indicates the disconnection to 11700 * userspace (non-seamless roaming case). This reason code will be used by the 11701 * driver/firmware to indicate stopping of beacon report events. Userspace will 11702 * need to start beacon reporting again (if desired) by sending vendor command 11703 * QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING with 11704 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE set to 11705 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START after the next connection is 11706 * completed. 11707 */ 11708 enum qca_wlan_vendor_beacon_reporting_pause_reasons { 11709 QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_UNSPECIFIED = 0, 11710 QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_SCAN_STARTED = 1, 11711 QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_DISCONNECTED = 2, 11712 }; 11713 11714 /* 11715 * enum qca_wlan_vendor_attr_beacon_reporting_params - List of attributes used 11716 * in vendor sub-command QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING. 11717 */ 11718 enum qca_wlan_vendor_attr_beacon_reporting_params { 11719 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_INVALID = 0, 11720 /* Specifies the type of operation that the vendor command/event is 11721 * intended for. Possible values for this attribute are defined in 11722 * enum qca_wlan_vendor_beacon_reporting_op_types. u32 attribute. 11723 */ 11724 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE = 1, 11725 /* Optionally set by userspace to request the driver to report Beacon 11726 * frames using asynchronous vendor events when the 11727 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to 11728 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START. NLA_FLAG attribute. 11729 * If this flag is not set, the driver will only update Beacon frames in 11730 * cfg80211 scan cache but not send any vendor events. 11731 */ 11732 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_ACTIVE_REPORTING = 2, 11733 /* Optionally used by userspace to request the driver/firmware to report 11734 * Beacon frames periodically when the 11735 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to 11736 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START. 11737 * u32 attribute, indicates the period of Beacon frames to be reported 11738 * and in the units of beacon interval. 11739 * If this attribute is missing in the command, then the default value 11740 * of 1 will be assumed by driver, i.e., to report every Beacon frame. 11741 * Zero is an invalid value. 11742 * If a valid value is received for this attribute, the driver will 11743 * update the cfg80211 scan cache periodically as per the value received 11744 * in this attribute in addition to updating the cfg80211 scan cache 11745 * when there is significant change in Beacon frame IEs. 11746 */ 11747 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PERIOD = 3, 11748 /* Used by the driver to encapsulate the SSID when the 11749 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to 11750 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. 11751 * u8 array with a maximum size of 32. 11752 * 11753 * When generating beacon report from non-MBSSID Beacon frame, the SSID 11754 * will be taken from the SSID element of the received Beacon frame. 11755 * 11756 * When generating beacon report from Multiple BSSID Beacon frame and if 11757 * the BSSID of the current connected BSS matches the BSSID of the 11758 * transmitting BSS, the SSID will be taken from the SSID element of the 11759 * received Beacon frame. 11760 * 11761 * When generating beacon report from Multiple BSSID Beacon frame and if 11762 * the BSSID of the current connected BSS matches the BSSID of one of 11763 * the* nontransmitting BSSs, the SSID will be taken from the SSID field 11764 * included in the nontransmitted BSS profile whose derived BSSID is 11765 * same as the BSSID of the current connected BSS. When there is no 11766 * nontransmitted BSS profile whose derived BSSID is same as the BSSID 11767 * of current connected* BSS, this attribute will not be present. 11768 */ 11769 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_SSID = 4, 11770 /* Used by the driver to encapsulate the BSSID of the AP to which STA is 11771 * currently connected to when the 11772 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to 11773 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u8 array with a 11774 * fixed size of 6 bytes. 11775 * 11776 * When generating beacon report from a Multiple BSSID beacon and the 11777 * current connected BSSID matches one of the nontransmitted BSSIDs in a 11778 * Multiple BSSID set, this BSSID will be that particular nontransmitted 11779 * BSSID and not the transmitted BSSID (i.e., the transmitting address 11780 * of the Beacon frame). 11781 */ 11782 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BSSID = 5, 11783 /* Used by the driver to encapsulate the frequency in MHz on which 11784 * the Beacon frame was received when the 11785 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is 11786 * set to QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. 11787 * u32 attribute. 11788 */ 11789 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_FREQ = 6, 11790 /* Used by the driver to encapsulate the Beacon interval 11791 * when the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to 11792 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. 11793 * u16 attribute. The value will be copied from the Beacon frame and the 11794 * units are TUs. 11795 */ 11796 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BI = 7, 11797 /* Used by the driver to encapsulate the Timestamp field from the Beacon 11798 * frame when the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set 11799 * to QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. 11800 * u64 attribute. 11801 */ 11802 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_TSF = 8, 11803 /* Used by the driver to encapsulate the CLOCK_BOOTTIME when this 11804 * Beacon frame is received in the driver when the 11805 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to 11806 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u64 attribute, in 11807 * the units of nanoseconds. This value is expected to have accuracy of 11808 * about 10 ms. 11809 */ 11810 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BOOTTIME_WHEN_RECEIVED = 9, 11811 /* Used by the driver to encapsulate the IEs of the Beacon frame from 11812 * which this event is generated when the 11813 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to 11814 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u8 array. 11815 */ 11816 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_IES = 10, 11817 /* Used by the driver to specify the reason for the driver/firmware to 11818 * pause sending beacons to userspace when the 11819 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to 11820 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE. Possible values are 11821 * defined in enum qca_wlan_vendor_beacon_reporting_pause_reasons, u32 11822 * attribute. 11823 */ 11824 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAUSE_REASON = 11, 11825 /* Used by the driver to specify whether the driver will automatically 11826 * resume reporting beacon events to userspace later (for example after 11827 * the ongoing off-channel activity is completed etc.) when the 11828 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to 11829 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE. NLA_FLAG attribute. 11830 */ 11831 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES = 12, 11832 /* Optionally set by userspace to request the driver not to resume 11833 * beacon reporting after a pause is completed, when the 11834 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to 11835 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START. NLA_FLAG attribute. 11836 * If this flag is set, the driver will not resume beacon reporting 11837 * after any pause in beacon reporting is completed. Userspace has to 11838 * send QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START command again in order 11839 * to initiate beacon reporting again. If this flag is set in the recent 11840 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START command, then in the 11841 * subsequent QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE event (if any) 11842 * the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES shall not be 11843 * set by the driver. Setting this flag until and unless there is a 11844 * specific need is not recommended as there is a chance of some beacons 11845 * received after pause command and next start command being not 11846 * reported. 11847 */ 11848 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_DO_NOT_RESUME = 13, 11849 /* Attribute used for padding for 64-bit alignment */ 11850 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAD = 14, 11851 11852 /* Keep last */ 11853 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_LAST, 11854 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_MAX = 11855 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_LAST - 1 11856 }; 11857 11858 /** 11859 * enum qca_vendor_interop_issues_ap_type - Interop issue types 11860 * This enum defines the valid set of values of interop issue types. These 11861 * values are used by attribute %QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE. 11862 * 11863 * @QCA_VENDOR_INTEROP_ISSUES_AP_ON_STA_PS: The AP has power save interop issue 11864 * when the STA's Qpower feature is enabled. 11865 */ 11866 enum qca_vendor_interop_issues_ap_type { 11867 QCA_VENDOR_INTEROP_ISSUES_AP_INVALID = 0, 11868 QCA_VENDOR_INTEROP_ISSUES_AP_ON_STA_PS = 1, 11869 }; 11870 11871 /** 11872 * enum qca_vendor_attr_interop_issues_ap - attribute for AP with interop issues 11873 * Values are used by %QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP. 11874 * 11875 * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_INVALID: Invalid value 11876 * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE: Interop issue type 11877 * 32-bit unsigned value. The values defined in enum 11878 * qca_vendor_interop_issues_ap_type are used. 11879 * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST: APs' BSSID container 11880 * array of nested QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID attributes. 11881 * It is present and mandatory for the command but is not used for the event 11882 * since only a single BSSID is reported in an event. 11883 * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID: AP's BSSID 6-byte MAC address. 11884 * It is used within the nested QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST 11885 * attribute in command case and without such encapsulation in the event case. 11886 * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST: last value 11887 * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_MAX: max value 11888 */ 11889 enum qca_vendor_attr_interop_issues_ap { 11890 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_INVALID, 11891 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE, 11892 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST, 11893 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID, 11894 /* keep last */ 11895 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST, 11896 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_MAX = 11897 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST - 1 11898 }; 11899 11900 /** 11901 * enum qca_vendor_oem_device_type - Represents the target device in firmware. 11902 * It is used by QCA_WLAN_VENDOR_ATTR_OEM_DEVICE_INFO. 11903 * 11904 * @QCA_VENDOR_OEM_DEVICE_VIRTUAL: The command is intended for 11905 * a virtual device. 11906 * 11907 * @QCA_VENDOR_OEM_DEVICE_PHYSICAL: The command is intended for 11908 * a physical device. 11909 */ 11910 enum qca_vendor_oem_device_type { 11911 QCA_VENDOR_OEM_DEVICE_VIRTUAL = 0, 11912 QCA_VENDOR_OEM_DEVICE_PHYSICAL = 1, 11913 }; 11914 11915 /** 11916 * enum qca_wlan_vendor_attr_oem_data_params - Used by the vendor command/event 11917 * QCA_NL80211_VENDOR_SUBCMD_OEM_DATA. 11918 * 11919 * @QCA_WLAN_VENDOR_ATTR_OEM_DATA_CMD_DATA: This NLA_BINARY attribute is 11920 * used to set/query the data to/from the firmware. On query, the same 11921 * attribute is used to carry the respective data in the reply sent by the 11922 * driver to userspace. The request to set/query the data and the format of the 11923 * respective data from the firmware are embedded in the attribute. The 11924 * maximum size of the attribute payload is 1024 bytes. 11925 * Userspace has to set the QCA_WLAN_VENDOR_ATTR_OEM_DATA_RESPONSE_EXPECTED 11926 * attribute when the data is queried from the firmware. 11927 * 11928 * @QCA_WLAN_VENDOR_ATTR_OEM_DEVICE_INFO: The binary blob will be routed 11929 * based on this field. This optional attribute is included to specify whether 11930 * the device type is a virtual device or a physical device for the 11931 * command/event. This attribute can be omitted for a virtual device (default) 11932 * command/event. 11933 * This u8 attribute is used to carry information for the device type using 11934 * values defined by enum qca_vendor_oem_device_type. 11935 * 11936 * @QCA_WLAN_VENDOR_ATTR_OEM_DATA_RESPONSE_EXPECTED: This NLA_FLAG attribute 11937 * is set when the userspace queries data from the firmware. This attribute 11938 * should not be set when userspace sets the OEM data to the firmware. 11939 */ 11940 enum qca_wlan_vendor_attr_oem_data_params { 11941 QCA_WLAN_VENDOR_ATTR_OEM_DATA_INVALID = 0, 11942 QCA_WLAN_VENDOR_ATTR_OEM_DATA_CMD_DATA = 1, 11943 QCA_WLAN_VENDOR_ATTR_OEM_DEVICE_INFO = 2, 11944 QCA_WLAN_VENDOR_ATTR_OEM_DATA_RESPONSE_EXPECTED = 3, 11945 11946 /* keep last */ 11947 QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_AFTER_LAST, 11948 QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_MAX = 11949 QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_AFTER_LAST - 1 11950 }; 11951 11952 /** 11953 * enum qca_wlan_vendor_attr_avoid_frequency_ext - Defines attributes to be 11954 * used with vendor command/event QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_EXT. 11955 * 11956 * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_RANGE: Required 11957 * Nested attribute containing multiple ranges with following attributes: 11958 * QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START, 11959 * QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END, and 11960 * QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM. 11961 * 11962 * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START: Required (u32) 11963 * Starting center frequency in MHz. 11964 * 11965 * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END: Required (u32) 11966 * Ending center frequency in MHz. 11967 * 11968 * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM: 11969 * s32 attribute, optional. It is a per frequency range attribute. 11970 * The maximum TX power limit from user space is to be applied on an 11971 * unrestricted interface for corresponding frequency range. It is also 11972 * possible that the actual TX power may be even lower than this cap due to 11973 * other considerations such as regulatory compliance, SAR, etc. In absence of 11974 * this attribute the driver shall follow current behavior which means 11975 * interface (SAP/P2P) function can keep operating on an unsafe channel with TX 11976 * power derived by the driver based on regulatory/SAR during interface up. 11977 * 11978 * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_IFACES_BITMASK: 11979 * u32 attribute, optional. Indicates all the interface types which are 11980 * restricted for all frequency ranges provided in 11981 * %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START and 11982 * %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END. 11983 * This attribute encapsulates bitmasks of interface types defined in 11984 * enum nl80211_iftype. If an interface is marked as restricted the driver must 11985 * move to a safe channel and if no safe channel is available the driver shall 11986 * terminate that interface functionality. In absence of this attribute, 11987 * interface (SAP/P2P) can still continue operating on an unsafe channel with 11988 * TX power limit derived from either 11989 * %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM or based on 11990 * regulatory/SAE limits if %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM 11991 * is not provided. 11992 */ 11993 enum qca_wlan_vendor_attr_avoid_frequency_ext { 11994 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_INVALID = 0, 11995 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_RANGE = 1, 11996 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START = 2, 11997 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END = 3, 11998 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM = 4, 11999 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_IFACES_BITMASK = 5, 12000 12001 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_AFTER_LAST, 12002 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_MAX = 12003 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_AFTER_LAST - 1 12004 }; 12005 12006 /* 12007 * enum qca_wlan_vendor_attr_add_sta_node_params - Used by the vendor command 12008 * QCA_NL80211_VENDOR_SUBCMD_ADD_STA_NODE. 12009 */ 12010 enum qca_wlan_vendor_attr_add_sta_node_params { 12011 QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_INVALID = 0, 12012 /* 6 byte MAC address of STA */ 12013 QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_MAC_ADDR = 1, 12014 /* Authentication algorithm used by the station of size u16; 12015 * defined in enum nl80211_auth_type. 12016 */ 12017 QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_AUTH_ALGO = 2, 12018 12019 /* 12020 * This flag attribute is set if the node being added is an 12021 * MLD STA node. 12022 */ 12023 QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_IS_ML = 3, 12024 12025 /* keep last */ 12026 QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_AFTER_LAST, 12027 QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_MAX = 12028 QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_AFTER_LAST - 1 12029 }; 12030 12031 /** 12032 * enum qca_btc_chain_mode - Specifies BT coex chain mode. 12033 * This enum defines the valid set of values of BT coex chain mode. 12034 * These values are used by attribute %QCA_VENDOR_ATTR_BTC_CHAIN_MODE of 12035 * %QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE. 12036 * 12037 * @QCA_BTC_CHAIN_SHARED: chains of BT and WLAN 2.4 GHz are shared. 12038 * @QCA_BTC_CHAIN_SEPARATED_HYBRID: chains of BT and WLAN 2.4 GHz are 12039 * separated, hybrid mode. 12040 * @QCA_BTC_CHAIN_SEPARATED_FDD: chains of BT and WLAN 2.4 GHz are 12041 * separated, fixed FDD mode. 12042 */ 12043 enum qca_btc_chain_mode { 12044 QCA_BTC_CHAIN_SHARED = 0, 12045 QCA_BTC_CHAIN_SEPARATED_HYBRID = 1, 12046 QCA_BTC_CHAIN_SEPARATED_FDD = 2, 12047 }; 12048 12049 /* deprecated legacy name */ 12050 #define QCA_BTC_CHAIN_SEPARATED QCA_BTC_CHAIN_SEPARATED_HYBRID 12051 12052 /** 12053 * enum qca_vendor_attr_btc_chain_mode - Specifies attributes for BT coex 12054 * chain mode. 12055 * Attributes for data used by QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE. 12056 * 12057 * @QCA_VENDOR_ATTR_COEX_BTC_CHAIN_MODE: u32 attribute. 12058 * Indicates the BT coex chain mode, are 32-bit values from 12059 * enum qca_btc_chain_mode. This attribute is mandatory. 12060 * 12061 * @QCA_VENDOR_ATTR_COEX_BTC_CHAIN_MODE_RESTART: flag attribute. 12062 * If set, vdev should be restarted when BT coex chain mode is updated. 12063 * This attribute is optional. 12064 */ 12065 enum qca_vendor_attr_btc_chain_mode { 12066 QCA_VENDOR_ATTR_BTC_CHAIN_MODE_INVALID = 0, 12067 QCA_VENDOR_ATTR_BTC_CHAIN_MODE = 1, 12068 QCA_VENDOR_ATTR_BTC_CHAIN_MODE_RESTART = 2, 12069 12070 /* Keep last */ 12071 QCA_VENDOR_ATTR_BTC_CHAIN_MODE_LAST, 12072 QCA_VENDOR_ATTR_BTC_CHAIN_MODE_MAX = 12073 QCA_VENDOR_ATTR_BTC_CHAIN_MODE_LAST - 1, 12074 }; 12075 12076 /** 12077 * enum qca_vendor_wlan_sta_flags - Station feature flags 12078 * Bits will be set to 1 if the corresponding features are enabled. 12079 * @QCA_VENDOR_WLAN_STA_FLAG_AMPDU: AMPDU is enabled for the station 12080 * @QCA_VENDOR_WLAN_STA_FLAG_TX_STBC: TX Space-time block coding is enabled 12081 for the station 12082 * @QCA_VENDOR_WLAN_STA_FLAG_RX_STBC: RX Space-time block coding is enabled 12083 for the station 12084 */ 12085 enum qca_vendor_wlan_sta_flags { 12086 QCA_VENDOR_WLAN_STA_FLAG_AMPDU = BIT(0), 12087 QCA_VENDOR_WLAN_STA_FLAG_TX_STBC = BIT(1), 12088 QCA_VENDOR_WLAN_STA_FLAG_RX_STBC = BIT(2), 12089 }; 12090 12091 /** 12092 * enum qca_vendor_wlan_sta_guard_interval - Station guard interval 12093 * @QCA_VENDOR_WLAN_STA_GI_800_NS: Legacy normal guard interval 12094 * @QCA_VENDOR_WLAN_STA_GI_400_NS: Legacy short guard interval 12095 * @QCA_VENDOR_WLAN_STA_GI_1600_NS: Guard interval used by HE 12096 * @QCA_VENDOR_WLAN_STA_GI_3200_NS: Guard interval used by HE 12097 */ 12098 enum qca_vendor_wlan_sta_guard_interval { 12099 QCA_VENDOR_WLAN_STA_GI_800_NS = 0, 12100 QCA_VENDOR_WLAN_STA_GI_400_NS = 1, 12101 QCA_VENDOR_WLAN_STA_GI_1600_NS = 2, 12102 QCA_VENDOR_WLAN_STA_GI_3200_NS = 3, 12103 }; 12104 12105 /** 12106 * enum qca_wlan_vendor_attr_get_sta_info - Defines attributes 12107 * used by QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO vendor command. 12108 * 12109 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAC: 12110 * Required attribute in request for AP mode only, 6-byte MAC address, 12111 * corresponding to the station's MAC address for which information is 12112 * requested. For STA mode this is not required as the info always correspond 12113 * to the self STA and the current/last association. 12114 * 12115 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_FLAGS: 12116 * Optionally used in response, u32 attribute, contains a bitmap of different 12117 * fields defined in enum qca_vendor_wlan_sta_flags, used in AP mode only. 12118 * 12119 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_GUARD_INTERVAL: 12120 * Optionally used in response, u32 attribute, possible values are defined in 12121 * enum qca_vendor_wlan_sta_guard_interval, used in AP mode only. 12122 * Guard interval used by the station. 12123 * 12124 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_RETRY_COUNT: 12125 * Optionally used in response, u32 attribute, used in AP mode only. 12126 * Value indicates the number of data frames received from station with retry 12127 * bit set to 1 in FC. 12128 * 12129 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BC_MC_COUNT: 12130 * Optionally used in response, u32 attribute, used in AP mode only. 12131 * Counter for number of data frames with broadcast or multicast address in 12132 * the destination address received from the station. 12133 * 12134 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_SUCCEED: 12135 * Optionally used in response, u32 attribute, used in both STA and AP modes. 12136 * Value indicates the number of data frames successfully transmitted only 12137 * after retrying the packets and for which the TX status has been updated 12138 * back to host from target. 12139 * 12140 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_EXHAUSTED: 12141 * Optionally used in response, u32 attribute, used in both STA and AP mode. 12142 * Value indicates the number of data frames not transmitted successfully even 12143 * after retrying the packets for the number of times equal to the total number 12144 * of retries allowed for that packet and for which the TX status has been 12145 * updated back to host from target. 12146 * 12147 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_TOTAL: 12148 * Optionally used in response, u32 attribute, used in AP mode only. 12149 * Counter in the target for the number of data frames successfully transmitted 12150 * to the station. 12151 * 12152 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY: 12153 * Optionally used in response, u32 attribute, used in AP mode only. 12154 * Value indicates the number of data frames successfully transmitted only 12155 * after retrying the packets. 12156 * 12157 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY_EXHAUSTED: 12158 * Optionally used in response, u32 attribute, used in both STA & AP mode. 12159 * Value indicates the number of data frames not transmitted successfully even 12160 * after retrying the packets for the number of times equal to the total number 12161 * of retries allowed for that packet. 12162 * 12163 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_PROBE_REQ_BMISS_COUNT: u32, used in 12164 * the STA mode only. Represent the number of probe requests sent by the STA 12165 * while attempting to roam on missing certain number of beacons from the 12166 * connected AP. If queried in the disconnected state, this represents the 12167 * count for the last connected state. 12168 * 12169 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_PROBE_RESP_BMISS_COUNT: u32, used in 12170 * the STA mode. Represent the number of probe responses received by the station 12171 * while attempting to roam on missing certain number of beacons from the 12172 * connected AP. When queried in the disconnected state, this represents the 12173 * count when in last connected state. 12174 * 12175 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_ALL_COUNT: u32, used in the 12176 * STA mode only. Represents the total number of frames sent out by STA 12177 * including Data, ACK, RTS, CTS, Control Management. This data is maintained 12178 * only for the connect session. Represents the count of last connected session, 12179 * when queried in the disconnected state. 12180 * 12181 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_COUNT: u32, used in the STA mode. 12182 * Total number of RTS sent out by the STA. This data is maintained per connect 12183 * session. Represents the count of last connected session, when queried in the 12184 * disconnected state. 12185 * 12186 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_RETRY_FAIL_COUNT: u32, used in the 12187 * STA mode.Represent the number of RTS transmission failure that reach retry 12188 * limit. This data is maintained per connect session. Represents the count of 12189 * last connected session, when queried in the disconnected state. 12190 * 12191 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_NON_AGGREGATED_COUNT: u32, used in 12192 * the STA mode. Represent the total number of non aggregated frames transmitted 12193 * by the STA. This data is maintained per connect session. Represents the count 12194 * of last connected session, when queried in the disconnected state. 12195 * 12196 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_AGGREGATED_COUNT: u32, used in the 12197 * STA mode. Represent the total number of aggregated frames transmitted by the 12198 * STA. This data is maintained per connect session. Represents the count of 12199 * last connected session, when queried in the disconnected state. 12200 * 12201 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_GOOD_PLCP_COUNT: u32, used in 12202 * the STA mode. Represents the number of received frames with a good PLCP. This 12203 * data is maintained per connect session. Represents the count of last 12204 * connected session, when queried in the disconnected state. 12205 * 12206 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_INVALID_DELIMITER_COUNT: u32, 12207 * used in the STA mode. Represents the number of occasions that no valid 12208 * delimiter is detected by A-MPDU parser. This data is maintained per connect 12209 * session. Represents the count of last connected session, when queried in the 12210 * disconnected state. 12211 * 12212 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_CRC_FAIL_COUNT: u32, used in the 12213 * STA mode. Represents the number of frames for which CRC check failed in the 12214 * MAC. This data is maintained per connect session. Represents the count of 12215 * last connected session, when queried in the disconnected state. 12216 * 12217 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_ACKS_GOOD_FCS_COUNT: u32, used in the 12218 * STA mode. Represents the number of unicast ACKs received with good FCS. This 12219 * data is maintained per connect session. Represents the count of last 12220 * connected session, when queried in the disconnected state. 12221 * 12222 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BLOCKACK_COUNT: u32, used in the STA 12223 * mode. Represents the number of received Block Acks. This data is maintained 12224 * per connect session. Represents the count of last connected session, when 12225 * queried in the disconnected state. 12226 * 12227 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BEACON_COUNT: u32, used in the STA 12228 * mode. Represents the number of beacons received from the connected BSS. This 12229 * data is maintained per connect session. Represents the count of last 12230 * connected session, when queried in the disconnected state. 12231 * 12232 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_OTHER_BEACON_COUNT: u32, used in the 12233 * STA mode. Represents the number of beacons received by the other BSS when in 12234 * connected state (through the probes done by the STA). This data is maintained 12235 * per connect session. Represents the count of last connected session, when 12236 * queried in the disconnected state. 12237 * 12238 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_UCAST_DATA_GOOD_FCS_COUNT: u64, used in 12239 * the STA mode. Represents the number of received DATA frames with good FCS and 12240 * matching Receiver Address when in connected state. This data is maintained 12241 * per connect session. Represents the count of last connected session, when 12242 * queried in the disconnected state. 12243 * 12244 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_DATA_BC_MC_DROP_COUNT: u32, used in the 12245 * STA mode. Represents the number of RX Data multicast frames dropped by the HW 12246 * when in the connected state. This data is maintained per connect session. 12247 * Represents the count of last connected session, when queried in the 12248 * disconnected state. 12249 * 12250 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_1MBPS: u32, used in the 12251 * STA mode. This represents the target power in dBm for the transmissions done 12252 * to the AP in 2.4 GHz at 1 Mbps (DSSS) rate. This data is maintained per 12253 * connect session. Represents the count of last connected session, when 12254 * queried in the disconnected state. 12255 * 12256 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_6MBPS: u32, used in the 12257 * STA mode. This represents the Target power in dBm for transmissions done to 12258 * the AP in 2.4 GHz at 6 Mbps (OFDM) rate. This data is maintained per connect 12259 * session. Represents the count of last connected session, when queried in the 12260 * disconnected state. 12261 * 12262 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_MCS0: u32, used in the 12263 * STA mode. This represents the Target power in dBm for transmissions done to 12264 * the AP in 2.4 GHz at MCS0 rate. This data is maintained per connect session. 12265 * Represents the count of last connected session, when queried in the 12266 * disconnected state. 12267 * 12268 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_6MBPS: u32, used in the 12269 * STA mode. This represents the Target power in dBm for transmissions done to 12270 * the AP in 5 GHz at 6 Mbps (OFDM) rate. This data is maintained per connect 12271 * session. Represents the count of last connected session, when queried in 12272 * the disconnected state. 12273 * 12274 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_MCS0: u32, used in the 12275 * STA mode. This represents the Target power in dBm for transmissions done 12276 * to the AP in 5 GHz at MCS0 rate. This data is maintained per connect session. 12277 * Represents the count of last connected session, when queried in the 12278 * disconnected state. 12279 * 12280 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_HW_BUFFERS_OVERFLOW_COUNT: u32, used 12281 * in the STA mode. This represents the Nested attribute representing the 12282 * overflow counts of each receive buffer allocated to the hardware during the 12283 * STA's connection. The number of hw buffers might vary for each WLAN 12284 * solution and hence this attribute represents the nested array of all such 12285 * HW buffer count. This data is maintained per connect session. Represents 12286 * the count of last connected session, when queried in the disconnected state. 12287 * 12288 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAX_TX_POWER: u32, Max TX power (dBm) 12289 * allowed as per the regulatory requirements for the current or last connected 12290 * session. Used in the STA mode. 12291 * 12292 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_POWER: u32, Latest TX power 12293 * (dBm) used by the station in its latest unicast frame while communicating 12294 * to the AP in the connected state. When queried in the disconnected state, 12295 * this represents the TX power used by the STA with last AP communication 12296 * when in connected state. 12297 * 12298 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ANI_LEVEL: u32, Adaptive noise immunity 12299 * level used to adjust the RX sensitivity. Represents the current ANI level 12300 * when queried in the connected state. When queried in the disconnected 12301 * state, this corresponds to the latest ANI level at the instance of 12302 * disconnection. 12303 * 12304 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_IES: Binary attribute containing 12305 * the raw information elements from Beacon frames. Represents the Beacon frames 12306 * of the current BSS in the connected state. When queried in the disconnected 12307 * state, these IEs correspond to the last connected BSSID. 12308 * 12309 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PROBE_RESP_IES: Binary attribute 12310 * containing the raw information elements from Probe Response frames. 12311 * Represents the Probe Response frames of the current BSS in the connected 12312 * state. When queried in the disconnected state, these IEs correspond to the 12313 * last connected BSSID. 12314 * 12315 * @QCA_WLAN_VENDOR_ATTR_GET_STA_DRIVER_DISCONNECT_REASON: u32, Driver 12316 * disconnect reason for the last disconnection if the disconnection is 12317 * triggered from the host driver. The values are referred from 12318 * enum qca_disconnect_reason_codes. 12319 * 12320 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_MIC_ERROR_COUNT: u32, used in STA mode 12321 * only. This represents the number of group addressed robust management frames 12322 * received from this station with an invalid MIC or a missing MME when PMF is 12323 * enabled. 12324 * 12325 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_REPLAY_COUNT: u32, used in STA mode 12326 * only. This represents the number of group addressed robust management frames 12327 * received from this station with the packet number less than or equal to the 12328 * last received packet number when PMF is enabled. 12329 * 12330 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_MIC_ERROR_COUNT: u32, used in STA 12331 * mode only. This represents the number of Beacon frames received from this 12332 * station with an invalid MIC or a missing MME when beacon protection is 12333 * enabled. 12334 * 12335 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_REPLAY_COUNT: u32, used in STA mode 12336 * only. This represents number of Beacon frames received from this station with 12337 * the packet number less than or equal to the last received packet number when 12338 * beacon protection is enabled. 12339 * 12340 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_CONNECT_FAIL_REASON_CODE: u32, used in 12341 * STA mode only. The driver uses this attribute to populate the connection 12342 * failure reason codes and the values are defined in 12343 * enum qca_sta_connect_fail_reason_codes. Userspace applications can send 12344 * QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO vendor command after receiving 12345 * a connection failure indication from the driver. The driver shall not 12346 * include this attribute in response to the 12347 * QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO command if there is no connection 12348 * failure observed in the last attempted connection. 12349 * 12350 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_RATE: u32, latest TX rate (Kbps) 12351 * used by the station in its last TX frame while communicating to the AP in the 12352 * connected state. When queried in the disconnected state, this represents the 12353 * rate used by the STA in the last TX frame to the AP when it was connected. 12354 * This attribute is used for STA mode only. 12355 * 12356 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_RIX: u32, used in STA mode only. 12357 * This represents the rate index used by the STA for the last TX frame to the 12358 * AP. When queried in the disconnected state, this gives the last RIX used by 12359 * the STA in the last TX frame to the AP when it was connected. 12360 * 12361 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TSF_OUT_OF_SYNC_COUNT: u32, used in STA 12362 * mode only. This represents the number of times the STA TSF goes out of sync 12363 * from the AP after the connection. If queried in the disconnected state, this 12364 * gives the count of TSF out of sync for the last connection. 12365 * 12366 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_TRIGGER_REASON: u32, used in STA 12367 * mode only. This represents the roam trigger reason for the last roaming 12368 * attempted by the firmware. This can be queried either in connected state or 12369 * disconnected state. Each bit of this attribute represents the different 12370 * roam trigger reason code which are defined in enum qca_vendor_roam_triggers. 12371 * 12372 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_FAIL_REASON: u32, used in STA mode 12373 * only. This represents the roam fail reason for the last failed roaming 12374 * attempt by the firmware. Different roam failure reason codes are specified 12375 * in enum qca_vendor_roam_fail_reasons. This can be queried either in 12376 * connected state or disconnected state. 12377 * 12378 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_INVOKE_FAIL_REASON: u32, used in 12379 * STA mode only. This represents the roam invoke fail reason for the last 12380 * failed roam invoke. Different roam invoke failure reason codes 12381 * are specified in enum qca_vendor_roam_invoke_fail_reasons. This can be 12382 * queried either in connected state or disconnected state. 12383 * 12384 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY: u32, used in STA mode only. 12385 * This represents the average congestion duration of uplink frames in MAC 12386 * queue in unit of ms. This can be queried either in connected state or 12387 * disconnected state. 12388 * 12389 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PER_MCS_TX_PACKETS: Array of u32 nested 12390 * values, used in AP mode. This represents the MPDU packet count per MCS 12391 * rate value of TX packets. Every index of this nested attribute corresponds 12392 * to MCS index, e.g., Index 0 represents MCS0 TX rate. This can be 12393 * queried in connected state. 12394 * 12395 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PER_MCS_RX_PACKETS: Array of u32 nested 12396 * values, used in AP mode. This represents the MPDU packet count per MCS 12397 * rate value of RX packets. Every index of this nested attribute corresponds 12398 * to MCS index, e.g., Index 0 represents MCS0 RX rate. This can be 12399 * queried in connected state. 12400 * 12401 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PAD: Attribute used for padding for 12402 * 64-bit alignment. 12403 */ 12404 enum qca_wlan_vendor_attr_get_sta_info { 12405 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_INVALID = 0, 12406 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAC = 1, 12407 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_FLAGS = 2, 12408 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_GUARD_INTERVAL = 3, 12409 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_RETRY_COUNT = 4, 12410 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BC_MC_COUNT = 5, 12411 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_SUCCEED = 6, 12412 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_EXHAUSTED = 7, 12413 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_TOTAL = 8, 12414 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY = 9, 12415 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY_EXHAUSTED = 10, 12416 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_PROBE_REQ_BMISS_COUNT = 11, 12417 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_PROBE_RESP_BMISS_COUNT = 12, 12418 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_ALL_COUNT = 13, 12419 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_COUNT = 14, 12420 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_RETRY_FAIL_COUNT = 15, 12421 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_NON_AGGREGATED_COUNT = 16, 12422 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_AGGREGATED_COUNT = 17, 12423 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_GOOD_PLCP_COUNT = 18, 12424 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_INVALID_DELIMITER_COUNT = 19, 12425 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_CRC_FAIL_COUNT = 20, 12426 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_ACKS_GOOD_FCS_COUNT = 21, 12427 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BLOCKACK_COUNT = 22, 12428 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BEACON_COUNT = 23, 12429 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_OTHER_BEACON_COUNT = 24, 12430 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_UCAST_DATA_GOOD_FCS_COUNT = 25, 12431 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_DATA_BC_MC_DROP_COUNT = 26, 12432 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_1MBPS = 27, 12433 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_6MBPS = 28, 12434 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_MCS0 = 29, 12435 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_6MBPS = 30, 12436 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_MCS0 = 31, 12437 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_HW_BUFFERS_OVERFLOW_COUNT = 32, 12438 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAX_TX_POWER = 33, 12439 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_POWER = 34, 12440 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ANI_LEVEL = 35, 12441 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_IES = 36, 12442 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PROBE_RESP_IES = 37, 12443 QCA_WLAN_VENDOR_ATTR_GET_STA_DRIVER_DISCONNECT_REASON = 38, 12444 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_MIC_ERROR_COUNT = 39, 12445 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_REPLAY_COUNT = 40, 12446 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_MIC_ERROR_COUNT = 41, 12447 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_REPLAY_COUNT = 42, 12448 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_CONNECT_FAIL_REASON_CODE = 43, 12449 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_RATE = 44, 12450 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_RIX = 45, 12451 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TSF_OUT_OF_SYNC_COUNT = 46, 12452 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_TRIGGER_REASON = 47, 12453 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_FAIL_REASON = 48, 12454 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_INVOKE_FAIL_REASON = 49, 12455 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY = 50, 12456 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PER_MCS_TX_PACKETS = 51, 12457 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PER_MCS_RX_PACKETS = 52, 12458 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PAD = 53, 12459 12460 /* keep last */ 12461 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_AFTER_LAST, 12462 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAX = 12463 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_AFTER_LAST - 1, 12464 }; 12465 12466 /** 12467 * enum qca_wlan_vendor_attr_update_sta_info - Defines attributes 12468 * used by QCA_NL80211_VENDOR_SUBCMD_UPDATE_STA_INFO vendor command. 12469 * 12470 * @QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_CONNECT_CHANNELS: Type is NLA_UNSPEC. 12471 * Used in STA mode. This attribute represents the list of channel center 12472 * frequencies in MHz (u32) the station has learnt during the last connection 12473 * or roaming attempt. This information shall not signify the channels for 12474 * an explicit scan request from the user space. Host drivers can update this 12475 * information to the user space in both connected and disconnected state. 12476 * In the disconnected state this information shall signify the channels 12477 * scanned in the last connection/roam attempt that lead to the disconnection. 12478 */ 12479 enum qca_wlan_vendor_attr_update_sta_info { 12480 QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_INVALID = 0, 12481 QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_CONNECT_CHANNELS = 1, 12482 12483 /* keep last */ 12484 QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_AFTER_LAST, 12485 QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_MAX = 12486 QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_AFTER_LAST - 1, 12487 }; 12488 12489 /** 12490 * enum qca_disconnect_reason_codes - Specifies driver disconnect reason codes. 12491 * Used when the driver triggers the STA to disconnect from the AP. 12492 * 12493 * @QCA_DISCONNECT_REASON_UNSPECIFIED: The host driver triggered the 12494 * disconnection with the AP due to unspecified reasons. 12495 * 12496 * @QCA_DISCONNECT_REASON_INTERNAL_ROAM_FAILURE: The host driver triggered the 12497 * disconnection with the AP due to a roaming failure. This roaming is triggered 12498 * internally (host driver/firmware). 12499 * 12500 * @QCA_DISCONNECT_REASON_EXTERNAL_ROAM_FAILURE: The driver disconnected from 12501 * the AP when the user/external triggered roaming fails. 12502 * 12503 * @QCA_DISCONNECT_REASON_GATEWAY_REACHABILITY_FAILURE: This reason code is used 12504 * by the host driver whenever gateway reachability failure is detected and the 12505 * driver disconnects with AP. 12506 * 12507 * @QCA_DISCONNECT_REASON_UNSUPPORTED_CHANNEL_CSA: The driver disconnected from 12508 * the AP on a channel switch announcement from it with an unsupported channel. 12509 * 12510 * @QCA_DISCONNECT_REASON_OPER_CHANNEL_DISABLED_INDOOR: On a concurrent AP start 12511 * with indoor channels disabled and if the STA is connected on one of these 12512 * disabled channels, the host driver disconnected the STA with this reason 12513 * code. 12514 * 12515 * @QCA_DISCONNECT_REASON_OPER_CHANNEL_USER_DISABLED: Disconnection due to an 12516 * explicit request from the user to disable the current operating channel. 12517 * 12518 * @QCA_DISCONNECT_REASON_DEVICE_RECOVERY: STA disconnected from the AP due to 12519 * the internal host driver/firmware recovery. 12520 * 12521 * @QCA_DISCONNECT_REASON_KEY_TIMEOUT: The driver triggered the disconnection on 12522 * a timeout for the key installations from the user space. 12523 * 12524 * @QCA_DISCONNECT_REASON_OPER_CHANNEL_BAND_CHANGE: The dDriver disconnected the 12525 * STA on a band change request from the user space to a different band from the 12526 * current operation channel/band. 12527 * 12528 * @QCA_DISCONNECT_REASON_IFACE_DOWN: The STA disconnected from the AP on an 12529 * interface down trigger from the user space. 12530 * 12531 * @QCA_DISCONNECT_REASON_PEER_XRETRY_FAIL: The host driver disconnected the 12532 * STA on getting continuous transmission failures for multiple Data frames. 12533 * 12534 * @QCA_DISCONNECT_REASON_PEER_INACTIVITY: The STA does a keep alive 12535 * notification to the AP by transmitting NULL/G-ARP frames. This disconnection 12536 * represents inactivity from AP on such transmissions. 12537 12538 * @QCA_DISCONNECT_REASON_SA_QUERY_TIMEOUT: This reason code is used on 12539 * disconnection when SA Query times out (AP does not respond to SA Query). 12540 * 12541 * @QCA_DISCONNECT_REASON_BEACON_MISS_FAILURE: The host driver disconnected the 12542 * STA on missing the beacons continuously from the AP. 12543 * 12544 * @QCA_DISCONNECT_REASON_CHANNEL_SWITCH_FAILURE: Disconnection due to STA not 12545 * able to move to the channel mentioned by the AP in CSA. 12546 * 12547 * @QCA_DISCONNECT_REASON_USER_TRIGGERED: User triggered disconnection. 12548 */ 12549 enum qca_disconnect_reason_codes { 12550 QCA_DISCONNECT_REASON_UNSPECIFIED = 0, 12551 QCA_DISCONNECT_REASON_INTERNAL_ROAM_FAILURE = 1, 12552 QCA_DISCONNECT_REASON_EXTERNAL_ROAM_FAILURE = 2, 12553 QCA_DISCONNECT_REASON_GATEWAY_REACHABILITY_FAILURE = 3, 12554 QCA_DISCONNECT_REASON_UNSUPPORTED_CHANNEL_CSA = 4, 12555 QCA_DISCONNECT_REASON_OPER_CHANNEL_DISABLED_INDOOR = 5, 12556 QCA_DISCONNECT_REASON_OPER_CHANNEL_USER_DISABLED = 6, 12557 QCA_DISCONNECT_REASON_DEVICE_RECOVERY = 7, 12558 QCA_DISCONNECT_REASON_KEY_TIMEOUT = 8, 12559 QCA_DISCONNECT_REASON_OPER_CHANNEL_BAND_CHANGE = 9, 12560 QCA_DISCONNECT_REASON_IFACE_DOWN = 10, 12561 QCA_DISCONNECT_REASON_PEER_XRETRY_FAIL = 11, 12562 QCA_DISCONNECT_REASON_PEER_INACTIVITY = 12, 12563 QCA_DISCONNECT_REASON_SA_QUERY_TIMEOUT = 13, 12564 QCA_DISCONNECT_REASON_BEACON_MISS_FAILURE = 14, 12565 QCA_DISCONNECT_REASON_CHANNEL_SWITCH_FAILURE = 15, 12566 QCA_DISCONNECT_REASON_USER_TRIGGERED = 16, 12567 }; 12568 12569 /** 12570 * enum qca_wlan_vendor_attr_driver_disconnect_reason - Defines attributes 12571 * used by %QCA_NL80211_VENDOR_SUBCMD_DRIVER_DISCONNECT_REASON vendor command. 12572 * 12573 * @QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASCON_CODE: u32 attribute. 12574 * This attribute represents the driver specific reason codes (local 12575 * driver/firmware initiated reasons for disconnection) defined 12576 * in enum qca_disconnect_reason_codes. 12577 */ 12578 enum qca_wlan_vendor_attr_driver_disconnect_reason { 12579 QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_INVALID = 0, 12580 QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASCON_CODE = 1, 12581 12582 /* keep last */ 12583 QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_AFTER_LAST, 12584 QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_MAX = 12585 QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_AFTER_LAST - 1, 12586 }; 12587 12588 /** 12589 * enum qca_wlan_tspec_operation - Operation of the config TSPEC request 12590 * 12591 * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_OPERATION. 12592 */ 12593 enum qca_wlan_tspec_operation { 12594 QCA_WLAN_TSPEC_ADD = 0, 12595 QCA_WLAN_TSPEC_DEL = 1, 12596 QCA_WLAN_TSPEC_GET = 2, 12597 }; 12598 12599 /** 12600 * enum qca_wlan_tspec_direction - Direction in TSPEC 12601 * As what is defined in IEEE Std 802.11-2016, Table 9-139. 12602 * 12603 * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_DIRECTION. 12604 */ 12605 enum qca_wlan_tspec_direction { 12606 QCA_WLAN_TSPEC_DIRECTION_UPLINK = 0, 12607 QCA_WLAN_TSPEC_DIRECTION_DOWNLINK = 1, 12608 QCA_WLAN_TSPEC_DIRECTION_DIRECT = 2, 12609 QCA_WLAN_TSPEC_DIRECTION_BOTH = 3, 12610 }; 12611 12612 /** 12613 * enum qca_wlan_tspec_ack_policy - MAC acknowledgment policy in TSPEC 12614 * As what is defined in IEEE Std 802.11-2016, Table 9-141. 12615 * 12616 * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_ACK_POLICY. 12617 */ 12618 enum qca_wlan_tspec_ack_policy { 12619 QCA_WLAN_TSPEC_NORMAL_ACK = 0, 12620 QCA_WLAN_TSPEC_NO_ACK = 1, 12621 /* Reserved */ 12622 QCA_WLAN_TSPEC_BLOCK_ACK = 3, 12623 }; 12624 12625 /** 12626 * enum qca_wlan_vendor_attr_config_tspec - Defines attributes 12627 * used by %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TSPEC vendor command. 12628 * 12629 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_OPERATION: 12630 * u8 attribute. Specify the TSPEC operation of this request. Possible values 12631 * are defined in enum qca_wlan_tspec_operation. 12632 * Mandatory attribute for all kinds of config TSPEC requests. 12633 * 12634 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_TSID: 12635 * u8 attribute. TS ID. Possible values are 0-7. 12636 * Applicable for operation: QCA_WLAN_TSPEC_ADD, QCA_WLAN_TSPEC_DEL, 12637 * QCA_WLAN_TSPEC_GET. A mandatory attribute. 12638 * 12639 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_DIRECTION: 12640 * u8 attribute. Direction of data carried by the TS. Possible values are 12641 * defined in enum qca_wlan_tspec_direction. 12642 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute. 12643 * 12644 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_APSD: 12645 * Flag attribute. Indicate whether APSD is enabled for the traffic associated 12646 * with the TS. set - enabled, not set - disabled. 12647 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute. 12648 * 12649 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_USER_PRIORITY: 12650 * u8 attribute. User priority to be used for the transport of MSDUs/A-MSDUs 12651 * belonging to this TS. Possible values are 0-7. 12652 * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute. 12653 * 12654 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_ACK_POLICY: 12655 * u8 attribute. Indicate whether MAC acknowledgements are required for 12656 * MPDUs/A-MSDUs belonging to this TS and the form of those acknowledgements. 12657 * Possible values are defined in enum qca_wlan_tspec_ack_policy. 12658 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute. 12659 * 12660 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_NOMINAL_MSDU_SIZE: 12661 * u16 attribute. Specify the nominal size in bytes of MSDUs/A-MSDUs 12662 * belonging to this TS. 12663 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute. 12664 * 12665 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAXIMUM_MSDU_SIZE: 12666 * u16 attribute. Specify the maximum size in bytes of MSDUs/A-MSDUs 12667 * belonging to this TS. 12668 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute. 12669 * 12670 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MIN_SERVICE_INTERVAL: 12671 * u32 attribute. Specify the minimum interval in microseconds between the 12672 * start of two successive SPs. 12673 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute. 12674 * 12675 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAX_SERVICE_INTERVAL: 12676 * u32 attribute. Specify the maximum interval in microseconds between the 12677 * start of two successive SPs. 12678 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute. 12679 * 12680 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_INACTIVITY_INTERVAL: 12681 * u32 attribute. Specify the minimum interval in microseconds that can elapse 12682 * without arrival or transfer of an MPDU belonging to the TS before this TS 12683 * is deleted by the MAC entity at the HC. 12684 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute. 12685 * 12686 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SUSPENSION_INTERVAL: 12687 * u32 attribute. Specify the minimum interval in microseconds that can elapse 12688 * without arrival or transfer of an MSDU belonging to the TS before the 12689 * generation of successive QoS(+)CF-Poll is stopped for this TS. A value of 12690 * 0xFFFFFFFF disables the suspension interval. The value of the suspension 12691 * interval is always less than or equal to the inactivity interval. 12692 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute. 12693 * 12694 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_DATA_RATE: 12695 * u32 attribute. Indicate the lowest data rate in bps specified at the MAC 12696 * SAP for transport of MSDUs or A-MSDUs belonging to this TS within the 12697 * bounds of this TSPEC. 12698 * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute. 12699 * 12700 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MEAN_DATA_RATE: 12701 * u32 attribute. Indicate the average data rate in bps specified at the MAC 12702 * SAP for transport of MSDUs or A-MSDUs belonging to this TS within the 12703 * bounds of this TSPEC. 12704 * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute. 12705 * 12706 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_PEAK_DATA_RATE: 12707 * u32 attribute. Indicate the maximum allowable data rate in bps specified at 12708 * the MAC SAP for transport of MSDUs or A-MSDUs belonging to this TS within 12709 * the bounds of this TSPEC. 12710 * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute. 12711 * 12712 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_BURST_SIZE: 12713 * u32 attribute. Specify the maximum burst size in bytes of the MSDUs/A-MSDUs 12714 * belonging to this TS that arrive at the MAC SAP at the peak data rate. A 12715 * value of 0 indicates that there are no bursts. 12716 * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute. 12717 * 12718 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_PHY_RATE: 12719 * u32 attribute. Indicate the minimum PHY rate in bps for transport of 12720 * MSDUs/A-MSDUs belonging to this TS within the bounds of this TSPEC. 12721 * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute. 12722 * 12723 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SURPLUS_BANDWIDTH_ALLOWANCE: 12724 * u16 attribute. Specify the excess allocation of time (and bandwidth) over 12725 * and above the stated application rates required to transport an MSDU/A-MSDU 12726 * belonging to the TS in this TSPEC. 12727 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute. 12728 */ 12729 enum qca_wlan_vendor_attr_config_tspec { 12730 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_INVALID = 0, 12731 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_OPERATION = 1, 12732 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_TSID = 2, 12733 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_DIRECTION = 3, 12734 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_APSD = 4, 12735 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_USER_PRIORITY = 5, 12736 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_ACK_POLICY = 6, 12737 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_NOMINAL_MSDU_SIZE = 7, 12738 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAXIMUM_MSDU_SIZE = 8, 12739 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MIN_SERVICE_INTERVAL = 9, 12740 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAX_SERVICE_INTERVAL = 10, 12741 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_INACTIVITY_INTERVAL = 11, 12742 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SUSPENSION_INTERVAL = 12, 12743 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_DATA_RATE = 13, 12744 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MEAN_DATA_RATE = 14, 12745 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_PEAK_DATA_RATE = 15, 12746 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_BURST_SIZE = 16, 12747 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_PHY_RATE = 17, 12748 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SURPLUS_BANDWIDTH_ALLOWANCE = 18, 12749 12750 /* keep last */ 12751 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_AFTER_LAST, 12752 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAX = 12753 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_AFTER_LAST - 1, 12754 }; 12755 12756 /** 12757 * enum qca_wlan_vendor_oci_override_frame_type - OCI override frame type 12758 * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_REQ: SA Query Request frame 12759 * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_RESP: SA Query Response frame 12760 * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FT_REASSOC_REQ: FT Reassociation Request 12761 * frame 12762 * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FILS_REASSOC_REQ: FILS Reassociation 12763 * Request frame. 12764 */ 12765 enum qca_wlan_vendor_oci_override_frame_type { 12766 QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_REQ = 1, 12767 QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_RESP = 2, 12768 QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FT_REASSOC_REQ = 3, 12769 QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FILS_REASSOC_REQ = 4, 12770 }; 12771 12772 /** 12773 * enum qca_wlan_vendor_attr_oci_override: Represents attributes for 12774 * OCI override request. These attributes are used inside nested attribute 12775 * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OCI_OVERRIDE in QCA vendor command 12776 * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION. 12777 * 12778 * @QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FRAME_TYPE: Required attribute, u8. 12779 * Values from enum qca_wlan_vendor_oci_override_frame_type used in this 12780 * attribute to specify the frame type in which the OCI is to be overridden. 12781 * 12782 * @QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FREQUENCY: Required (u32) 12783 * OCI frequency (in MHz) to override in the specified frame type. 12784 */ 12785 enum qca_wlan_vendor_attr_oci_override { 12786 QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_INVALID = 0, 12787 QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FRAME_TYPE = 1, 12788 QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FREQUENCY = 2, 12789 12790 /* keep last */ 12791 QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_AFTER_LAST, 12792 QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_MAX = 12793 QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_AFTER_LAST - 1, 12794 }; 12795 12796 /** 12797 * enum qca_wlan_medium_assess_type - Type of medium assess request 12798 * 12799 * Values for %QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TYPE. 12800 */ 12801 enum qca_wlan_medium_assess_type { 12802 QCA_WLAN_MEDIUM_ASSESS_CCA = 0, 12803 QCA_WLAN_MEDIUM_ASSESS_CONGESTION_REPORT = 1, 12804 }; 12805 12806 /** 12807 * enum qca_wlan_vendor_attr_medium_assess - Attributes used by 12808 * %QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS vendor command. 12809 * 12810 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TYPE: 12811 * u8 attribute. Mandatory in all kinds of medium assess requests/responses. 12812 * Specify the type of medium assess request and indicate its type in response. 12813 * Possible values are defined in enum qca_wlan_medium_assess_type. 12814 * 12815 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_PERIOD: 12816 * u32 attribute. Mandatory in CCA request. 12817 * Specify the assessment period in terms of seconds. Assessment result will be 12818 * sent as the response to the CCA request after the assessment period. 12819 * 12820 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TOTAL_CYCLE_COUNT: 12821 * u32 attribute. Mandatory in response to CCA request. 12822 * Total timer tick count of the assessment cycle. 12823 * 12824 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IDLE_COUNT: 12825 * u32 attribute. Mandatory in response to CCA request. 12826 * Timer tick count of idle time in the assessment cycle. 12827 * 12828 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IBSS_RX_COUNT: 12829 * u32 attribute. Mandatory in response to CCA request. 12830 * Timer tick count of Intra BSS traffic RX time in the assessment cycle. 12831 * 12832 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_OBSS_RX_COUNT: 12833 * u32 attribute. Mandatory in response to CCA request. 12834 * Timer tick count of Overlapping BSS traffic RX time in the assessment cycle. 12835 * 12836 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MAX_IBSS_RSSI: 12837 * s32 attribute. Mandatory in response to CCA request. 12838 * Maximum RSSI of Intra BSS traffic in the assessment cycle. 12839 * 12840 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MIN_IBSS_RSSI: 12841 * s32 attribute. Mandatory in response to CCA request. 12842 * Minimum RSSI of Intra BSS traffic in the assessment cycle. 12843 * 12844 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_ENABLE: 12845 * u8 attribute. Mandatory in congestion report request. 12846 * 1-enable 0-disable. 12847 * 12848 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_THRESHOLD: 12849 * u8 attribute. Mandatory in congestion report enable request and will be 12850 * ignored if present in congestion report disable request. Possible values are 12851 * 0-100. A vendor event QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS with the type 12852 * QCA_WLAN_MEDIUM_ASSESS_CONGESTION_REPORT will be sent to userspace if 12853 * congestion percentage reaches the configured threshold. 12854 * 12855 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_INTERVAL: 12856 * u8 attribute. Optional in congestion report enable request and will be 12857 * ignored if present in congestion report disable request. 12858 * Specify the interval of congestion report event in terms of seconds. Possible 12859 * values are 1-255. Default value 1 will be used if this attribute is omitted 12860 * or using invalid values. 12861 * 12862 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_PERCENTAGE: 12863 * u8 attribute. Mandatory in congestion report event. 12864 * Indicate the actual congestion percentage. Possible values are 0-100. 12865 */ 12866 enum qca_wlan_vendor_attr_medium_assess { 12867 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_INVALID = 0, 12868 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TYPE = 1, 12869 12870 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_PERIOD = 2, 12871 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TOTAL_CYCLE_COUNT = 3, 12872 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IDLE_COUNT = 4, 12873 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IBSS_RX_COUNT = 5, 12874 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_OBSS_RX_COUNT = 6, 12875 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MAX_IBSS_RSSI = 7, 12876 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MIN_IBSS_RSSI = 8, 12877 12878 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_ENABLE = 9, 12879 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_THRESHOLD = 10, 12880 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_INTERVAL = 11, 12881 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_PERCENTAGE = 12, 12882 12883 /* keep last */ 12884 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_AFTER_LAST, 12885 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MAX = 12886 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_AFTER_LAST - 1, 12887 }; 12888 12889 /** 12890 * enum qca_wlan_vendor_attr_mbssid_tx_vdev_status - Defines attributes 12891 * used by QCA_NL80211_VENDOR_SUBCMD_MBSSID_TX_VDEV_STATUS vendor command. 12892 * 12893 * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_VAL: 12894 * u8 attribute. Notify the TX VDEV status. Possible values 0, 1 12895 * belonging to MBSSID/EMA_AP configuration. 0 means Non-Tx VDEV, 12896 * 1 means Tx VDEV. Mandatory attribute for all MBSSID VDEV status events. 12897 * 12898 * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_EVENT: 12899 * u8 attribute, required. 1 means Tx VDEV up event. 0 means Tx VDEV down event. 12900 * 12901 * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_ID: 12902 * u8 attribute, required. Indicates group id of Tx VDEV. 12903 * 12904 * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO: 12905 * Nested attribute. This attribute shall be used by the driver to send 12906 * group information. The attributes defined in enum 12907 * qca_wlan_vendor_attr_mbssid_tx_vdev_group_info 12908 * are nested in this attribute. 12909 */ 12910 enum qca_wlan_vendor_attr_mbssid_tx_vdev_status { 12911 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_INVALID = 0, 12912 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_VAL = 1, 12913 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_EVENT = 2, 12914 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_ID = 3, 12915 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO = 4, 12916 12917 /* keep last */ 12918 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_AFTER_LAST, 12919 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_MAX = 12920 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_AFTER_LAST - 1, 12921 }; 12922 12923 /** 12924 * enum qca_wlan_vendor_attr_mbssid_tx_vdev_group_info - Attributes used 12925 * inside %QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO nested attribute. 12926 * 12927 * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_IF_INDEX: 12928 * u32 attribute, required. Contains interface index. 12929 * 12930 * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_STATUS: 12931 * u8 attribute, required. 0 - means vdev is in down state. 12932 * 1 - means vdev is in up state. 12933 */ 12934 enum qca_wlan_vendor_attr_mbssid_tx_vdev_group_info { 12935 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_INVALID = 0, 12936 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_IF_INDEX = 1, 12937 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_STATUS = 2, 12938 12939 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_AFTER_LAST, 12940 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_MAX = 12941 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO - 1, 12942 }; 12943 12944 /** 12945 * enum qca_wlan_concurrent_sta_policy_config - Concurrent STA policies 12946 * 12947 * @QCA_WLAN_CONCURRENT_STA_POLICY_PREFER_PRIMARY: Preference to the primary 12948 * STA interface has to be given while selecting the connection policies 12949 * (e.g., BSSID, band, TX/RX chains, etc.) for the subsequent STA interface. 12950 * An interface is set as primary through the attribute 12951 * QCA_WLAN_VENDOR_ATTR_CONFIG_CONCURRENT_STA_PRIMARY. This policy is not 12952 * applicable if the primary interface has not been set earlier. 12953 * 12954 * The intention is not to downgrade the primary STA performance, such as: 12955 * - Do not reduce the number of TX/RX chains of primary connection. 12956 * - Do not optimize DBS vs. MCC/SCC, if DBS ends up reducing the number of 12957 * chains. 12958 * - If using MCC, should set the MCC duty cycle of the primary connection to 12959 * be higher than the secondary connection. 12960 * 12961 * @QCA_WLAN_CONCURRENT_STA_POLICY_UNBIASED: The connection policies for the 12962 * subsequent STA connection shall be chosen to balance with the existing 12963 * concurrent STA's performance. 12964 * Such as 12965 * - Can choose MCC or DBS mode depending on the MCC efficiency and hardware 12966 * capability. 12967 * - If using MCC, set the MCC duty cycle of the primary connection to be equal 12968 * to the secondary. 12969 * - Prefer BSSID candidates which will help provide the best "overall" 12970 * performance for all the STA connections. 12971 */ 12972 enum qca_wlan_concurrent_sta_policy_config { 12973 QCA_WLAN_CONCURRENT_STA_POLICY_PREFER_PRIMARY = 0, 12974 QCA_WLAN_CONCURRENT_STA_POLICY_UNBIASED = 1, 12975 }; 12976 12977 /** 12978 * enum qca_wlan_concurrent_ap_policy_config - Concurrent AP policies 12979 * 12980 * @QCA_WLAN_CONCURRENT_AP_POLICY_UNSPECIFIED: No specific policy for this AP 12981 * interface. 12982 * 12983 * @QCA_WLAN_CONCURRENT_AP_POLICY_GAMING_AUDIO: Select interface concurrencies 12984 * to meet gaming audio latency requirements. 12985 * This policy is used only when the driver advertises support for 12986 * QCA_WLAN_VENDOR_FEATURE_ENHANCED_AUDIO_EXPERIENCE_OVER_WLAN. 12987 * 12988 * @QCA_WLAN_CONCURRENT_AP_POLICY_LOSSLESS_AUDIO_STREAMING: Select interface 12989 * concurrencies to meet lossless audio streaming requirements. 12990 * This policy is used only when the driver advertises support for 12991 * QCA_WLAN_VENDOR_FEATURE_ENHANCED_AUDIO_EXPERIENCE_OVER_WLAN. 12992 * 12993 * @QCA_WLAN_CONCURRENT_AP_POLICY_XR: Select interface concurrencies to meet 12994 * XR (eXtended Reality) requirements. 12995 */ 12996 enum qca_wlan_concurrent_ap_policy_config { 12997 QCA_WLAN_CONCURRENT_AP_POLICY_UNSPECIFIED = 0, 12998 QCA_WLAN_CONCURRENT_AP_POLICY_GAMING_AUDIO = 1, 12999 QCA_WLAN_CONCURRENT_AP_POLICY_LOSSLESS_AUDIO_STREAMING = 2, 13000 QCA_WLAN_CONCURRENT_AP_POLICY_XR = 3, 13001 }; 13002 13003 /** 13004 * enum qca_wlan_vendor_attr_concurrent_policy - Defines attributes 13005 * used by QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_POLICY vendor command. 13006 * 13007 * @QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_STA_CONFIG: 13008 * u8 attribute. Configures the concurrent STA policy configuration. 13009 * Possible values are defined in enum qca_wlan_concurrent_sta_policy_config. 13010 13011 * @QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_AP_CONFIG: 13012 * u8 attribute. Configures the concurrent AP policy configuration. 13013 * Possible values are defined in enum qca_wlan_concurrent_ap_policy_config. 13014 */ 13015 enum qca_wlan_vendor_attr_concurrent_policy { 13016 QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_INVALID = 0, 13017 QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_STA_CONFIG = 1, 13018 QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_AP_CONFIG = 2, 13019 13020 /* keep last */ 13021 QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_AFTER_LAST, 13022 QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_MAX = 13023 QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_AFTER_LAST - 1, 13024 13025 }; 13026 13027 /* Compatibility defines for previously used enum 13028 * qca_wlan_vendor_attr_concurrent_policy names. These values should not be used 13029 * in any new implementation. 13030 */ 13031 #define QCA_WLAN_VENDOR_ATTR_CONCURRENT_STA_POLICY_CONFIG \ 13032 QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_STA_CONFIG 13033 #define QCA_WLAN_VENDOR_ATTR_CONCURRENT_STA_POLICY_MAX \ 13034 QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_MAX 13035 #define qca_wlan_vendor_attr_concurrent_sta_policy \ 13036 qca_wlan_vendor_attr_concurrent_policy 13037 13038 /** 13039 * enum qca_sta_connect_fail_reason_codes - Defines values carried 13040 * by QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_CONNECT_FAIL_REASON_CODE vendor 13041 * attribute. 13042 * @QCA_STA_CONNECT_FAIL_REASON_NO_BSS_FOUND: No Probe Response frame received 13043 * for unicast Probe Request frame. 13044 * @QCA_STA_CONNECT_FAIL_REASON_AUTH_TX_FAIL: STA failed to send auth request. 13045 * @QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_ACK_RECEIVED: AP didn't send ACK for 13046 * auth request. 13047 * @QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_RESP_RECEIVED: Auth response is not 13048 * received from AP. 13049 * @QCA_STA_CONNECT_FAIL_REASON_ASSOC_REQ_TX_FAIL: STA failed to send 13050 * Association Request frame. 13051 * @QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_ACK_RECEIVED: AP didn't send ACK for 13052 * Association Request frame. 13053 * @QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_RESP_RECEIVED: Association Response 13054 * frame is not received from AP. 13055 */ 13056 enum qca_sta_connect_fail_reason_codes { 13057 QCA_STA_CONNECT_FAIL_REASON_NO_BSS_FOUND = 1, 13058 QCA_STA_CONNECT_FAIL_REASON_AUTH_TX_FAIL = 2, 13059 QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_ACK_RECEIVED = 3, 13060 QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_RESP_RECEIVED = 4, 13061 QCA_STA_CONNECT_FAIL_REASON_ASSOC_REQ_TX_FAIL = 5, 13062 QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_ACK_RECEIVED = 6, 13063 QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_RESP_RECEIVED = 7, 13064 }; 13065 13066 /** 13067 * enum qca_wlan_vendor_usable_channels_filter - Bitmask of different 13068 * filters defined in this enum are used in attribute 13069 * %QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_FILTER_MASK. 13070 * 13071 * @QCA_WLAN_VENDOR_FILTER_CELLULAR_COEX: When this bit is set, the driver 13072 * shall filter the channels which are not usable because of coexistence with 13073 * cellular radio. 13074 * @QCA_WLAN_VENDOR_FILTER_WLAN_CONCURRENCY: When this bit is set, the driver 13075 * shall filter the channels which are not usable because of existing active 13076 * interfaces in the driver and will result in Multi Channel Concurrency, etc. 13077 * 13078 */ 13079 enum qca_wlan_vendor_usable_channels_filter { 13080 QCA_WLAN_VENDOR_FILTER_CELLULAR_COEX = 0, 13081 QCA_WLAN_VENDOR_FILTER_WLAN_CONCURRENCY = 1, 13082 }; 13083 13084 /** 13085 * enum qca_wlan_vendor_attr_chan_info - Attributes used inside 13086 * %QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_CHAN_INFO nested attribute. 13087 * 13088 * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_PRIMARY_FREQ: 13089 * u32 attribute, required. Indicates the center frequency of the primary 13090 * channel in MHz. 13091 * 13092 * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG0_FREQ: 13093 * u32 attribute. Indicates the center frequency of the primary segment of the 13094 * channel in MHz. This attribute is required when reporting 40 MHz, 80 MHz, 13095 * 160 MHz, and 320 MHz channels. 13096 * 13097 * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG1_FREQ: 13098 * u32 attribute. Indicates the center frequency of the secondary segment of 13099 * 80+80 channel in MHz. This attribute is required only when 13100 * QCA_WLAN_VENDOR_ATTR_CHAN_INFO_BANDWIDTH is set to NL80211_CHAN_WIDTH_80P80. 13101 * 13102 * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_BANDWIDTH: 13103 * u32 attribute, required. Indicates the bandwidth of the channel, possible 13104 * values are defined in enum nl80211_chan_width. 13105 * 13106 * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_IFACE_MODE_MASK: 13107 * u32 attribute, required. Indicates all the interface types for which this 13108 * channel is usable. This attribute encapsulates bitmasks of interface types 13109 * defined in enum nl80211_iftype. 13110 * 13111 */ 13112 enum qca_wlan_vendor_attr_chan_info { 13113 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_INVALID = 0, 13114 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_PRIMARY_FREQ = 1, 13115 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG0_FREQ = 2, 13116 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG1_FREQ = 3, 13117 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_BANDWIDTH = 4, 13118 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_IFACE_MODE_MASK = 5, 13119 13120 /* keep last */ 13121 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_AFTER_LAST, 13122 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_MAX = 13123 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_AFTER_LAST - 1, 13124 }; 13125 13126 /** 13127 * enum qca_wlan_vendor_attr_usable_channels - Attributes used by 13128 * %QCA_NL80211_VENDOR_SUBCMD_USABLE_CHANNELS vendor command. 13129 * 13130 * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_BAND_MASK: 13131 * u32 attribute. Indicates the bands from which the channels should be reported 13132 * in response. This attribute encapsulates bit masks of bands defined in enum 13133 * nl80211_band. Optional attribute, if not present in the request the driver 13134 * shall return channels from all supported bands. 13135 * 13136 * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_IFACE_MODE_MASK: 13137 * u32 attribute. Indicates all the interface types for which the usable 13138 * channels information is requested. This attribute encapsulates bitmasks of 13139 * interface types defined in enum nl80211_iftype. Optional attribute, if not 13140 * present in the request the driver shall send information of all supported 13141 * interface modes. 13142 * 13143 * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_FILTER_MASK: 13144 * u32 attribute. This attribute carries information of all filters that shall 13145 * be applied while populating usable channels information by the driver. This 13146 * attribute carries bit masks of different filters defined in enum 13147 * qca_wlan_vendor_usable_channels_filter. Optional attribute, if not present 13148 * in the request the driver shall send information of channels without applying 13149 * any of the filters that can be configured through this attribute. 13150 * 13151 * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_CHAN_INFO: 13152 * Nested attribute. This attribute shall be used by the driver to send 13153 * usability information of each channel. The attributes defined in enum 13154 * qca_wlan_vendor_attr_chan_info are used inside this attribute. 13155 */ 13156 enum qca_wlan_vendor_attr_usable_channels { 13157 QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_INVALID = 0, 13158 QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_BAND_MASK = 1, 13159 QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_IFACE_MODE_MASK = 2, 13160 QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_FILTER_MASK = 3, 13161 QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_CHAN_INFO = 4, 13162 13163 /* keep last */ 13164 QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_AFTER_LAST, 13165 QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_MAX = 13166 QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_AFTER_LAST - 1, 13167 }; 13168 13169 /** 13170 * enum qca_wlan_vendor_attr_radar_history: Used by the vendor command 13171 * QCA_NL80211_VENDOR_SUBCMD_GET_RADAR_HISTORY to get DFS radar history. 13172 * 13173 * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_ENTRIES: Nested attribute to carry 13174 * the list of radar history entries. 13175 * Each entry contains freq, timestamp, and radar signal detect flag. 13176 * The driver shall add an entry when CAC has finished, or radar signal 13177 * has been detected post AP beaconing. The driver shall maintain at least 13178 * 8 entries in order to save CAC result for a 160 MHz channel. 13179 * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_FREQ: u32 attribute. 13180 * Channel frequency in MHz. 13181 * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_TIMESTAMP: u64 nanoseconds. 13182 * CLOCK_BOOTTIME timestamp when this entry is updated due to CAC 13183 * or radar detection. 13184 * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_DETECTED: NLA_FLAG attribute. 13185 * This flag indicates radar signal has been detected. 13186 * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_PAD: Attribute used for padding for 13187 * 64-bit alignment. 13188 */ 13189 enum qca_wlan_vendor_attr_radar_history { 13190 QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_INVALID = 0, 13191 13192 QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_ENTRIES = 1, 13193 QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_FREQ = 2, 13194 QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_TIMESTAMP = 3, 13195 QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_DETECTED = 4, 13196 QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_PAD = 5, 13197 13198 /* keep last */ 13199 QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_LAST, 13200 QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_MAX = 13201 QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_LAST - 1, 13202 }; 13203 13204 /** 13205 * enum qca_wlan_vendor_mcc_quota_type: MCC channel time quota type 13206 * 13207 * @QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_CLEAR: In the event, it indicates that the 13208 * target exited MCC state and cleared the quota information. In the 13209 * command it clears MCC quota setting and restores adaptive scheduling. 13210 * @QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_FIXED: Channel time quota is fixed and 13211 * will not be changed. 13212 * This quota type is present in command/event. 13213 * @QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_DYNAMIC: Channel time quota is dynamic 13214 * and the target may change the quota based on the data activity. 13215 * This quota type is only present in event. 13216 * @QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_LOW_LATENCY: Channel time quota is optimized 13217 * by the target for low latency. 13218 * This quota type is only present in command. 13219 */ 13220 enum qca_wlan_vendor_mcc_quota_type { 13221 QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_CLEAR = 0, 13222 QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_FIXED = 1, 13223 QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_DYNAMIC = 2, 13224 QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_LOW_LATENCY = 3, 13225 }; 13226 13227 /** 13228 * enum qca_wlan_vendor_attr_mcc_quota: Used by the vendor event 13229 * QCA_NL80211_VENDOR_SUBCMD_MCC_QUOTA to indicate MCC channel 13230 * quota information or as a command to set the required MCC quota for an 13231 * interface. 13232 * 13233 * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_TYPE: u32 attribute. 13234 * The type is defined in enum qca_wlan_vendor_mcc_quota_type. 13235 * In a command this specifies the MCC quota type to be set for the interface. 13236 * In an event this provides the current quota type in force. 13237 * This is required in a command and an event. 13238 * 13239 * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_ENTRIES: Nested attribute to carry 13240 * the list of channel quota entries. 13241 * In an event each entry contains the frequency and respective time quota for 13242 * all the MCC interfaces. 13243 * In a command it specifies the interface index and respective time quota. 13244 * In a command only one entry (ifindex, quota pair) may be specified. 13245 * 13246 * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_FREQ: u32 attribute. 13247 * Channel frequency in MHz. This is present only in an event. 13248 * 13249 * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_TIME_PERCENTAGE: u32 attribute. 13250 * Channel time quota expressed as percentage. 13251 * This is present in an event and a command. 13252 * In an command, the user shall specify the quota to be allocated for the 13253 * interface represented by %QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_IFINDEX. 13254 * In an event this provides the existing quota for the channel. 13255 * 13256 * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_IFINDEX: u32 attribute. 13257 * Specifies the interface index (netdev) for which the corresponding 13258 * configurations are applied. This is required in a command only. Only one 13259 * interface index may be specified. If not specified, the configuration is 13260 * rejected. 13261 * 13262 * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_LOW_LATENCY_MODE_ENABLE 13263 * 8-bit unsigned value to enable/disable Multi-Channel Concurrency 13264 * low latency mode. The firmware will do optimization for low 13265 * latency in Multi-Channel concurrency state if enabled. And all existing 13266 * user quota setting will be overwritten by the target. 13267 * 0 - disable(default), 1 - enable. 13268 * It is only present in a command with quota type of 13269 * QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_LOW_LATENCY. 13270 */ 13271 enum qca_wlan_vendor_attr_mcc_quota { 13272 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_INVALID = 0, 13273 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_TYPE = 1, 13274 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_ENTRIES = 2, 13275 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_FREQ = 3, 13276 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_TIME_PERCENTAGE = 4, 13277 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_IFINDEX = 5, 13278 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_LOW_LATENCY_MODE_ENABLE = 6, 13279 13280 /* keep last */ 13281 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_LAST, 13282 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_MAX = 13283 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_LAST - 1, 13284 }; 13285 13286 /** 13287 * enum qca_wlan_roam_stats_invoke_reason - Roam invoke reason. These values 13288 * are used by the attribute 13289 * %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_USER_TRIGGER_INVOKE_REASON. 13290 * 13291 * @QCA_WLAN_ROAM_STATS_INVOKE_REASON_UNDEFINED: Default value when target 13292 * invoke roam. 13293 * @QCA_WLAN_ROAM_STATS_INVOKE_REASON_NUD_FAILURE: Neighbor unreachable 13294 * detection failed when the roam trigger. 13295 * @QCA_WLAN_ROAM_STATS_INVOKE_REASON_USER_SPACE: Invoke from user space. 13296 */ 13297 13298 enum qca_wlan_roam_stats_invoke_reason { 13299 QCA_WLAN_ROAM_STATS_INVOKE_REASON_UNDEFINED = 0, 13300 QCA_WLAN_ROAM_STATS_INVOKE_REASON_NUD_FAILURE = 1, 13301 QCA_WLAN_ROAM_STATS_INVOKE_REASON_USER_SPACE = 2, 13302 }; 13303 13304 /** 13305 * enum qca_wlan_roam_stats_tx_failures_reason - Roam TX failures reason. These 13306 * values are used by the attribute 13307 * %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_TX_FAILURES_REASON. 13308 * 13309 * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_UNSPECIFIED: Default value when 13310 * roam by kickout. 13311 * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_XRETRY: Excessive retry when roam 13312 * trigger by kickout. 13313 * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_INACTIVITY: Station inactivity when 13314 * roam trigger by kickout. 13315 * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_IBSS_DISCONNECT: IBSS disconnect when 13316 * roam trigger by kickout. 13317 * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_TDLS_DISCONNECT: TDLS peer has 13318 * disappeared, and all TX is failing when roam trigger by kickout. 13319 * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_SA_QUERY_TIMEOUT: SA query process 13320 * timeout when roam trigger by kickout. 13321 * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_ROAMING_EVENT: Directly connected 13322 * peer has roamed to a repeater. 13323 */ 13324 enum qca_wlan_roam_stats_tx_failures_reason { 13325 QCA_WLAN_ROAM_STATS_KICKOUT_REASON_UNSPECIFIED = 0, 13326 QCA_WLAN_ROAM_STATS_KICKOUT_REASON_XRETRY = 1, 13327 QCA_WLAN_ROAM_STATS_KICKOUT_REASON_INACTIVITY = 2, 13328 QCA_WLAN_ROAM_STATS_KICKOUT_REASON_IBSS_DISCONNECT = 3, 13329 QCA_WLAN_ROAM_STATS_KICKOUT_REASON_TDLS_DISCONNECT = 4, 13330 QCA_WLAN_ROAM_STATS_KICKOUT_REASON_SA_QUERY_TIMEOUT = 5, 13331 QCA_WLAN_ROAM_STATS_KICKOUT_REASON_ROAMING_EVENT = 6, 13332 }; 13333 13334 /** 13335 * enum qca_wlan_roam_stats_abort_reason - Roam abort reason. These values 13336 * are used by the attribute %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ABORT_REASON. 13337 * 13338 * @QCA_WLAN_ROAM_STATS_ABORT_UNSPECIFIED: Target did not specify the 13339 * detailed reason for roam scan being aborted. 13340 * @QCA_WLAN_ROAM_STATS_ABORT_LOWRSSI_DATA_RSSI_HIGH: Roam scan is not 13341 * started due to high data RSSI during LOW-RSSI roaming. 13342 * @QCA_WLAN_ROAM_STATS_ABORT_LOWRSSI_LINK_SPEED_GOOD: Roam scan is not 13343 * started due to good link speed during LOW-RSSI roaming. 13344 * @QCA_WLAN_ROAM_STATS_ABORT_BG_DATA_RSSI_HIGH: Roam scan is not started 13345 * due to high data RSSI during background roaming. 13346 * @QCA_WLAN_ROAM_STATS_ABORT_BG_RSSI_ABOVE_THRESHOLD: Roam scan is not 13347 * started due to high beacon RSSI during background roaming 13348 */ 13349 enum qca_wlan_roam_stats_abort_reason { 13350 QCA_WLAN_ROAM_STATS_ABORT_UNSPECIFIED = 0, 13351 QCA_WLAN_ROAM_STATS_ABORT_LOWRSSI_DATA_RSSI_HIGH = 1, 13352 QCA_WLAN_ROAM_STATS_ABORT_LOWRSSI_LINK_SPEED_GOOD = 2, 13353 QCA_WLAN_ROAM_STATS_ABORT_BG_DATA_RSSI_HIGH = 3, 13354 QCA_WLAN_ROAM_STATS_ABORT_BG_RSSI_ABOVE_THRESHOLD = 4, 13355 }; 13356 13357 /** 13358 * enum qca_wlan_roam_stats_scan_type - Roam scan type define. 13359 * These values are used by the attribute 13360 * %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_TYPE. 13361 * 13362 * @QCA_WLAN_ROAM_STATS_SCAN_TYPE_PARTIAL: Partial channel scan 13363 * @QCA_WLAN_ROAM_STATS_SCAN_TYPE_FULL: Full channel scan 13364 * @QCA_WLAN_ROAM_STATS_SCAN_TYPE_NO_SCAN: No roam scan was triggered. 13365 * This is generally used in BTM events to indicate BTM frame exchange logs. 13366 * @QCA_WLAN_ROAM_STATS_SCAN_TYPE_HIGHER_BAND_5GHZ_6GHZ: Higher band roam scan 13367 * from 2.4 GHz to 5 GHz or 6 GHz 13368 * @QCA_WLAN_ROAM_STATS_SCAN_TYPE_HIGHER_BAND_6GHZ: Higher band roam scan from 13369 * 5 GHz to 6 GHz 13370 */ 13371 enum qca_wlan_roam_stats_scan_type { 13372 QCA_WLAN_ROAM_STATS_SCAN_TYPE_PARTIAL = 0, 13373 QCA_WLAN_ROAM_STATS_SCAN_TYPE_FULL = 1, 13374 QCA_WLAN_ROAM_STATS_SCAN_TYPE_NO_SCAN = 2, 13375 QCA_WLAN_ROAM_STATS_SCAN_TYPE_HIGHER_BAND_5GHZ_6GHZ = 3, 13376 QCA_WLAN_ROAM_STATS_SCAN_TYPE_HIGHER_BAND_6GHZ = 4, 13377 }; 13378 13379 /** 13380 * enum qca_wlan_roam_stats_scan_dwell_type - Roam scan dwell type. 13381 * These values are used by the attribute 13382 * %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_DWELL_TYPE. 13383 * 13384 * @QCA_WLAN_ROAM_STATS_DWELL_TYPE_UNSPECIFIED: Target did not specify the 13385 * detailed roam scan type. 13386 * @QCA_WLAN_ROAM_STATS_DWELL_ACTIVE_TYPE: Active scan during roam. 13387 * @QCA_WLAN_ROAM_STATS_DWELL_PASSIVE_TYPE: Passive scan during roam. 13388 */ 13389 enum qca_wlan_roam_stats_scan_dwell_type { 13390 QCA_WLAN_ROAM_STATS_DWELL_TYPE_UNSPECIFIED = 0, 13391 QCA_WLAN_ROAM_STATS_DWELL_TYPE_ACTIVE = 1, 13392 QCA_WLAN_ROAM_STATS_DWELL_TYPE_PASSIVE = 2, 13393 }; 13394 13395 /** 13396 * enum qca_wlan_vendor_attr_roam_stats_scan_chan_info - Attributes used inside 13397 * the %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_CHAN_INFO nested attribute. 13398 */ 13399 enum qca_wlan_vendor_attr_roam_stats_scan_chan_info { 13400 /* 32-bit unsigned value to indicate center frequency of the primary 13401 * channel in MHz for each roam scan channel. 13402 */ 13403 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_CHANNEL_FREQ = 1, 13404 /* 8-bit unsigned value to indicate channel scan type for each 13405 * roam scan channel, values in qca_wlan_roam_stats_scan_dwell_type. 13406 */ 13407 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_DWELL_TYPE = 2, 13408 /* 32-bit unsigned value to indicate maximum scan time in milliseconds 13409 * for each roam scan channel. 13410 */ 13411 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_MAX_DWELL_TIME = 3, 13412 13413 /* keep last */ 13414 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_INFO_AFTER_LAST, 13415 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_INFO_FRAME_MAX = 13416 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_INFO_AFTER_LAST - 1, 13417 }; 13418 13419 /** 13420 * enum qca_wlan_roam_stats_frame_subtype - Roam frame subtypes. These values 13421 * are used by the attribute %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_SUBTYPE. 13422 * 13423 * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_AUTH_RESP: Authentication Response frame 13424 * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_REASSOC_RESP: Reassociation Response frame 13425 * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M1: EAPOL-Key M1 frame 13426 * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M2: EAPOL-Key M2 frame 13427 * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M3: EAPOL-Key M3 frame 13428 * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M4: EAPOL-Key M4 frame 13429 * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_GTK_M1: EAPOL-Key GTK M1 frame 13430 * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_GTK_M2: EAPOL-Key GTK M2 frame 13431 * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_AUTH_REQ: Authentication Request frame 13432 * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_REASSOC_REQ: Reassociation Request frame 13433 */ 13434 enum qca_wlan_roam_stats_frame_subtype { 13435 QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_AUTH_RESP = 1, 13436 QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_REASSOC_RESP = 2, 13437 QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M1 = 3, 13438 QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M2 = 4, 13439 QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M3 = 5, 13440 QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M4 = 6, 13441 QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_GTK_M1 = 7, 13442 QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_GTK_M2 = 8, 13443 QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_AUTH_REQ = 9, 13444 QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_REASSOC_REQ = 10, 13445 }; 13446 13447 /* Compatibility defines for previously used names. 13448 * These values should not be used in any new implementation. 13449 */ 13450 #define QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_PREAUTH \ 13451 QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_AUTH_RESP 13452 #define QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_REASSOC \ 13453 QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_REASSOC_RESP 13454 13455 /** 13456 * enum roam_frame_status - Specifies the valid values the vendor roam frame 13457 * attribute QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_STATUS can take. 13458 * 13459 * @QCA_WLAN_ROAM_FRAME_STATUS_SUCCESS: It indicates the roam frame was 13460 * sent or received successfully. 13461 * @QCA_WLAN_ROAM_FRAME_STATUS_FAIL: It indicates the roam frame sending or 13462 * receiving failed. 13463 */ 13464 enum qca_wlan_roam_stats_frame_status { 13465 QCA_WLAN_ROAM_STATS_FRAME_STATUS_SUCCESS = 0, 13466 QCA_WLAN_ROAM_STATS_FRAME_STATUS_FAIL = 1, 13467 }; 13468 13469 /** 13470 * enum qca_wlan_vendor_attr_roam_stats_frame_info - Attributes used within the 13471 * %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_INFO nested attribute. 13472 */ 13473 enum qca_wlan_vendor_attr_roam_stats_frame_info { 13474 /* 8-bit unsigned value to indicate the frame subtype during 13475 * roaming, one of the values in qca_wlan_roam_stats_frame_subtype. 13476 */ 13477 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_SUBTYPE = 1, 13478 /* 8-bit unsigned value to indicate the frame is successful or failed 13479 * during roaming, one of the values in 13480 * qca_wlan_roam_stats_frame_status. 13481 */ 13482 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_STATUS = 2, 13483 /* 64-bit unsigned value to indicate the timestamp for frame of 13484 * preauthentication/reassociation/EAPOL-M1/EAPOL-M2/EAPOL-M3/EAPOL-M4 13485 * when sent or received during roaming, timestamp in milliseconds 13486 * from system boot. 13487 */ 13488 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_TIMESTAMP = 3, 13489 /* Attribute used for padding for 64-bit alignment */ 13490 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_PAD = 4, 13491 /* This attribute indicates a 6-byte MAC address representing 13492 * the BSSID of the AP. 13493 * For non-MLO scenario, it indicates the AP BSSID. 13494 * For MLO scenario, it indicates the AP BSSID which may be the primary 13495 * link BSSID or a nonprimary link BSSID. 13496 */ 13497 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_BSSID = 5, 13498 13499 /* keep last */ 13500 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_INFO_AFTER_LAST, 13501 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_INFO_MAX = 13502 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_INFO_AFTER_LAST - 1, 13503 }; 13504 13505 /** 13506 * enum qca_wlan_vendor_attr_roam_stats_info - Used by the attribute 13507 * QCA_WLAN_VENDOR_ATTR_ROAM_STATS_INFO. 13508 */ 13509 enum qca_wlan_vendor_attr_roam_stats_info { 13510 /* 64-bit unsigned value to indicate the timestamp when roam was 13511 * triggered by the firmware, timestamp in milliseconds from system 13512 * boot. 13513 */ 13514 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ROAM_TRIGGER_TIMESTAMP = 1, 13515 /* 32-bit unsigned value to indicate the roam trigger reason for the 13516 * last roaming attempted by the firmware. This can be queried either 13517 * in a connected state or disconnected state. The values of this 13518 * attribute represent the roam trigger reason codes, which 13519 * are defined in enum qca_roam_reason. 13520 */ 13521 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_TRIGGER_REASON = 2, 13522 /* 8-bit unsigned value to indicate percentage of packets for which 13523 * the RX rate is lower than the RX rate threshold in total RX packets, 13524 * used for roaming trigger by per. 13525 */ 13526 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_PER_RXRATE_THRESHOLD_PERCENT = 3, 13527 /* 8-bit unsigned value to indicate percentage of packets for which 13528 * the TX rate is lower than TX rate threshold in total TX packets, 13529 * used for roaming trigger by per. 13530 */ 13531 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_PER_TXRATE_THRESHOLD_PERCENT = 4, 13532 /* 32-bit unsigned value to indicate final beacon miss count for 13533 * trigger reason of beacon miss. 13534 */ 13535 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FINAL_BMISS_CNT = 5, 13536 /* 32-bit unsigned value to indicate consecutive beacon miss count 13537 * for trigger reason of beacon miss. 13538 */ 13539 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_CONSECUTIVE_BMISS_CNT = 6, 13540 /* 8-bit unsigned value to indicate QOS-NULL TX status for trigger 13541 * reason of beacon miss, 0 - success, 1 - fail. 13542 * If QOS-NULL TX status is successful, beacon miss final count and 13543 * consecutive beacon miss count will be reset to zero, and roam will 13544 * not be triggered. If QOS-NULL TX status is failed, beacon miss final 13545 * count and consecutive beacon miss count continue to calculate until 13546 * roaming trigger by beacon miss. 13547 */ 13548 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BMISS_QOS_NULL_SUCCESS = 7, 13549 /* 8-bit signed value to indicate connected AP RSSI in dBm 13550 * for trigger reason of poor RSSI. 13551 */ 13552 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_POOR_RSSI_CURRENT_RSSI = 8, 13553 /* 8-bit signed value to indicate RSSI threshold value in dBm 13554 * for trigger reason of poor RSSI. 13555 */ 13556 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_POOR_RSSI_ROAM_RSSI_THRESHOLD = 9, 13557 /* 8-bit unsigned value to indicate RX link speed status 13558 * for trigger reason of poor RSSI, 0 - good link speed, 13559 * 1 - bad link speed. 13560 */ 13561 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_POOR_RSSI_RX_LINKSPEED_STATUS = 10, 13562 /* 8-bit signed value to indicate connected AP RSSI in dBm 13563 * for trigger reason of better RSSI. 13564 */ 13565 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BETTER_RSSI_CURRENT_RSSI = 11, 13566 /* 8-bit signed value to indicate RSSI threshold value in dBm 13567 * for trigger reason of better RSSI. 13568 */ 13569 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BETTER_RSSI_HIGH_RSSI_THRESHOLD = 12, 13570 /* 32-bit unsigned value to indicate RX throughput in bytes per second 13571 * for trigger reason of congestion. 13572 */ 13573 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_CONGESTION_RX_TPUT = 13, 13574 /* 32-bit unsigned value to indicate TX throughput in bytes per second 13575 * for trigger reason of congestion. 13576 */ 13577 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_CONGESTION_TX_TPUT = 14, 13578 /* 8-bit unsigned value to indicate roamable AP count 13579 * for trigger reason of congestion. 13580 */ 13581 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_CONGESTION_ROAMABLE_CNT = 15, 13582 /* 8-bit unsigned value to indicate invoke reason, one of the values 13583 * defined in qca_wlan_roam_stats_invoke_reason. 13584 */ 13585 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_USER_TRIGGER_INVOKE_REASON = 16, 13586 /* 8-bit unsigned value to indicate request mode for trigger reason 13587 * of BTM, values are defined in IEEE Std 802.11-2020, 9.6.13.9. 13588 */ 13589 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_REQUEST_MODE = 17, 13590 /* 32-bit unsigned value to indicate disassociate time in milliseconds 13591 * for trigger reason of BTM. 13592 */ 13593 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_DISASSOC_IMMINENT_TIME = 18, 13594 /* 32-bit unsigned value to indicate preferred candidate list valid 13595 * interval in milliseconds for trigger reason of BTM. 13596 */ 13597 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_VALID_INTERNAL = 19, 13598 /* 8-bit unsigned value to indicate the number of preferred 13599 * candidates for trigger reason of BTM. 13600 */ 13601 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_CANDIDATE_LIST_CNT = 20, 13602 /* 8-bit unsigned value to indicate response status for trigger 13603 * reason of BTM, values are defined in IEEE Std 802.11-2020, 13604 * Table 9-428 (BTM status code definitions). 13605 */ 13606 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_RESPONSE_STATUS_CODE = 21, 13607 /* 32-bit unsigned value to indicate BSS termination timeout value 13608 * in milliseconds for trigger reason of BTM. 13609 */ 13610 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_BSS_TERMINATION_TIMEOUT = 22, 13611 /* 32-bit unsigned value to indicate MBO associate retry timeout 13612 * value in milliseconds for trigger reason of BTM. 13613 */ 13614 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_MBO_ASSOC_RETRY_TIMEOUT = 23, 13615 /* 8-bit unsigned value to indicate dialog token number 13616 * for trigger reason of BTM. 13617 */ 13618 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_REQ_DIALOG_TOKEN = 24, 13619 /* 8-bit unsigned value to indicate percentage of connected AP 13620 * channel congestion utilization for trigger reason of BSS load. 13621 */ 13622 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BSS_CU_LOAD = 25, 13623 /* 8-bit unsigned value to indicate disconnection type 13624 * for trigger reason of disconnection. 1 - Deauthentication, 13625 * 2 - Disassociation. 13626 */ 13627 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_DISCONNECTION_TYPE = 26, 13628 /* 16-bit unsigned value to indicate deauthentication or disassociation 13629 * reason for trigger reason of disconnection, values are defined 13630 * in IEEE Std 802.11-2020, Table 9-49 (Reason codes). 13631 */ 13632 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_DISCONNECTION_REASON = 27, 13633 /* 32-bit unsigned value to indicate milliseconds of roam scan 13634 * periodicity when needing to roam to find a better AP for trigger 13635 * reason of periodic timer. 13636 */ 13637 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_PERIODIC_TIMER_MS = 28, 13638 /* 8-bit signed value to indicate connected AP RSSI in dBm for 13639 * trigger reason of background scan. 13640 */ 13641 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BACKGROUND_SCAN_CURRENT_RSSI = 29, 13642 /* 8-bit signed value to indicate data RSSI in dBm for trigger reason 13643 * of background scan. 13644 */ 13645 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BACKGROUND_SCAN_DATA_RSSI = 30, 13646 /* 8-bit signed value to indicate data RSSI threshold in dBm 13647 * for trigger reason of background scan. 13648 */ 13649 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BACKGROUND_SCAN_DATA_RSSI_THRESH = 31, 13650 /* 32-bit unsigned value to indicate consecutive TX failure threshold 13651 * for trigger reason of TX failures. 13652 */ 13653 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_TX_FAILURES_THRESHOLD = 32, 13654 /* 8-bit unsigned value to indicate TX failure reason for trigger 13655 * reason of TX failures, one of the values defined in 13656 * qca_wlan_roam_stats_tx_failures_reason. 13657 */ 13658 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_TX_FAILURES_REASON = 33, 13659 /* 8-bit unsigned value to indicate detail abort reason. One of the 13660 * values in enum qca_wlan_roam_stats_abort_reason. 13661 */ 13662 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ABORT_REASON = 34, 13663 /* 8-bit signed value to indicate data RSSI in dBm when aborting the 13664 * roam scan. 13665 */ 13666 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_DATA_RSSI = 35, 13667 /* 8-bit signed value to indicate data RSSI threshold in dBm when 13668 * aborting the roam scan. 13669 */ 13670 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_DATA_RSSI_THRESHOLD = 36, 13671 /* 8-bit unsigned value to indicate data RSSI threshold in RX link 13672 * speed status when aborting the roam scan. 13673 * 0 - good link speed, 1 - bad link speed 13674 */ 13675 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_DATA_RX_LINKSPEED_STATUS = 37, 13676 /* 8-bit unsigned value to indicate roaming scan type. 13677 * One of the values in enum qca_wlan_roam_stats_scan_type. 13678 */ 13679 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_TYPE = 38, 13680 /* 8-bit unsigned value to indicate roaming result, used in STA mode 13681 * only. 13682 * 0-Roaming is successful, 1-Roaming is failed 13683 */ 13684 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ROAM_STATUS = 39, 13685 /* 8-bit unsigned value to indicate the roam fail reason for the 13686 * last failed roaming attempt by the firmware. Different roam failure 13687 * reason codes are specified in enum qca_vendor_roam_fail_reasons. 13688 * This can be queried either in connected state or disconnected state. 13689 */ 13690 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FAIL_REASON = 40, 13691 /* Nested attribute. Indicate roam scan info for each channel, the 13692 * attributes defined in enum 13693 * qca_wlan_vendor_attr_roam_stats_scan_chan_info are used inside 13694 * this attribute. 13695 */ 13696 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_CHAN_INFO = 41, 13697 /* 32-bit unsigned value to indicate total scan time during roam scan 13698 * all channels, time in milliseconds. 13699 */ 13700 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_TOTAL_SCAN_TIME = 42, 13701 /* Nested attribute. This attribute shall be used by the driver to 13702 * send roam information of each subtype. The attributes defined in 13703 * enum qca_wlan_vendor_attr_roam_stats_frame_info are used inside 13704 * this attribute. 13705 */ 13706 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_INFO = 43, 13707 /* Attribute used for padding for 64-bit alignment */ 13708 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_PAD = 44, 13709 /* 6-byte MAC address used by the driver to send roam stats information 13710 * of the original AP BSSID. The original AP is the connected AP before 13711 * roam happens, regardless of the roam resulting in success or failure. 13712 * This attribute is only present when 13713 * QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ROAM_STATUS has a value of 13714 * 0 (success) or 1 (failure). 13715 * For non-MLO scenario, it indicates the original connected AP BSSID. 13716 * For MLO scenario, it indicates the original BSSID of the link 13717 * for which the reassociation occurred during the roam. 13718 */ 13719 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ORIGINAL_BSSID = 45, 13720 /* 6-byte MAC address used by the driver to send roam stats information 13721 * of the roam candidate AP BSSID when roam failed. This is only present 13722 * when QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ROAM_STATUS has a value of 13723 * 1 (failure). If the firmware updates more than one candidate AP BSSID 13724 * to the driver, the driver only fills the last candidate AP BSSID and 13725 * reports it to user space. 13726 * For non-MLO scenario, it indicates the last candidate AP BSSID. 13727 * For MLO scenario, it indicates the AP BSSID which may be the primary 13728 * link BSSID or a nonprimary link BSSID. 13729 */ 13730 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_CANDIDATE_BSSID = 46, 13731 /* 6-byte MAC address used by the driver to send roam stats information 13732 * of the roamed AP BSSID when roam succeeds. This is only present when 13733 * QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ROAM_STATUS has a value of 13734 * 0 (success). 13735 * For non-MLO scenario, it indicates the new AP BSSID to which has 13736 * been successfully roamed. 13737 * For MLO scenario, it indicates the new AP BSSID of the link on 13738 * which the reassociation occurred during the roam. 13739 */ 13740 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ROAMED_BSSID = 47, 13741 13742 /* keep last */ 13743 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_AFTER_LAST, 13744 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_MAX = 13745 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_AFTER_LAST - 1, 13746 }; 13747 13748 /** 13749 * enum qca_wlan_vendor_attr_roam_cached_stats - Vendor subcmd attributes to 13750 * report cached roam info from the driver to user space, enum values are used 13751 * for netlink attributes sent with the 13752 * %QCA_NL80211_VENDOR_SUBCMD_ROAM_STATS sub command. 13753 */ 13754 enum qca_wlan_vendor_attr_roam_cached_stats { 13755 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_INVALID = 0, 13756 /* Nested attribute, this attribute contains nested array roam info 13757 * statistics defined in enum qca_wlan_vendor_attr_roam_stats_info. 13758 */ 13759 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_INFO = 1, 13760 13761 /* keep last */ 13762 QCA_WLAN_VENDOR_ATTR_ROAM_CACHED_STATS_AFTER_LAST, 13763 QCA_WLAN_VENDOR_ATTR_ROAM_CACHED_STATS_MAX = 13764 QCA_WLAN_VENDOR_ATTR_ROAM_CACHED_STATS_AFTER_LAST - 1, 13765 }; 13766 13767 /** 13768 * enum qca_wlan_vendor_attr_supported_radio_cfg - Attributes for 13769 * radio configurations present in each radio combination. 13770 * 13771 * @QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_BAND: u32 attribute indicates 13772 * the band info in the radio configuration. Uses the enum qca_set_band values. 13773 * 13774 * @QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_ANTENNA: u8 attribute indicates 13775 * the number of antennas info in the radio configuration. 13776 */ 13777 enum qca_wlan_vendor_attr_supported_radio_cfg { 13778 QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_INVALID = 0, 13779 QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_BAND = 1, 13780 QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_ANTENNA = 2, 13781 13782 /* keep last */ 13783 QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_LAST, 13784 QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_MAX = 13785 QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_LAST - 1, 13786 }; 13787 13788 /** 13789 * enum qca_wlan_vendor_attr_radio_combination - Attributes for 13790 * radio combinations supported by the device. 13791 * 13792 * @QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_CFGS: Nested attribute 13793 * provides the radio configurations present in the radio combination. 13794 * Uses the enum qca_wlan_vendor_attr_supported_radio_cfg attributes. 13795 * This attribute provides the values for radio combination matrix. 13796 * For standalone config, the number of config values is one and the config 13797 * carries the band and antenna information for standalone configuration. For 13798 * Dual Band Simultaneous (DBS)/Single Band Simultaneous (SBS) mode 13799 * configuration the number of config values is two and the config carries the 13800 * band and antenna information for each simultaneous radio. 13801 */ 13802 enum qca_wlan_vendor_attr_radio_combination { 13803 QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_INVALID = 0, 13804 QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_CFGS = 1, 13805 13806 /* keep last */ 13807 QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_LAST, 13808 QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_MAX = 13809 QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_LAST - 1, 13810 }; 13811 13812 /** 13813 * enum qca_wlan_vendor_attr_radio_combination_matrix - Attributes used by 13814 * %QCA_NL80211_VENDOR_SUBCMD_GET_RADIO_COMBINATION_MATRIX 13815 * 13816 * @QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_SUPPORTED_CFGS: Nested attribute 13817 * provides the radio combinations supported by the device. 13818 * Uses the enum qca_wlan_vendor_attr_radio_combination attributes. 13819 * For example, in the radio combination matrix for a device which has two 13820 * radios, where one radio is capable of 2.4 GHz 2X2 only and another radio is 13821 * capable of either 5 GHz or 6 GHz 2X2, the possible number of radio 13822 * combinations is 5 and the radio combinations are 13823 * {{{2.4 GHz 2X2}}, //Standalone 2.4 GHz 13824 * {{5 GHz 2X2}}, //Standalone 5 GHz 13825 * {{6 GHz 2X2}}, //Standalone 6 GHz 13826 * {{2.4 GHz 2X2}, {5 GHz 2X2}}, //2.4 GHz + 5 GHz DBS 13827 * {{2.4 GHz 2X2}, {6 GHz 2X2}}} //2.4 GHz + 6 GHz DBS 13828 * The band and antenna info together as nested data provides one radio config. 13829 * Standalone configuration has one config with band and antenna nested data. 13830 * Dual Band Simultaneous (DBS)/Single Band Simultaneous (SBS) configuration 13831 * have two nested band and antenna info data. 13832 */ 13833 enum qca_wlan_vendor_attr_radio_combination_matrix { 13834 QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_INVALID = 0, 13835 QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_SUPPORTED_CFGS = 1, 13836 13837 /* keep last */ 13838 QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_LAST, 13839 QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_MAX = 13840 QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_LAST - 1, 13841 }; 13842 13843 /** 13844 * enum qca_wlan_vendor_attr_mdns_offload - Attributes used by 13845 * %QCA_NL80211_VENDOR_SUBCMD_MDNS_OFFLOAD vendor command. 13846 * 13847 * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENABLE: Required (flag) 13848 * Enable mDNS offload. This attribute is mandatory to enable 13849 * mDNS offload feature. If this attribute is not present, mDNS offload 13850 * is disabled. 13851 * 13852 * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_TABLE: Nested attribute containing 13853 * one or more %QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENTRY attributes. This 13854 * attribute is mandatory when enabling the feature, and not required when 13855 * disabling the feature. 13856 * 13857 * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENTRY: Nested attribute containing 13858 * the following attributes: 13859 * %QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_FQDN 13860 * %QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_RESOURCE_RECORDS_COUNT 13861 * %QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_PAYLOAD 13862 * 13863 * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_FQDN: Required string attribute. 13864 * It consists of a hostname and ".local" as the domain name. The character 13865 * set is limited to UTF-8 encoding. The maximum allowed size is 63 bytes. 13866 * It is used to compare the domain in the "QU" query. Only 1 FQDN is 13867 * supported per vdev. 13868 * For example: myphone.local 13869 * 13870 * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_RESOURCE_RECORDS_COUNT: Required 13871 * u16 attribute. It specifies the total number of resource records present 13872 * in the answer section of the answer payload. This attribute is needed by the 13873 * firmware to populate the mDNS response frame for mDNS queries without having 13874 * to parse the answer payload. 13875 * 13876 * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_PAYLOAD: Required binary blob 13877 * attribute sent by the mdnsResponder from userspace. It contains resource 13878 * records of various types (e.g., A, AAAA, PTR, TXT) and service list. This 13879 * payload is passed down to the firmware and is transmitted in response to 13880 * mDNS queries. 13881 * The maximum supported size of the answer payload is 512 bytes. 13882 */ 13883 enum qca_wlan_vendor_attr_mdns_offload { 13884 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_INVALID = 0, 13885 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENABLE = 1, 13886 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_TABLE = 2, 13887 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENTRY = 3, 13888 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_FQDN = 4, 13889 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_RESOURCE_RECORDS_COUNT = 5, 13890 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_PAYLOAD = 6, 13891 13892 /* keep last */ 13893 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_AFTER_LAST, 13894 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_MAX = 13895 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_AFTER_LAST - 1, 13896 }; 13897 13898 /** 13899 * qca_wlan_vendor_monitor_data_frame_type - Represent the various 13900 * Data frame types to be sent over the monitor interface. 13901 */ 13902 enum qca_wlan_vendor_monitor_data_frame_type { 13903 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ALL = BIT(0), 13904 /* valid only if QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ALL is not set 13905 */ 13906 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ARP = BIT(1), 13907 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DHCPV4 = BIT(2), 13908 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DHCPV6 = BIT(3), 13909 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_EAPOL = BIT(4), 13910 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DNSV4 = BIT(5), 13911 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DNSV6 = BIT(6), 13912 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_SYN = BIT(7), 13913 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_SYNACK = BIT(8), 13914 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_FIN = BIT(9), 13915 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_FINACK = BIT(10), 13916 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_ACK = BIT(11), 13917 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_RST = BIT(12), 13918 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ICMPV4 = BIT(13), 13919 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ICMPV6 = BIT(14), 13920 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_RTP = BIT(15), 13921 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_SIP = BIT(16), 13922 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_QOS_NULL = BIT(17), 13923 }; 13924 13925 /** 13926 * qca_wlan_vendor_monitor_mgmt_frame_type - Represent the various 13927 * Management frame types to be sent over the monitor interface. 13928 * @QCA_WLAN_VENDOR_MONITOR_MGMT_FRAME_TYPE_ALL: All the Management Frames. 13929 * @QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_NO_BEACON: All the Management frames 13930 * except the Beacon frame. 13931 * @QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_BEACON: Only the connected 13932 * BSSID Beacon frames. Valid only in the connected state. 13933 * @QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_SCAN_BEACON: Represents 13934 * the Beacon frames obtained during the scan (off channel and connected 13935 * channel), when in connected state. 13936 */ 13937 enum qca_wlan_vendor_monitor_mgmt_frame_type { 13938 QCA_WLAN_VENDOR_MONITOR_MGMT_FRAME_TYPE_ALL = BIT(0), 13939 /* valid only if QCA_WLAN_VENDOR_MONITOR_MGMT_FRAME_TYPE_ALL is not set 13940 */ 13941 QCA_WLAN_VENDOR_MONITOR_MGMT_NO_BEACON = BIT(1), 13942 QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_BEACON = BIT(2), 13943 QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_SCAN_BEACON = BIT(3), 13944 }; 13945 13946 /** 13947 * qca_wlan_vendor_monitor_ctrl_frame_type - Represent the various 13948 * Control frame types to be sent over the monitor interface. 13949 * @QCA_WLAN_VENDOR_MONITOR_CTRL_FRAME_TYPE_ALL: All the Control frames 13950 * @QCA_WLAN_VENDOR_MONITOR_CTRL_TRIGGER_FRAME: Trigger frame 13951 */ 13952 enum qca_wlan_vendor_monitor_ctrl_frame_type { 13953 QCA_WLAN_VENDOR_MONITOR_CTRL_FRAME_TYPE_ALL = BIT(0), 13954 /* valid only if QCA_WLAN_VENDOR_MONITOR_CTRL_FRAME_TYPE_ALL is not set 13955 */ 13956 QCA_WLAN_VENDOR_MONITOR_CTRL_TRIGGER_FRAME = BIT(1), 13957 }; 13958 13959 /** 13960 * enum qca_wlan_vendor_attr_set_monitor_mode - Used by the 13961 * vendor command QCA_NL80211_VENDOR_SUBCMD_SET_MONITOR_MODE to set the 13962 * monitor mode. 13963 * 13964 * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_TX_FRAME_TYPE: u32 attribute. 13965 * Represents the TX Data frame types to be monitored (u32). These Data frames 13966 * are represented by enum qca_wlan_vendor_monitor_data_frame_type. 13967 * 13968 * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_RX_FRAME_TYPE: u32 attribute. 13969 * Represents the RX Data frame types to be monitored (u32). These Data frames 13970 * are represented by enum qca_wlan_vendor_monitor_data_frame_type. 13971 * 13972 * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_TX_FRAME_TYPE: u32 attribute. 13973 * Represents the TX Management frame types to be monitored (u32). These 13974 * Management frames are represented by 13975 * enum qca_wlan_vendor_monitor_mgmt_frame_type. 13976 * 13977 * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_RX_FRAME_TYPE: u32 attribute. 13978 * Represents the RX Management frame types to be monitored (u32). These 13979 * Management frames are represented by 13980 * enum qca_wlan_vendor_monitor_mgmt_frame_type. 13981 * 13982 * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_TX_FRAME_TYPE: u32 attribute. 13983 * Represents the TX Control frame types to be monitored (u32). These Control 13984 * frames are represented by enum qca_wlan_vendor_monitor_ctrl_frame_type. 13985 * 13986 * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_RX_FRAME_TYPE: u32 attribute. 13987 * Represents the RX Control frame types to be monitored (u32). These Control 13988 * frames are represented by enum qca_wlan_vendor_monitor_ctrl_frame_type. 13989 * 13990 * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CONNECTED_BEACON_INTERVAL: u32 13991 * attribute. 13992 * Represents the interval in milliseconds only for the connected Beacon frames, 13993 * expecting the connected BSS's Beacon frames to be sent on the monitor 13994 * interface at this specific interval. 13995 */ 13996 enum qca_wlan_vendor_attr_set_monitor_mode { 13997 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_INVALID = 0, 13998 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_TX_FRAME_TYPE = 1, 13999 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_RX_FRAME_TYPE = 2, 14000 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_TX_FRAME_TYPE = 3, 14001 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_RX_FRAME_TYPE = 4, 14002 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_TX_FRAME_TYPE = 5, 14003 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_RX_FRAME_TYPE = 6, 14004 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CONNECTED_BEACON_INTERVAL = 7, 14005 14006 /* keep last */ 14007 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_AFTER_LAST, 14008 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MAX = 14009 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_AFTER_LAST - 1, 14010 }; 14011 14012 /** 14013 * enum qca_wlan_vendor_roam_scan_state - Roam scan state flags. 14014 * Bits will be set to 1 if the corresponding state is enabled. 14015 * 14016 * @QCA_VENDOR_WLAN_ROAM_SCAN_STATE_START: Scan Start. 14017 * @QCA_VENDOR_WLAN_ROAM_SCAN_STATE_END: Scan end. 14018 */ 14019 enum qca_wlan_vendor_roam_scan_state { 14020 QCA_WLAN_VENDOR_ROAM_SCAN_STATE_START = BIT(0), 14021 QCA_WLAN_VENDOR_ROAM_SCAN_STATE_END = BIT(1), 14022 }; 14023 14024 /** 14025 * enum qca_wlan_vendor_roam_event_type - Roam event type flags. 14026 * Bits will be set to 1 if the corresponding event is notified. 14027 * 14028 * @QCA_WLAN_VENDOR_ROAM_EVENT_TRIGGER_REASON: Represents that the roam event 14029 * carries the trigger reason. When set, it is expected that the roam event 14030 * carries the respective reason via the attribute 14031 * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TRIGGER_REASON. This event also carries 14032 * the BSSID, RSSI, frequency info of the AP to which the roam is attempted. 14033 * 14034 * @QCA_WLAN_VENDOR_ROAM_EVENT_FAIL_REASON: Represents that the roam event 14035 * carries the roam fail reason. When set, it is expected that the roam event 14036 * carries the respective reason via the attribute 14037 * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_FAIL_REASON. This event also carries the 14038 * BSSID, RSSI, frequency info of the AP to which the roam was attempted. 14039 * 14040 * @QCA_WLAN_VENDOR_ROAM_EVENT_INVOKE_FAIL_REASON: Represents that the roam 14041 * event carries the roam invoke fail reason. When set, it is expected that 14042 * the roam event carries the respective reason via the attribute 14043 * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVOKE_FAIL_REASON. 14044 * 14045 * @QCA_WLAN_VENDOR_ROAM_EVENT_SCAN_STATE: Represents that the roam event 14046 * carries the roam scan state. When set, it is expected that the roam event 14047 * carries the respective scan state via the attribute 14048 * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_STATE and the corresponding 14049 * frequency info via QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_FREQ_LIST. 14050 */ 14051 enum qca_wlan_vendor_roam_event_type { 14052 QCA_WLAN_VENDOR_ROAM_EVENT_TRIGGER_REASON = BIT(0), 14053 QCA_WLAN_VENDOR_ROAM_EVENT_FAIL_REASON = BIT(1), 14054 QCA_WLAN_VENDOR_ROAM_EVENT_INVOKE_FAIL_REASON = BIT(2), 14055 QCA_WLAN_VENDOR_ROAM_EVENT_ROAM_SCAN_STATE = BIT(3), 14056 }; 14057 14058 /** 14059 * enum qca_wlan_vendor_attr_roam_events_candidate_info: Roam candidate info. 14060 * Referred by QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO. 14061 * 14062 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_BSSID: 6-byte MAC address 14063 * representing the BSSID of the AP to which the roam is attempted. 14064 * 14065 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_RSSI: Signed 32-bit value 14066 * in dBm, signifying the RSSI of the candidate BSSID to which the Roaming is 14067 * attempted. 14068 * 14069 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FREQ: u32, frequency in MHz 14070 * on which the roam is attempted. 14071 * 14072 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FAIL_REASON: u32, used in 14073 * STA mode only. This represents the roam fail reason for the last failed 14074 * roaming attempt by the firmware for the specific BSSID. Different roam 14075 * failure reason codes are specified in enum qca_vendor_roam_fail_reasons. 14076 */ 14077 enum qca_wlan_vendor_attr_roam_events_candidate_info { 14078 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_INVALID = 0, 14079 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_BSSID = 1, 14080 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_RSSI = 2, 14081 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FREQ = 3, 14082 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FAIL_REASON = 4, 14083 14084 /* keep last */ 14085 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_AFTER_LAST, 14086 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_MAX = 14087 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_AFTER_LAST - 1, 14088 }; 14089 14090 /** 14091 * enum qca_wlan_vendor_attr_roam_events - Used by the 14092 * vendor command QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS to either configure the 14093 * roam events to the driver or notify these events from the driver. 14094 * 14095 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CONFIGURE: u8 attribute. Configures the 14096 * driver/firmware to enable/disable the notification of roam events. It's a 14097 * mandatory attribute and used only in the request from the userspace to the 14098 * host driver. 1-Enable, 0-Disable. 14099 * If the roaming is totally offloaded to the firmware, this request when 14100 * enabled shall mandate the firmware to notify all the relevant roam events 14101 * represented by the below attributes. If the host is in the suspend mode, 14102 * the behavior of the firmware to notify these events is guided by 14103 * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_DEVICE_STATE, and if the request is to get 14104 * these events in the suspend state, the firmware is expected to wake up the 14105 * host before the respective events are notified. Please note that such a 14106 * request to get the events in the suspend state will have a definite power 14107 * implication. 14108 * 14109 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_SUSPEND_STATE: flag attribute. Represents 14110 * that the roam events need to be notified in the suspend state too. By 14111 * default, these roam events are notified in the resume state. With this flag, 14112 * the roam events are notified in both resume and suspend states. 14113 * This attribute is used in the request from the userspace to the host driver. 14114 * 14115 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TYPE: u32, used in STA mode only. 14116 * Represents the different roam event types, signified by the enum 14117 * qca_wlan_vendor_roam_event_type. 14118 * Each bit of this attribute represents the different roam even types reported 14119 * through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS. 14120 * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS. 14121 * 14122 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TRIGGER_REASON: u32, used in STA 14123 * mode only. This represents the roam trigger reason for the last roaming 14124 * attempted by the firmware. Each bit of this attribute represents the 14125 * different roam trigger reason code which are defined in enum 14126 * qca_vendor_roam_triggers. 14127 * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS. 14128 * 14129 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVOKE_FAIL_REASON: u32, used in 14130 * STA mode only. This represents the roam invoke fail reason for the last 14131 * failed roam invoke. Different roam invoke failure reason codes 14132 * are specified in enum qca_vendor_roam_invoke_fail_reasons. 14133 * 14134 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO: Array of candidates info 14135 * for which the roam is attempted. Each entry is a nested attribute defined 14136 * by enum qca_wlan_vendor_attr_roam_events_candidate_info. 14137 * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS. 14138 * 14139 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_STATE: u8 attribute. Represents 14140 * the scan state on which the roam events need to be notified. The values for 14141 * this attribute are referred from enum qca_wlan_vendor_roam_scan_state. 14142 * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS. 14143 * 14144 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_FREQ_LIST: Nested attribute of 14145 * u32 values. List of frequencies in MHz considered for a roam scan. 14146 * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS. 14147 */ 14148 enum qca_wlan_vendor_attr_roam_events { 14149 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVALID = 0, 14150 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CONFIGURE = 1, 14151 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_SUSPEND_STATE = 2, 14152 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TYPE = 3, 14153 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TRIGGER_REASON = 4, 14154 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVOKE_FAIL_REASON = 5, 14155 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO = 6, 14156 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_STATE = 7, 14157 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_FREQ_LIST = 8, 14158 14159 /* keep last */ 14160 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_AFTER_LAST, 14161 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_MAX = 14162 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_AFTER_LAST - 1, 14163 }; 14164 14165 /** 14166 * enum qca_wlan_ratemask_params_type - Rate mask config type 14167 * 14168 * @QCA_WLAN_RATEMASK_PARAMS_TYPE_CCK_OFDM: CCK/OFDM rate mask config 14169 * @QCA_WLAN_RATEMASK_PARAMS_TYPE_HT: HT rate mask config 14170 * @QCA_WLAN_RATEMASK_PARAMS_TYPE_VHT: VHT rate mask config 14171 * @QCA_WLAN_RATEMASK_PARAMS_TYPE_HE: HE rate mask config 14172 */ 14173 enum qca_wlan_ratemask_params_type { 14174 QCA_WLAN_RATEMASK_PARAMS_TYPE_CCK_OFDM = 0, 14175 QCA_WLAN_RATEMASK_PARAMS_TYPE_HT = 1, 14176 QCA_WLAN_RATEMASK_PARAMS_TYPE_VHT = 2, 14177 QCA_WLAN_RATEMASK_PARAMS_TYPE_HE = 3, 14178 }; 14179 14180 /** 14181 * enum qca_wlan_vendor_attr_ratemask_params - Used by the 14182 * vendor command QCA_NL80211_VENDOR_SUBCMD_RATEMASK_CONFIG. 14183 * This is used to set the rate mask value to be used in rate selection. 14184 * 14185 * @QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_LIST: 14186 * Array of nested containing attributes 14187 * QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_TYPE and 14188 * QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_BITMAP. 14189 * 14190 * @QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_TYPE: u8, represents 14191 * the different PHY types to which the rate mask config is to be applied. 14192 * The values for this attribute are referred from enum 14193 * qca_wlan_vendor_ratemask_params_type. 14194 * 14195 * @QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_BITMAP: binary, rate mask bitmap. 14196 * A bit value of 1 represents rate is enabled and a value of 0 14197 * represents rate is disabled. 14198 * For HE targets, 12 bits correspond to one NSS setting. 14199 * b0-13 => NSS1, MCS 0-13 14200 * b14-27 => NSS2, MCS 0-13 and so on for other NSS. 14201 * For VHT targets, 10 bits correspond to one NSS setting. 14202 * b0-9 => NSS1, MCS 0-9 14203 * b10-19 => NSS2, MCS 0-9 and so on for other NSS. 14204 * For HT targets, 8 bits correspond to one NSS setting. 14205 * b0-7 => NSS1, MCS 0-7 14206 * b8-15 => NSS2, MCS 0-7 and so on for other NSS. 14207 * For OFDM/CCK targets, 8 bits correspond to one NSS setting. 14208 */ 14209 enum qca_wlan_vendor_attr_ratemask_params { 14210 QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_INVALID = 0, 14211 QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_LIST = 1, 14212 QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_TYPE = 2, 14213 QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_BITMAP = 3, 14214 14215 /* keep last */ 14216 QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_AFTER_LAST, 14217 QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_MAX = 14218 QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_AFTER_LAST - 1, 14219 }; 14220 14221 /** 14222 * enum qca_wlan_audio_data_path - Defines the data path to be used for audio 14223 * traffic. 14224 * 14225 * @QCA_WLAN_AUDIO_DATA_PATH_VIA_HOST_PROCESSOR: 14226 * Send audio traffic through the host processor. 14227 * @QCA_WLAN_AUDIO_DATA_PATH_VIA_LOW_POWER_DSP: 14228 * Send audio traffic using the low power DSP to/from the encoder. 14229 */ 14230 enum qca_wlan_audio_data_path { 14231 QCA_WLAN_AUDIO_DATA_PATH_VIA_HOST_PROCESSOR = 0, 14232 QCA_WLAN_AUDIO_DATA_PATH_VIA_LOW_POWER_DSP = 1, 14233 }; 14234 14235 /** 14236 * enum qca_wlan_vendor_pasn_action - Action to authenticate (and generate keys 14237 * for) or drop existing PASN security association for the listed the 14238 * peers. Used by QCA_WLAN_VENDOR_ATTR_PASN_ACTION and sent from the driver 14239 * to userspace. 14240 * 14241 * @QCA_WLAN_VENDOR_PASN_ACTION_AUTH: Initiate PASN handshake with the peer 14242 * devices indicated with %QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR. 14243 * @QCA_WLAN_VENDOR_PASN_ACTION_DELETE_SECURE_RANGING_CONTEXT: Indication from 14244 * the driver to userspace to inform that the existing PASN keys of the 14245 * peer devices specified with %QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR are 14246 * not valid anymore. 14247 */ 14248 enum qca_wlan_vendor_pasn_action { 14249 QCA_WLAN_VENDOR_PASN_ACTION_AUTH, 14250 QCA_WLAN_VENDOR_PASN_ACTION_DELETE_SECURE_RANGING_CONTEXT, 14251 }; 14252 14253 /** 14254 * enum qca_wlan_vendor_attr_pasn_peer: Defines the nested attributes used in 14255 * QCA_WLAN_VENDOR_ATTR_PASN_PEERS. 14256 * 14257 * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_SRC_ADDR: This attribute is optional in the 14258 * event from the driver to userspace and represents the local MAC address 14259 * to be used for PASN handshake. When this attribute is present, userspace 14260 * shall use the source address specified in this attribute by the driver 14261 * for PASN handshake with peer device. 14262 * This attribute is required in a command response from userspace to the 14263 * driver and represents the MAC address that was used in PASN handshake 14264 * with the peer device. 14265 * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR: Indicates the MAC address of the 14266 * peer device to which PASN handshake is requested in an event from the 14267 * driver to userspace when QCA_WLAN_VENDOR_ATTR_PASN_ACTION is set to 14268 * QCA_WLAN_VENDOR_PASN_ACTION_AUTH. 14269 * Indicates the MAC address of the peer device for which the keys are to 14270 * be invalidated in an event from the driver to userspace when 14271 * QCA_WLAN_VENDOR_ATTR_PASN_ACTION is set to 14272 * QCA_WLAN_VENDOR_PASN_ACTION_DELETE_SECURE_RANGING_CONTEXT. 14273 * Indicates the MAC address of the peer device for which the status is 14274 * being sent in a status report from userspace to the driver. 14275 * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_LTF_KEYSEED_REQUIRED: NLA_FLAG attribute used 14276 * in the event from the driver to userspace. When set, userspace is 14277 * required to derive LTF key seed from KDK and set it to the driver. 14278 * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_STATUS_SUCCESS: NLA_FLAG attribute. This 14279 * attribute is used in the command response from userspace to the driver. 14280 * If present, it indicates the successful PASN handshake with the peer. If 14281 * this flag is not present, it indicates that the PASN handshake with the 14282 * peer device failed. 14283 */ 14284 enum qca_wlan_vendor_attr_pasn_peer { 14285 QCA_WLAN_VENDOR_ATTR_PASN_PEER_INVALID = 0, 14286 QCA_WLAN_VENDOR_ATTR_PASN_PEER_SRC_ADDR = 1, 14287 QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR = 2, 14288 QCA_WLAN_VENDOR_ATTR_PASN_PEER_LTF_KEYSEED_REQUIRED = 3, 14289 QCA_WLAN_VENDOR_ATTR_PASN_PEER_STATUS_SUCCESS = 4, 14290 14291 /* keep last */ 14292 QCA_WLAN_VENDOR_ATTR_PASN_PEER_AFTER_LAST, 14293 QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAX = 14294 QCA_WLAN_VENDOR_ATTR_PASN_PEER_AFTER_LAST - 1, 14295 }; 14296 14297 /** 14298 * enum qca_wlan_vendor_attr_pasn: Defines the attributes used in the 14299 * QCA_NL80211_VENDOR_SUBCMD_PASN command. 14300 * 14301 * @QCA_WLAN_VENDOR_ATTR_PASN_ACTION: u32 attribute, possible values are 14302 * defined in enum qca_wlan_vendor_pasn_action and used only in an event 14303 * from the driver to userspace. 14304 * @QCA_WLAN_VENDOR_ATTR_PASN_PEERS: Nested attribute, used to pass PASN peer 14305 * details for each peer and used in both an event and a command response. 14306 * The nested attributes used inside QCA_WLAN_VENDOR_ATTR_PASN_PEERS are 14307 * defined in enum qca_wlan_vendor_attr_pasn_peer. 14308 */ 14309 enum qca_wlan_vendor_attr_pasn { 14310 QCA_WLAN_VENDOR_ATTR_PASN_INVALID = 0, 14311 QCA_WLAN_VENDOR_ATTR_PASN_ACTION = 1, 14312 QCA_WLAN_VENDOR_ATTR_PASN_PEERS = 2, 14313 14314 /* keep last */ 14315 QCA_WLAN_VENDOR_ATTR_PASN_AFTER_LAST, 14316 QCA_WLAN_VENDOR_ATTR_PASN_MAX = 14317 QCA_WLAN_VENDOR_ATTR_PASN_AFTER_LAST - 1, 14318 }; 14319 14320 /** 14321 * enum qca_wlan_vendor_secure_ranging_ctx_action - Used to add or delete 14322 * the ranging security context derived from PASN for each peer. Used in 14323 * QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_ACTION. 14324 * 14325 * @QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_ADD: Add the secure ranging 14326 * context for the peer. 14327 * @QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_DELETE: Delete the secure ranging 14328 * context for the peer. 14329 */ 14330 enum qca_wlan_vendor_secure_ranging_ctx_action { 14331 QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_ADD, 14332 QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_DELETE, 14333 }; 14334 14335 /** 14336 * enum qca_wlan_vendor_sha_type - SHA types. Used to configure the SHA type 14337 * used for deriving PASN keys to the driver. Used in 14338 * QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE 14339 * @QCA_WLAN_VENDOR_SHA_256: SHA-256 14340 * @QCA_WLAN_VENDOR_SHA_384: SHA-384 14341 */ 14342 enum qca_wlan_vendor_sha_type { 14343 QCA_WLAN_VENDOR_SHA_256, 14344 QCA_WLAN_VENDOR_SHA_384, 14345 }; 14346 14347 /** 14348 * enum qca_wlan_vendor_attr_secure_ranging_ctx: Defines the attributes used 14349 * to set security context for the PASN peer from userspace to the driver. 14350 * Used with QCA_NL80211_VENDOR_SUBCMD_SECURE_RANGING_CONTEXT. 14351 * 14352 * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_ACTION: u32 attribute, possible 14353 * values are defined in enum qca_wlan_vendor_secure_ranging_ctx_action 14354 * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SRC_ADDR: The local MAC address that 14355 * was used during the PASN handshake. 14356 * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_PEER_MAC_ADDR: The MAC address of 14357 * the peer device for which secure ranging context is being configured. 14358 * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE: u32 attribute, defines the 14359 * hash algorithm to be used, possible values are defined in enum 14360 * qca_wlan_vendor_sha_type. 14361 * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_TK: Variable length attribute, holds 14362 * the temporal key generated from the PASN handshake. The length of this 14363 * attribute is dependent on the value of 14364 * %QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_CIPHER. 14365 * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_CIPHER: cipher suite to use with the 14366 * TK, u32, as defined in IEEE Std 802.11-2020, 9.4.2.24.2 (Cipher suites) 14367 * (e.g., 0x000FAC04). 14368 * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_LTF_KEYSEED: Variable length 14369 * attribute, holds the LTF keyseed derived from KDK of PASN handshake. 14370 * The length of this attribute is dependent on the value of 14371 * %QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE. 14372 14373 */ 14374 enum qca_wlan_vendor_attr_secure_ranging_ctx { 14375 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_INVALID = 0, 14376 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_ACTION = 1, 14377 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SRC_ADDR = 2, 14378 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_PEER_MAC_ADDR = 3, 14379 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE = 4, 14380 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_TK = 5, 14381 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_CIPHER = 6, 14382 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_LTF_KEYSEED = 7, 14383 14384 /* keep last */ 14385 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_AFTER_LAST, 14386 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_MAX = 14387 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_AFTER_LAST - 1, 14388 }; 14389 14390 /** 14391 * enum qca_wlan_vendor_attr_coap_offload_filter - Attributes used 14392 * inside %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_FILTER 14393 * nested attribute. The packets that match a filter will be replied with 14394 * attributes configured in %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY. 14395 * 14396 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4: 14397 * u32 attribute. Destination IPv4 address in network byte order, the 14398 * IPv4 packets with different address will be filtered out. 14399 * This attribute is optional. 14400 * 14401 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4_IS_BC: 14402 * Flag attribute. If it's present, indicates that 14403 * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4 is a broadcast 14404 * address; while if not, indicates that the address is a unicast/multicast 14405 * address. 14406 * This attribute is optional. 14407 * 14408 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV6: 14409 * NLA_BINARY attribute, length is 16 bytes. 14410 * Destination IPv6 address in network byte order, the IPv6 packets 14411 * with different destination address will be filtered out. 14412 * This attribute is optional. 14413 * 14414 * At least one of %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4 and 14415 * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV6 must be configured. 14416 * Packets on both IPv4 and IPv6 will be processed if both are configured. 14417 * 14418 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_PORT: 14419 * u16 attribute. Destination UDP port, the packets with different destination 14420 * UDP port will be filtered out. 14421 * This attribute is mandatory. 14422 * 14423 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_OFFSET: 14424 * u32 attribute. Represents the offset (in UDP payload) of the data 14425 * to be matched. 14426 * This attribute is mandatory. 14427 * 14428 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_DATA: 14429 * NLA_BINARY attribute, the maximum allowed size is 16 bytes. 14430 * Binary data that is compared bit-by-bit against the data (specified 14431 * by %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_OFFSET) in UDP 14432 * payload, the packets don't match will be filtered out. 14433 * This attribute is mandatory. 14434 */ 14435 enum qca_wlan_vendor_attr_coap_offload_filter { 14436 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_INVALID = 0, 14437 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4 = 1, 14438 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4_IS_BC = 2, 14439 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV6 = 3, 14440 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_PORT = 4, 14441 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_OFFSET = 5, 14442 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_DATA = 6, 14443 14444 /* keep last */ 14445 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_AFTER_LAST, 14446 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MAX = 14447 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_AFTER_LAST - 1, 14448 }; 14449 14450 /** 14451 * enum qca_wlan_vendor_attr_coap_offload_reply - Attributes used 14452 * inside %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY nested attribute. 14453 * 14454 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV4: 14455 * u32 attribute. Source address (in network byte order) for replying 14456 * the matching broadcast/multicast IPv4 packets. 14457 * This attribute is optional. 14458 * 14459 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV6: 14460 * NLA_BINARY attribute, length is 16 bytes. 14461 * Source address (in network byte order) for replying the matching 14462 * multicast IPv6 packets. 14463 * This attribute is optional. 14464 * 14465 * For broadcast/multicast offload reply, one of 14466 * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV4 and 14467 * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV6 or both must be 14468 * configured according to version of the IP address(es) configured in 14469 * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_FILTER; 14470 * while for unicast case, firmware will take the destination IP address 14471 * in the received matching packet as the source address for replying. 14472 * 14473 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_FILTER: 14474 * Nested attribute. Filter for the received UDP packets, only the matching 14475 * packets will be replied and cached. 14476 * See enum qca_wlan_vendor_attr_coap_offload_filter for list of supported 14477 * attributes. 14478 * This attribute is mandatory. 14479 * 14480 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_MSG: 14481 * NLA_BINARY attribute, the maximum allowed size is 1152 bytes. 14482 * CoAP message (UDP payload) to be sent upon receiving matching packets. 14483 * Firmware is responsible for adding any necessary protocol headers. 14484 * This attribute is mandatory. 14485 * 14486 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_CACHE_EXPTIME: 14487 * u32 attribute. Expiration time in milliseconds of the cached CoAP messages. 14488 * A cached message will be dropped by firmware if it's expired. 14489 * This attribute is optional. A default value of 40000 will be used in the 14490 * absence of it. 14491 */ 14492 enum qca_wlan_vendor_attr_coap_offload_reply { 14493 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_INVALID = 0, 14494 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV4 = 1, 14495 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV6 = 2, 14496 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_FILTER = 3, 14497 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_MSG = 4, 14498 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_CACHE_EXPTIME = 5, 14499 14500 /* keep last */ 14501 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_AFTER_LAST, 14502 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_MAX = 14503 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_AFTER_LAST - 1, 14504 }; 14505 14506 /** 14507 * enum qca_wlan_vendor_attr_coap_offload_tx_ipv4 - Represents parameters for 14508 * CoAP message (UDP) transmitting on IPv4. 14509 * 14510 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_SRC_ADDR: 14511 * u32 attribute. Source address (in network byte order) for transmitting 14512 * packets on IPv4. 14513 * This attribute is mandatory. 14514 * 14515 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_SRC_PORT: 14516 * u16 attribute. Source UDP port. 14517 * This attribute is optional, a random port is taken if it's not present. 14518 * 14519 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_ADDR: 14520 * u32 attribute. Destination IPv4 address (in network byte order). 14521 * This attribute is mandatory. 14522 * 14523 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_IS_BC: 14524 * Flag attribute. If it's present, indicates that 14525 * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_ADDR is a broadcast 14526 * address; while if not, indicates that the address is unicast/multicast 14527 * address. 14528 * This attribute is optional. 14529 * 14530 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_PORT: 14531 * u16 attribute. Destination UDP port. 14532 * This attribute is mandatory. 14533 */ 14534 enum qca_wlan_vendor_attr_coap_offload_tx_ipv4 { 14535 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_INVALID = 0, 14536 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_SRC_ADDR = 1, 14537 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_SRC_PORT = 2, 14538 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_ADDR = 3, 14539 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_IS_BC = 4, 14540 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_PORT = 5, 14541 14542 /* keep last */ 14543 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_AFTER_LAST, 14544 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_MAX = 14545 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_AFTER_LAST - 1, 14546 }; 14547 14548 /** 14549 * enum qca_wlan_vendor_attr_coap_offload_tx_ipv6 - Represents parameters for 14550 * CoAP message (UDP) transmitting on IPv6. 14551 * 14552 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_SRC_ADDR: 14553 * NLA_BINARY attribute, length is 16 bytes. 14554 * Source address (in network byte order) for transmitting packets on IPv6. 14555 * This attribute is mandatory. 14556 * 14557 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_SRC_PORT: 14558 * u16 attribute. Source UDP port. 14559 * This attribute is optional, a random port is taken if it's not present. 14560 * 14561 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_DEST_ADDR: 14562 * NLA_BINARY attribute, length is 16 bytes. 14563 * Destination IPv6 address (in network byte order). 14564 * This attribute is mandatory. 14565 * 14566 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_DEST_PORT: 14567 * u16 attribute. Destination UDP port. 14568 * This attribute is mandatory. 14569 */ 14570 enum qca_wlan_vendor_attr_coap_offload_tx_ipv6 { 14571 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_INVALID = 0, 14572 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_SRC_ADDR = 1, 14573 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_SRC_PORT = 2, 14574 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_DEST_ADDR = 3, 14575 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_DEST_PORT = 4, 14576 14577 /* keep last */ 14578 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_AFTER_LAST, 14579 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_MAX = 14580 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_AFTER_LAST - 1, 14581 }; 14582 14583 /** 14584 * enum qca_wlan_vendor_attr_coap_offload_periodic_tx - Attributes used 14585 * inside %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX nested attribute. 14586 * 14587 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV4: 14588 * Nested attribute. The IPv4 source/destination address/port for offload 14589 * transmitting. See enum qca_wlan_vendor_attr_coap_offload_tx_ipv4 for the list 14590 * of supported attributes. 14591 * This attribute is optional. 14592 * 14593 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV6: 14594 * Nested attribute. The IPv6 source/destination address/port for offload 14595 * transmitting. See enum qca_wlan_vendor_attr_coap_offload_tx_ipv6 for the list 14596 * of supported attributes. 14597 * This attribute is optional. 14598 * 14599 * At least one of %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV4 and 14600 * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV6 must be configured. 14601 * Firmware will transmit the packets on both IPv4 and IPv6 if both are 14602 * configured. 14603 * 14604 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_PERIOD: 14605 * u32 attribute. Period in milliseconds for the periodic transmitting. 14606 * This attribute is mandatory. 14607 * 14608 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_MSG: 14609 * NLA_BINARY attribute, the maximum allowed size is 1152 bytes. 14610 * CoAP message (UDP payload) to be periodically transmitted. Firmware 14611 * is responsible for adding any necessary protocol headers. 14612 * This attribute is mandatory. 14613 */ 14614 enum qca_wlan_vendor_attr_coap_offload_periodic_tx { 14615 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_INVALID = 0, 14616 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV4 = 1, 14617 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV6 = 2, 14618 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_PERIOD = 3, 14619 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_MSG = 4, 14620 14621 /* keep last */ 14622 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_AFTER_LAST, 14623 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_MAX = 14624 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_AFTER_LAST - 1, 14625 }; 14626 14627 /** 14628 * enum qca_wlan_vendor_attr_coap_offload_cache_info - Attributes used 14629 * inside %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHES nested attribute. 14630 * 14631 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_TS: 14632 * u64 attribute. Received time (since system booted in microseconds) of 14633 * the cached CoAP message. 14634 * This attribute is mandatory. 14635 * 14636 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV4: 14637 * u32 attribute. Source IPv4 address (in network byte order) of the cached 14638 * CoAP message. 14639 * This attribute is optional. 14640 * 14641 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV6: 14642 * NLA_BINARY attribute, length is 16 bytes. 14643 * Source IPv6 address (in network byte order) of the cached CoAP message. 14644 * This attribute is optional. 14645 * 14646 * At most and at least one of 14647 * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV4 and 14648 * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV6 is given for 14649 * an entry. 14650 * 14651 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_MSG: 14652 * NLA_BINARY attribute, the maximum allowed size is 1152 bytes. 14653 * The cached CoAP message (UDP payload). If the actual message size is 14654 * greater than the maximum size, it will be truncated and leaving only 14655 * the first 1152 bytes. 14656 * This attribute is mandatory. 14657 * 14658 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_PAD: Attribute used for 14659 * padding for 64-bit alignment 14660 */ 14661 enum qca_wlan_vendor_attr_coap_offload_cache_info { 14662 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_INVALID = 0, 14663 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_TS = 1, 14664 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV4 = 2, 14665 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV6 = 3, 14666 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_MSG = 4, 14667 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_PAD = 5, 14668 14669 /* keep last */ 14670 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_AFTER_LAST, 14671 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_MAX = 14672 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_AFTER_LAST - 1, 14673 }; 14674 14675 /** 14676 * enum qca_wlan_vendor_coap_offload_action - Actions for 14677 * vendor command QCA_NL80211_VENDOR_SUBCMD_COAP_OFFLOAD. 14678 * 14679 * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_ENABLE: 14680 * Enable CoAP offload reply. 14681 * If it's enabled, firmware will start offload processing on each suspend 14682 * and stop on each resume. 14683 * 14684 * Offload reply on match works as follows: 14685 * Reply the packets that match the filter with the given CoAP 14686 * message (with necessary protocol headers), increase the CoAP message 14687 * ID in the given CoAP message by one for the next use after each successful 14688 * transmission, and try to store the information of the received packet, 14689 * including the received time, source IP address, and CoAP message (UDP 14690 * payload). 14691 * 14692 * Firmware has a limit to the maximum stored entries, it takes the source IP 14693 * address as the key of an entry, and keeps at most one entry for each key. 14694 * A packet won't be stored if no entry for the same key is present and the 14695 * total number of the existing unexpired entries reaches the maximum value. 14696 * 14697 * If any configured item is changed, user space should disable offload reply 14698 * first and then issue a new enable request. 14699 * 14700 * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_DISABLE: 14701 * Disable CoAP offload reply and return information of any cached CoAP 14702 * messages. 14703 * 14704 * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_ENABLE: 14705 * Enable CoAP offload periodic transmitting. 14706 * If it's enabled, firmware will start offload periodic transmitting on 14707 * each suspend and stop on each resume. 14708 * 14709 * Offload periodic transmitting works as follows: 14710 * Send the given CoAP message (with necessary protocol headers) with the given 14711 * source/destination IP address/UDP port periodically based on the given 14712 * period and increase the CoAP message ID in the given CoAP message by one 14713 * for the next use after each successful transmission. 14714 * 14715 * If any configured item is changed, user space should disable offload 14716 * periodic transmitting first and then issue a new enable request. 14717 * 14718 * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_DISABLE: 14719 * Disable CoAP offload periodic transmitting. 14720 * 14721 * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_CACHE_GET: 14722 * Get information of the CoAP messages cached during offload reply 14723 * processing. The cache is cleared after retrieval. 14724 */ 14725 enum qca_wlan_vendor_coap_offload_action { 14726 QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_ENABLE = 0, 14727 QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_DISABLE = 1, 14728 QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_ENABLE = 2, 14729 QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_DISABLE = 3, 14730 QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_CACHE_GET = 4, 14731 }; 14732 14733 /** 14734 * enum qca_wlan_vendor_attr_coap_offload - Used by the 14735 * vendor command QCA_NL80211_VENDOR_SUBCMD_COAP_OFFLOAD. 14736 * This is used to set parameters for CoAP offload processing, or get 14737 * cached CoAP messages from firmware. 14738 * 14739 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION: 14740 * u32 attribute. Action to take in this vendor command. 14741 * See enum qca_wlan_vendor_coap_offload_action for supported actions. 14742 * This attribute is mandatory. 14743 * 14744 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REQ_ID: 14745 * u32 attribute. Represents the Request ID for the CoAP offload 14746 * configuration, which can help to identify the user entity starting 14747 * the CoAP offload processing and accordingly stop the respective 14748 * ones/get the cached CoAP messages with the matching ID. 14749 * This attribute is mandatory. 14750 * 14751 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY: 14752 * Nested attribute. Parameters for offload reply. 14753 * See enum qca_wlan_vendor_attr_coap_offload_reply for the list of 14754 * supported attributes. 14755 * This attribute is mandatory if %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION 14756 * is QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_ENABLE, and is ignored 14757 * otherwise. 14758 * 14759 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX: 14760 * Nested attribute. Parameters for offload periodic transmitting. 14761 * See enum qca_wlan_vendor_attr_coap_offload_periodic_tx for the list of 14762 * supported attributes. 14763 * This attribute is mandatory if %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION is 14764 * QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_ENABLE, and is ignored 14765 * otherwise. 14766 * 14767 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHES: 14768 * Array of nested attributes. Information of the cached CoAP messages, 14769 * where each entry is taken from 14770 * enum qca_wlan_vendor_attr_coap_offload_cache_info. 14771 * This attribute is used for reporting the cached CoAP messages 14772 * in reply for command in which %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION 14773 * is QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_CACHE_GET or 14774 * QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_DISABLE. It means there is no 14775 * cached item if this attribute is not present. 14776 */ 14777 enum qca_wlan_vendor_attr_coap_offload { 14778 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_INVALID = 0, 14779 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION = 1, 14780 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REQ_ID = 2, 14781 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY = 3, 14782 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX = 4, 14783 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHES = 5, 14784 14785 /* keep last */ 14786 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_AFTER_LAST, 14787 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_MAX = 14788 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_AFTER_LAST - 1, 14789 }; 14790 14791 /** 14792 * enum qca_wlan_vendor_attr_scs_rule_config - Used by the vendor command 14793 * QCA_NL80211_VENDOR_SUBCMD_SCS_RULE_CONFIG to configure Stream Classification 14794 * Service (SCS) rule. 14795 * 14796 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_RULE_ID: Mandatory u32 attribute. 14797 * Represents the unique id of SCS rule to be configured. 14798 14799 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_REQUEST_TYPE: Mandatory u8 attribute. 14800 * Represents the request type: add, remove, or change. 14801 * Values as defined in IEEE Std 802.11-2020, Table 9-246 (SCS Request 14802 * Type definitions). 14803 * 14804 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_OUTPUT_TID: Mandatory u8 attribute 14805 * in case of add/change request type. 14806 * Represents the output traffic identifier (TID) to be assigned to the flow 14807 * matching the rule. 14808 * 14809 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_CLASSIFIER_TYPE: Mandatory u8 14810 * attribute in case of add/change request type. 14811 * Represents type of classifier parameters present in SCS rule. 14812 * Refer IEEE Std 802.11-2020 Table 9-164 (Frame classifier type). 14813 * Only classifier types 4 and 10 are supported for SCS. 14814 * 14815 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_VERSION: Mandatory u8 attribute 14816 * in case of add/change request type when classifier type is TCLAS4. 14817 * Represents the IP version (4: IPv4, 6: IPv6) of the rule. 14818 * 14819 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_IPV4_ADDR: Optional 14820 * attribute in case of add/change request type when classifier type is TCLAS4 14821 * and version attribute is IPv4. 14822 * Represents the source IPv4 address in the rule which is to be compared 14823 * against the source IP address in the IPv4 header. 14824 * 14825 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_IPV4_ADDR: Optional 14826 * attribute in case of add/change request type when classifier type is TCLAS4 14827 * and version attribute is IPv4. 14828 * Represents the destination IPv4 address in the rule which is to be compared 14829 * against the destination IP address in the IPv4 header. 14830 * 14831 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_IPV6_ADDR: Optional 14832 * attribute in case of add/change request type when classifier type is TCLAS4 14833 * and version attribute is IPv6. 14834 * Represents the source IPv6 address in the rule which is to be compared 14835 * against the source IP address in the IPv6 header. 14836 * 14837 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_IPV6_ADDR: Optional 14838 * attribute in case of add/change request type when classifier type is TCLAS4 14839 * and version attribute is IPv6. 14840 * Represents the destination IPv6 address in the rule which is to be compared 14841 * against the destination IP address in the IPv6 header. 14842 * 14843 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_PORT: Optional u16 attribute 14844 * in case of add/change request type when classifier type is TCLAS4. 14845 * Represents the source port number in the rule which is to be compared against 14846 * the source port number in the protocol header. 14847 * 14848 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_PORT: Optional u16 attribute 14849 * in case of add/change request type when classifier type is TCLAS4. 14850 * Represents the destination port number in the rule which is to be compared 14851 * against the destination port number in the protocol header. 14852 * 14853 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DSCP: Optional u8 attribute 14854 * in case of add/change request type when classifier type is TCLAS4. 14855 * Represents the DSCP value in the rule which is to be compared against the 14856 * DSCP field present in the IP header. 14857 * 14858 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_NEXT_HEADER: Optional u8 14859 * attribute in case of add/change request type when classifier type is TCLAS4. 14860 * Represents the protocol/next header in the rule which is to be compared 14861 * against the protocol/next header field present in the IPv4/IPv6 header. 14862 * 14863 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_FLOW_LABEL: Optional 14864 * attribute of size 3 bytes present in case of add/change request type 14865 * when classifier type is TCLAS4 and version is IPv6. 14866 * Represents the flow label value in the rule which is to be compared against 14867 * the flow label field present in the IPv6 header. 14868 * 14869 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_PROTOCOL_INSTANCE: Optional u8 14870 * attribute in case of add/change request type when classifier type is TCLAS10. 14871 * Represents the protocol instance number in the rule. 14872 * 14873 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_NEXT_HEADER: Optional u8 14874 * attribute in case of add/change request type when classifier type is TCLAS10. 14875 * Represents the protocol/next header in the rule which is to be compared 14876 * against the protocol/next header field present in the IPv4/IPv6 header. 14877 * 14878 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_MASK: Optional 14879 * attribute of variable length present when request type is add/change and 14880 * classifier type is TCLAS10. 14881 * Represents the mask to be used for masking the header contents of the header 14882 * specified by QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_NEXT_HEADER 14883 * attribute. 14884 * 14885 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_VALUE: Optional 14886 * attribute of variable length present when request type is add/change and 14887 * classifier type is TCLAS10. 14888 * Represents the value to be compared against after masking the header contents 14889 * of the header specified by the 14890 * QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_NEXT_HEADER attribute with the 14891 * filter mask specified by the 14892 * QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_MASK attribute. 14893 * 14894 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_SERVICE_CLASS_ID: Optional u16 14895 * attribute. 14896 * Represents the service class id of the configured SCS rule. 14897 * 14898 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_DST_MAC_ADDR: Optional 6 bytes 14899 * MAC address. 14900 * Represents the destination MAC address in the rule. 14901 * 14902 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_NETDEV_IF_INDEX: Optional u32 attribute 14903 * Represents the netdevice interface index in the rule. 14904 */ 14905 enum qca_wlan_vendor_attr_scs_rule_config { 14906 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_INVALID = 0, 14907 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_RULE_ID = 1, 14908 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_REQUEST_TYPE = 2, 14909 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_OUTPUT_TID = 3, 14910 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_CLASSIFIER_TYPE = 4, 14911 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_VERSION = 5, 14912 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_IPV4_ADDR = 6, 14913 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_IPV4_ADDR = 7, 14914 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_IPV6_ADDR = 8, 14915 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_IPV6_ADDR = 9, 14916 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_PORT = 10, 14917 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_PORT = 11, 14918 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DSCP = 12, 14919 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_NEXT_HEADER = 13, 14920 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_FLOW_LABEL = 14, 14921 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_PROTOCOL_INSTANCE = 15, 14922 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_NEXT_HEADER = 16, 14923 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_MASK = 17, 14924 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_VALUE = 18, 14925 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_SERVICE_CLASS_ID = 19, 14926 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_DST_MAC_ADDR = 20, 14927 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_NETDEV_IF_INDEX = 21, 14928 14929 /* Keep last */ 14930 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_AFTER_LAST, 14931 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_MAX = 14932 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_AFTER_LAST - 1, 14933 }; 14934 14935 /** 14936 * enum qca_wlan_vendor_attr_mlo_links - Definition of attributes used inside 14937 * nested attribute QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_MLO_LINKS. 14938 * 14939 * @QCA_WLAN_VENDOR_ATTR_MLO_LINK_ID: u8 attribute, link ID of this MLO link. 14940 * @QCA_WLAN_VENDOR_ATTR_MLO_LINK_MAC_ADDR: Own MAC address of this MLO link. 14941 * @QCA_WLAN_VENDOR_ATTR_MLO_LINK_BSSID: AP link MAC address of this MLO link. 14942 */ 14943 enum qca_wlan_vendor_attr_mlo_links { 14944 QCA_WLAN_VENDOR_ATTR_MLO_LINK_INVALID = 0, 14945 QCA_WLAN_VENDOR_ATTR_MLO_LINK_ID = 1, 14946 QCA_WLAN_VENDOR_ATTR_MLO_LINK_MAC_ADDR = 2, 14947 QCA_WLAN_VENDOR_ATTR_MLO_LINK_BSSID = 3, 14948 14949 /* Keep last */ 14950 QCA_WLAN_VENDOR_ATTR_MLO_LINK_AFTER_LAST, 14951 QCA_WLAN_VENDOR_ATTR_MLO_LINK_MAX = 14952 QCA_WLAN_VENDOR_ATTR_MLO_LINK_AFTER_LAST - 1, 14953 }; 14954 14955 /** 14956 * enum qca_wlan_vendor_sar_version - This describes the current SAR version 14957 * used in the firmware. 14958 * 14959 * @QCA_WLAN_VENDOR_SAR_VERSION_1: The firmware supports legacy SAR. 14960 * In legacy SAR, the firmware supports 5 static and 1 user defined SAR limits. 14961 * 14962 * @QCA_WLAN_VENDOR_SAR_VERSION_2: The firmware supports SAR version 2, 14963 * i.e., SAR Non DBS mode. In SAR version 2, the firmware has 6 SAR tables for 14964 * each CTL group. So user can select up to 6 SAR indexes from the current CTL 14965 * groups. 14966 * 14967 * @QCA_WLAN_VENDOR_SAR_VERSION_3: The firmware supports SAR version 3, 14968 * i.e., SAR DBS mode. In SAR version 3, the firmware has 6 SAR tables for each 14969 * CTL group but user can choose up to 3 SAR set index only, as the top half 14970 * of the SAR index (0 to 2) is used for non DBS purpose and the bottom half of 14971 * the SAR index (3 to 5) is used for DBS mode. 14972 */ 14973 enum qca_wlan_vendor_sar_version { 14974 QCA_WLAN_VENDOR_SAR_VERSION_INVALID = 0, 14975 QCA_WLAN_VENDOR_SAR_VERSION_1 = 1, 14976 QCA_WLAN_VENDOR_SAR_VERSION_2 = 2, 14977 QCA_WLAN_VENDOR_SAR_VERSION_3 = 3, 14978 }; 14979 14980 /** 14981 * enum qca_wlan_vendor_sar_ctl_group_state - This describes whether 14982 * CTL grouping is enabled or disabled in the firmware. 14983 * 14984 * @QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_ENABLED: CTL grouping 14985 * is enabled in firmware. 14986 * 14987 * @QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_DISABLED: CTL grouping 14988 * is disabled in firmware. 14989 * 14990 */ 14991 enum qca_wlan_vendor_sar_ctl_group_state { 14992 QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_INVALID = 0, 14993 QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_ENABLED = 1, 14994 QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_DISABLED = 2, 14995 }; 14996 14997 /** 14998 * enum qca_wlan_vendor_attr_sar_capability - Used by the vendor command 14999 * QCA_NL80211_VENDOR_SUBCMD_GET_SAR_CAPABILITY to get SAR capabilities 15000 * supported by the firmware. 15001 15002 * @QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_VERSION: 15003 * u32 attribute. This field describes current SAR version supported by the 15004 * firmware. 15005 * See enum qca_wlan_vendor_sar_version for more information. 15006 * This attribute is mandatory. 15007 15008 * @QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_CTL_GROUP_STATE: 15009 * u32 attribute. This field describes whether CTL groups are enabled 15010 * or disabled in the firmware. 15011 * See enum qca_wlan_vendor_sar_ctl_group_state for more information. 15012 * This attribute is optional. 15013 */ 15014 15015 enum qca_wlan_vendor_attr_sar_capability { 15016 QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_INVALID = 0, 15017 QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_VERSION = 1, 15018 QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_CTL_GROUP_STATE = 2, 15019 15020 /* Keep last */ 15021 QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_AFTER_LAST, 15022 QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_MAX = 15023 QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_AFTER_LAST - 1, 15024 }; 15025 15026 /** 15027 * enum qca_wlan_vendor_attr_sr_stats - Attributes for Spatial Reuse statistics. 15028 * These statistics are sent from the driver in a response when userspace 15029 * queries to get the statistics using the operation 15030 * %QCA_WLAN_SR_OPERATION_GET_STATS. These statistics are reset 15031 * by the driver when the SR feature is enabled, when the driver receives 15032 * %QCA_WLAN_SR_OPERATION_CLEAR_STATS operation, or when disconnected. 15033 * 15034 * @QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_OPPORTUNITIES_COUNT: u32 attribute. 15035 * Mandatory only when non-SRG is supported by the AP and optional otherwise. 15036 * This represents the number of non-SRG TX opportunities. 15037 * 15038 * @QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_PPDU_TRIED_COUNT: u32 attribute. 15039 * Mandatory only when non-SRG is supported by the AP and optional otherwise. 15040 * This represents the number of non-SRG PPDUs tried to transmit. 15041 * 15042 * @QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_PPDU_SUCCESS_COUNT: u32 attribute. 15043 * Mandatory only when non-SRG is supported by the AP and optional otherwise. 15044 * This represents the number of non-SRG PPDUs successfully transmitted. 15045 * 15046 * @QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_OPPORTUNITIES_COUNT: u32 attribute. 15047 * Mandatory only when SRG is supported by the AP and optional otherwise. 15048 * This represents the number of SRG TX opportunities. 15049 * 15050 * @QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_PPDU_TRIED_COUNT: u32 attribute. 15051 * Mandatory only when SRG is supported by the AP and optional otherwise. 15052 * This represents the number of SRG PPDUs tried to transmit. 15053 * 15054 * @QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_PPDU_SUCCESS_COUNT: u32 attribute. 15055 * Mandatory only when SRG is supported by the AP and optional otherwise. 15056 * This represents the number of SRG PPDUs successfully transmitted. 15057 */ 15058 enum qca_wlan_vendor_attr_sr_stats { 15059 QCA_WLAN_VENDOR_ATTR_SR_STATS_INVALID = 0, 15060 QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_OPPORTUNITIES_COUNT = 1, 15061 QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_PPDU_TRIED_COUNT = 2, 15062 QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_PPDU_SUCCESS_COUNT = 3, 15063 QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_OPPORTUNITIES_COUNT = 4, 15064 QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_PPDU_TRIED_COUNT = 5, 15065 QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_PPDU_SUCCESS_COUNT = 6, 15066 15067 /* Keep last */ 15068 QCA_WLAN_VENDOR_ATTR_SR_STATS_AFTER_LAST, 15069 QCA_WLAN_VENDOR_ATTR_SR_STATS_MAX = 15070 QCA_WLAN_VENDOR_ATTR_SR_STATS_AFTER_LAST - 1, 15071 }; 15072 15073 /** 15074 * enum qca_wlan_sr_reason_code - Defines the different reason codes used in 15075 * Spatial Reuse feature. 15076 * 15077 * @QCA_WLAN_SR_REASON_CODE_ROAMING: The SR feature is disabled/enabled due to 15078 * roaming to an AP that doesn't support/supports SR feature, respectively. 15079 * 15080 * @QCA_WLAN_SR_REASON_CODE_CONCURRENCY: The SR feature is disabled/enabled due 15081 * to change in concurrent interfaces that are supported by the driver. 15082 */ 15083 enum qca_wlan_sr_reason_code { 15084 QCA_WLAN_SR_REASON_CODE_ROAMING = 0, 15085 QCA_WLAN_SR_REASON_CODE_CONCURRENCY = 1, 15086 }; 15087 15088 /** 15089 * enum qca_wlan_sr_operation - Defines the different types of SR operations. 15090 * The values are used inside attribute %QCA_WLAN_VENDOR_ATTR_SR_OPERATION. 15091 * 15092 * @QCA_WLAN_SR_OPERATION_SR_ENABLE: Userspace sends this operation to the 15093 * driver to enable the Spatial Reuse feature. Attributes 15094 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_PD_THRESHOLD and 15095 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_PD_THRESHOLD are used with this 15096 * operation. 15097 * 15098 * @QCA_WLAN_SR_OPERATION_SR_DISABLE: Userspace sends this operation to the 15099 * driver to disable the Spatial Reuse feature. 15100 * 15101 * @QCA_WLAN_SR_OPERATION_SR_SUSPEND: The driver uses this operation in an 15102 * asynchronous event sent to userspace when the SR feature is disabled. 15103 * The disable reason is encoded in QCA_WLAN_VENDOR_ATTR_SR_PARAMS_REASON_CODE 15104 * and sent along with the asynchronous event. 15105 * 15106 * @QCA_WLAN_SR_OPERATION_SR_RESUME: The driver uses this operation in an 15107 * asynchronous event when the SR feature is enabled again after the SR feature 15108 * was suspended by the driver earlier. The enable reason is 15109 * encoded in QCA_WLAN_VENDOR_ATTR_SR_PARAMS_REASON_CODE. Attributes used are 15110 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_PD_THRESHOLD and 15111 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_PD_THRESHOLD. 15112 * 15113 * @QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_PROHIBIT: This operation is 15114 * used to prohibit PSR-based spatial reuse and non-SRG OBSS PD-based spatial 15115 * reuse transmissions. Userspace sends this operation to the driver. 15116 * The driver/firmware upon receiving this operation shall prohibit PSR-based 15117 * spatial reuse and non-SRG OBSS PD-based spatial reuse transmissions. 15118 * 15119 * @QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_ALLOW: This operation is 15120 * used to allow PSR-based spatial reuse and non-SRG OBSS PD-based spatial 15121 * reuse transmissions. Userspace sends this operation to the driver. 15122 * The driver/firmware upon receiving this operation shall allow PSR-based 15123 * spatial reuse and non-SRG OBSS PD-based spatial reuse transmissions. 15124 * 15125 * @QCA_WLAN_SR_OPERATION_GET_STATS: Userspace sends this operation to the 15126 * driver to get the SR statistics and the driver sends a synchronous response 15127 * with the attributes defined in enum qca_wlan_vendor_attr_sr_stats using the 15128 * nested attribute %QCA_WLAN_VENDOR_ATTR_SR_STATS. 15129 * 15130 * @QCA_WLAN_SR_OPERATION_CLEAR_STATS: Userspace sends this operation to the 15131 * driver to clear the SR statistics and upon receiving this operation 15132 * the driver/firmware shall clear the SR statistics. 15133 * 15134 * @QCA_WLAN_SR_OPERATION_GET_PARAMS: Userspace sends this operation to the 15135 * driver to get the SR parameters and the driver sends the synchronous response 15136 * with the following required attributes: 15137 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MIN_OFFSET, 15138 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MAX_OFFSET, 15139 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_MAX_OFFSET, 15140 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_HESIGA_VAL15_ENABLE, 15141 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_DISALLOW. 15142 * 15143 * @QCA_WLAN_SR_OPERATION_UPDATE_PARAMS: The driver uses this operation in an 15144 * asynchronous event to userspace to update any changes in SR parameters. 15145 * The following attributes are used with this operation: 15146 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MIN_OFFSET, 15147 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MAX_OFFSET, 15148 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_MAX_OFFSET, 15149 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_HESIGA_VAL15_ENABLE, 15150 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_DISALLOW. 15151 */ 15152 enum qca_wlan_sr_operation { 15153 QCA_WLAN_SR_OPERATION_SR_ENABLE = 0, 15154 QCA_WLAN_SR_OPERATION_SR_DISABLE = 1, 15155 QCA_WLAN_SR_OPERATION_SR_SUSPEND = 2, 15156 QCA_WLAN_SR_OPERATION_SR_RESUME = 3, 15157 QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_PROHIBIT = 4, 15158 QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_ALLOW = 5, 15159 QCA_WLAN_SR_OPERATION_GET_STATS = 6, 15160 QCA_WLAN_SR_OPERATION_CLEAR_STATS = 7, 15161 QCA_WLAN_SR_OPERATION_GET_PARAMS = 8, 15162 QCA_WLAN_SR_OPERATION_UPDATE_PARAMS = 9, 15163 }; 15164 15165 /** 15166 * enum qca_wlan_vendor_attr_sr_params - Defines attributes for SR configuration 15167 * parameters used by attribute %QCA_WLAN_VENDOR_ATTR_SR_PARAMS. 15168 * 15169 * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_HESIGA_VAL15_ENABLE: Flag attribute. 15170 * This attribute is optionally set in response to 15171 * %QCA_WLAN_SR_OPERATION_GET_PARAMS and in request when operation is set to 15172 * %QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_PROHIBIT. Refer IEEE Std 15173 * 802.11ax-2021 Figure 9-788r-SR Control field format to understand more 15174 * about HESIGA_Spatial_reuse_value15_allowed. 15175 * 15176 * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_DISALLOW: Flag attribute. 15177 * This attribute is used in response to %QCA_WLAN_SR_OPERATION_GET_PARAMS 15178 * operation. This indicates whether non-SRG OBSS PD SR transmissions are 15179 * allowed or not at non-AP STAs that are associated with the AP. If present 15180 * non-SRG OBSS PD SR transmissions are not allowed else are allowed. 15181 * 15182 * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MIN_OFFSET: Optional u8 15183 * attribute. This attribute is used in response to 15184 * %QCA_WLAN_SR_OPERATION_GET_PARAMS operation. This indicates the SRG OBSS PD 15185 * Min Offset field which contains an unsigned integer that is added to -82 dBm 15186 * to generate the value of the SRG OBSS PD Min parameter. 15187 * 15188 * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MAX_OFFSET: Optional u8 15189 * attribute. This attribute is used in response to 15190 * %QCA_WLAN_SR_OPERATION_GET_PARAMS operation. This indicates the SRG OBSS PD 15191 * Max Offset field which contains an unsigned integer that is added to -82 dBm 15192 * to generate the value of the SRG OBSS PD Max parameter. 15193 * 15194 * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_MAX_OFFSET: Optional u8 15195 * attribute. This attribute is used in response to 15196 * %QCA_WLAN_SR_OPERATION_GET_PARAMS operation. This indicates the Non-SRG OBSS 15197 * PD Max Offset field which contains an unsigned integer that is added to -82 15198 * dBm to generate the value of the Non-SRG OBSS PD Max parameter. 15199 * 15200 * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_PD_THRESHOLD: s32 attribute (in dBm). 15201 * Userspace optionally sends this attribute with 15202 * %QCA_WLAN_SR_OPERATION_SR_ENABLE operation to the driver to specify the 15203 * preferred SRG PD threshold. The driver shall send this attribute to 15204 * userspace in SR resume event to indicate the PD threshold being used for SR. 15205 * When there is change in SRG PD threshold (for example, due to roaming, etc.) 15206 * the driver shall indicate the userspace the newly configured SRG PD threshold 15207 * using an asynchronous event. 15208 * 15209 * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_PD_THRESHOLD: s32 attribute (in dBm). 15210 * Userspace optionally sends this attribute with 15211 * %QCA_WLAN_SR_OPERATION_SR_ENABLE operation to the driver to specify the 15212 * preferred non-SRG PD threshold. The driver shall send this attribute to 15213 * userspace in SR resume event to indicate the PD threshold being used for SR. 15214 * When there is change in non-SRG PD threshold (for example, due to roaming, 15215 * etc.) the driver shall indicate the userspace the newly configured non-SRG PD 15216 * threshold using an asynchronous event. 15217 * 15218 * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_REASON_CODE: u32 attribute. The possible 15219 * values are defined in enum qca_wlan_sr_reason_code. This 15220 * attribute is used with %QCA_WLAN_SR_OPERATION_SR_RESUME and 15221 * %QCA_WLAN_SR_OPERATION_SR_SUSPEND operations. 15222 */ 15223 enum qca_wlan_vendor_attr_sr_params { 15224 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_INVALID = 0, 15225 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_HESIGA_VAL15_ENABLE = 1, 15226 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_DISALLOW = 2, 15227 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MIN_OFFSET = 3, 15228 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MAX_OFFSET = 4, 15229 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_MAX_OFFSET = 5, 15230 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_PD_THRESHOLD = 6, 15231 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_PD_THRESHOLD = 7, 15232 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_REASON_CODE = 8, 15233 15234 /* keep last */ 15235 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_AFTER_LAST, 15236 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_MAX = 15237 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_AFTER_LAST - 1, 15238 }; 15239 15240 /** 15241 * enum qca_wlan_vendor_attr_sr - Defines the attributes used by the vendor 15242 * command QCA_NL80211_VENDOR_SUBCMD_SR. 15243 * 15244 * @QCA_WLAN_VENDOR_ATTR_SR_OPERATION: Mandatory u8 attribute for all requests 15245 * from userspace to the driver. Possible values are defined in enum 15246 * qca_wlan_sr_operation. 15247 * 15248 * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS: Nested attribute, contains the SR 15249 * configuration parameters. The possible attributes inside this attribute are 15250 * defined in enum qca_wlan_vendor_attr_sr_params. 15251 * This attribute is used when QCA_WLAN_VENDOR_ATTR_SR_OPERATION is set to 15252 * %QCA_WLAN_SR_OPERATION_SR_ENABLE in requests from userspace to the driver and 15253 * also in response from the driver to userspace when the response is sent for 15254 * %QCA_WLAN_SR_OPERATION_GET_PARAMS. 15255 * The driver uses this attribute in asynchronous events in which the operation 15256 * is set to %QCA_WLAN_SR_OPERATION_SR_RESUME, 15257 * %QCA_WLAN_SR_OPERATION_SR_SUSPEND or %QCA_WLAN_SR_OPERATION_UPDATE_PARAMS. 15258 * 15259 * @QCA_WLAN_VENDOR_ATTR_SR_STATS: Nested attribute, contains the SR 15260 * statistics. These attributes used inside this are defined in enum 15261 * qca_wlan_vendor_attr_sr_stats. 15262 * This attribute is used in response from the driver to a command in which 15263 * %QCA_WLAN_VENDOR_ATTR_SR_OPERATION is set to 15264 * %QCA_WLAN_SR_OPERATION_GET_STATS. 15265 */ 15266 enum qca_wlan_vendor_attr_sr { 15267 QCA_WLAN_VENDOR_ATTR_SR_INVALID = 0, 15268 QCA_WLAN_VENDOR_ATTR_SR_OPERATION = 1, 15269 QCA_WLAN_VENDOR_ATTR_SR_PARAMS = 2, 15270 QCA_WLAN_VENDOR_ATTR_SR_STATS = 3, 15271 15272 /* Keep last */ 15273 QCA_WLAN_VENDOR_ATTR_SR_AFTER_LAST, 15274 QCA_WLAN_VENDOR_ATTR_SR_MAX = 15275 QCA_WLAN_VENDOR_ATTR_SR_AFTER_LAST - 1, 15276 }; 15277 15278 /** 15279 * enum qca_wlan_vendor_attr_mlo_peer_prim_netdev_event - Defines the attributes 15280 * used in the QCA_NL80211_VENDOR_SUBCMD_MLO_PEER_PRIM_NETDEV_EVENT subcommand. 15281 * 15282 * @QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MACADDR: 6 byte MAC address 15283 * used by the peer on the link that corresponds to the link used for sending 15284 * the event notification. 15285 * @QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MLD_MAC_ADDR: 6 byte 15286 * MLD MAC address of the peer. 15287 * @QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_PRIM_IFINDEX: u32 attribute, 15288 * used to pass ifindex of the primary netdev. 15289 * @QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MLD_IFINDEX: u32 attribute, 15290 * used to pass ifindex of the MLD netdev. 15291 * @QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_NUM_LINKS: u8 attribute, 15292 * used to indicate the number of links that the non-AP MLD negotiated to be 15293 * used in the ML connection. 15294 * @QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_LINK_INFO: Nested 15295 * attribute, contains information regarding links of the non-AP MLD. 15296 * User applications need to know all the links of a non-AP MLD that are 15297 * participating in the ML association. The possible attributes inside this 15298 * attribute are defined in enum qca_wlan_vendor_attr_mlo_link_info. 15299 */ 15300 enum qca_wlan_vendor_attr_mlo_peer_prim_netdev_event { 15301 QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_INVALID = 0, 15302 QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MACADDR = 1, 15303 QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MLD_MAC_ADDR = 2, 15304 QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_PRIM_IFINDEX = 3, 15305 QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MLD_IFINDEX = 4, 15306 QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_NUM_LINKS = 5, 15307 QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_LINK_INFO = 6, 15308 15309 /* keep last */ 15310 QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_AFTER_LAST, 15311 QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MAX = 15312 QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_AFTER_LAST - 1, 15313 }; 15314 15315 /** 15316 * enum qca_wlan_vendor_attr_mlo_link_info - Defines attributes for 15317 * non-AP MLD link parameters used by the attribute 15318 * %QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_LINK_INFO. 15319 * 15320 * @QCA_WLAN_VENDOR_ATTR_MLO_LINK_INFO_IFINDEX: u32 attribute, used 15321 * to pass the netdev ifindex of the non-AP MLD link. 15322 * @QCA_WLAN_VENDOR_ATTR_MLO_LINK_INFO_MACADDR: 6 byte MAC address of 15323 * the non-AP MLD link. 15324 */ 15325 enum qca_wlan_vendor_attr_mlo_link_info { 15326 QCA_WLAN_VENDOR_ATTR_MLO_LINK_INFO_INVALID = 0, 15327 QCA_WLAN_VENDOR_ATTR_MLO_LINK_INFO_IFINDEX = 1, 15328 QCA_WLAN_VENDOR_ATTR_MLO_LINK_INFO_MACADDR = 2, 15329 15330 /* keep last */ 15331 QCA_WLAN_VENDOR_ATTR_MLO_LINK_INFO_AFTER_LAST, 15332 QCA_WLAN_VENDOR_ATTR_MLO_LINK_INFO_MAX = 15333 QCA_WLAN_VENDOR_ATTR_MLO_LINK_INFO_AFTER_LAST - 1, 15334 }; 15335 15336 /** 15337 * enum qca_wlan_vendor_attr_afc_freq_psd_info: This enum is used with 15338 * nested attributes QCA_WLAN_VENDOR_ATTR_AFC_RESP_FREQ_PSD_INFO and 15339 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_FREQ_RANGE_LIST to update the frequency range 15340 * and PSD information. 15341 * 15342 * @QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_START: Required and type is 15343 * u32. This attribute is used to indicate the start of the queried frequency 15344 * range in MHz. 15345 * 15346 * @QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_END: Required and type is u32. 15347 * This attribute is used to indicate the end of the queried frequency range 15348 * in MHz. 15349 * 15350 * @QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_PSD: Required and type is u32. 15351 * This attribute will contain the PSD information for a single range as 15352 * specified by the QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_START and 15353 * QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_END attributes. 15354 * 15355 * The PSD power info (dBm/MHz) from user space should be multiplied 15356 * by a factor of 100 when sending to the driver to preserve granularity 15357 * up to 2 decimal places. 15358 * Example: 15359 * PSD power value: 10.21 dBm/MHz 15360 * Value to be updated in QCA_WLAN_VENDOR_ATTR_AFC_PSD_INFO: 1021. 15361 * 15362 * Note: QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_PSD attribute will be used only 15363 * with nested attribute QCA_WLAN_VENDOR_ATTR_AFC_RESP_FREQ_PSD_INFO and with 15364 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_FREQ_RANGE_LIST when 15365 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is 15366 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE. 15367 * 15368 * The following set of attributes will be used to exchange frequency and 15369 * corresponding PSD information for AFC between the user space and the driver. 15370 */ 15371 enum qca_wlan_vendor_attr_afc_freq_psd_info { 15372 QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_INVALID = 0, 15373 QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_START = 1, 15374 QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_END = 2, 15375 QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_PSD = 3, 15376 15377 QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_AFTER_LAST, 15378 QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_MAX = 15379 QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_AFTER_LAST - 1, 15380 }; 15381 15382 /** 15383 * enum qca_wlan_vendor_attr_afc_chan_eirp_info: This enum is used with 15384 * nested attribute QCA_WLAN_VENDOR_ATTR_AFC_CHAN_LIST_INFO to update the 15385 * channel list and corresponding EIRP information. 15386 * 15387 * @QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM: Required and type is u8. 15388 * This attribute is used to indicate queried channel from 15389 * the operating class indicated in QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO. 15390 * 15391 * @QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP: Optional and type is u32. 15392 * This attribute is used to configure the EIRP power info corresponding 15393 * to the channel number indicated in QCA_WLAN_VENDOR_ATTR_AFC_CHAN_NUM. 15394 * The EIRP power info(dBm) from user space should be multiplied 15395 * by a factor of 100 when sending to Driver to preserve granularity up to 15396 * 2 decimal places. 15397 * Example: 15398 * EIRP power value: 34.23 dBm 15399 * Value to be updated in QCA_WLAN_VENDOR_ATTR_AFC_EIRP_INFO: 3423. 15400 * 15401 * Note: QCA_WLAN_VENDOR_ATTR_AFC_EIRP_INFO attribute will only be used with 15402 * nested attribute QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO and 15403 * with QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_LIST when 15404 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is 15405 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE: 15406 * 15407 * The following set of attributes will be used to exchange Channel and 15408 * corresponding EIRP information for AFC between the user space and Driver. 15409 */ 15410 enum qca_wlan_vendor_attr_afc_chan_eirp_info { 15411 QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_INVALID = 0, 15412 QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM = 1, 15413 QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP = 2, 15414 15415 QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_AFTER_LAST, 15416 QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_MAX = 15417 QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_AFTER_LAST - 1, 15418 }; 15419 15420 /** 15421 * enum qca_wlan_vendor_attr_afc_opclass_info: This enum is used with nested 15422 * attributes QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO and 15423 * QCA_WLAN_VENDOR_ATTR_AFC_REQ_OPCLASS_CHAN_INFO to update the operating class, 15424 * channel, and EIRP related information. 15425 * 15426 * @QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS: Required and type is u8. 15427 * This attribute is used to indicate the operating class, as listed under 15428 * IEEE Std 802.11-2020 Annex E Table E-4, for the queried channel list. 15429 * 15430 * @QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST: Array of nested attributes 15431 * for updating the channel number and EIRP power information. 15432 * It uses the attributes defined in 15433 * enum qca_wlan_vendor_attr_afc_chan_eirp_info. 15434 * 15435 * Operating class information packing format for 15436 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_INFO when 15437 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is 15438 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE_EXPIRY. 15439 * 15440 * m - Total number of operating classes. 15441 * n, j - Number of queried channels for the corresponding operating class. 15442 * 15443 * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS[0] 15444 * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST[0] 15445 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[0] 15446 * ..... 15447 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[n - 1] 15448 * .... 15449 * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS[m] 15450 * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST[m] 15451 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[0] 15452 * .... 15453 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[j - 1] 15454 * 15455 * Operating class information packing format for 15456 * QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO and 15457 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_INFO when 15458 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is 15459 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE. 15460 * 15461 * m - Total number of operating classes. 15462 * n, j - Number of channels for the corresponding operating class. 15463 * 15464 * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS[0] 15465 * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST[0] 15466 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[0] 15467 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP[0] 15468 * ..... 15469 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[n - 1] 15470 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP[n - 1] 15471 * .... 15472 * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS[m] 15473 * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST[m] 15474 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[0] 15475 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP[0] 15476 * .... 15477 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[j - 1] 15478 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP[j - 1] 15479 * 15480 * The following set of attributes will be used to exchange operating class 15481 * information for AFC between the user space and the driver. 15482 */ 15483 enum qca_wlan_vendor_attr_afc_opclass_info { 15484 QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_INVALID = 0, 15485 QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS = 1, 15486 QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST = 2, 15487 15488 QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_AFTER_LAST, 15489 QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_MAX = 15490 QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_AFTER_LAST - 1, 15491 }; 15492 15493 /** 15494 * enum qca_wlan_vendor_afc_event_type: Defines values for AFC event type. 15495 * Attribute used by QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE attribute. 15496 * 15497 * @QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY: AFC expiry event sent from the 15498 * driver to userspace in order to query the new AFC power values. 15499 * 15500 * @QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE: Power update 15501 * complete event will be sent from the driver to userspace to indicate 15502 * processing of the AFC response. 15503 * 15504 * @QCA_WLAN_VENDOR_AFC_EVENT_TYPE_PAYLOAD_RESET: AFC payload reset event 15505 * will be sent from the driver to userspace to indicate last received 15506 * AFC response data has been cleared on the AP due to invalid data 15507 * in the QCA_NL80211_VENDOR_SUBCMD_AFC_RESPONSE. 15508 * 15509 * The following enum defines the different event types that will be 15510 * used by the driver to help trigger corresponding AFC functionality in user 15511 * space. 15512 */ 15513 enum qca_wlan_vendor_afc_event_type { 15514 QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY = 0, 15515 QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE = 1, 15516 QCA_WLAN_VENDOR_AFC_EVENT_TYPE_PAYLOAD_RESET = 2, 15517 }; 15518 15519 /** 15520 * enum qca_wlan_vendor_afc_ap_deployment_type: Defines values for AP 15521 * deployment type. 15522 * Attribute used by QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AP_DEPLOYMENT attribute. 15523 * 15524 * @QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_UNKNOWN: Unknown AP deployment. 15525 * 15526 * @QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_INDOOR: Indoor AP deployment. 15527 * 15528 * @QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_OUTDOOR: Outdoor AP deployment. 15529 * 15530 * The following enum defines different deployment modes that the AP might 15531 * come up in. This information will be essential to retrieve deployment-type 15532 * specific SP power values for AFC operation. 15533 */ 15534 enum qca_wlan_vendor_afc_ap_deployment_type { 15535 QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_UNKNOWN = 0, 15536 QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_INDOOR = 1, 15537 QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_OUTDOOR = 2, 15538 }; 15539 15540 /** 15541 * enum qca_wlan_vendor_afc_evt_status_code: Defines values AP will use to 15542 * indicate AFC response status. 15543 * Enum used by QCA_WLAN_VENDOR_ATTR_AFC_EVENT_STATUS_CODE attribute. 15544 * 15545 * @QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_SUCCESS: Success 15546 * 15547 * @QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_TIMEOUT: Indicates AFC indication 15548 * command was not received within the expected time of the AFC expiry event 15549 * being triggered. 15550 * 15551 * @QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_PARSING_ERROR: Indicates AFC data 15552 * parsing error by the driver. 15553 * 15554 * @QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_LOCAL_ERROR: Indicates any other local 15555 * error. 15556 * 15557 * The following enum defines the status codes that the driver will use to 15558 * indicate whether the AFC data is valid or not. 15559 */ 15560 enum qca_wlan_vendor_afc_evt_status_code { 15561 QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_SUCCESS = 0, 15562 QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_TIMEOUT = 1, 15563 QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_PARSING_ERROR = 2, 15564 QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_LOCAL_ERROR = 3, 15565 }; 15566 15567 /** 15568 * enum qca_wlan_vendor_attr_afc_event: Defines attributes to be used with 15569 * vendor event QCA_NL80211_VENDOR_SUBCMD_AFC_EVENT. These attributes will 15570 * support sending only a single request to the user space at a time. 15571 * 15572 * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE: Required u8 attribute. 15573 * Used with event to notify the type of AFC event received. 15574 * Valid values are defined in enum qca_wlan_vendor_afc_event_type. 15575 * 15576 * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AP_DEPLOYMENT: u8 attribute. Required when 15577 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY, 15578 * otherwise unused. 15579 * 15580 * This attribute is used to indicate the AP deployment type in the AFC request. 15581 * Valid values are defined in enum qca_wlan_vendor_afc_ap_deployment_type. 15582 * 15583 * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_REQ_ID: Required u32 attribute. 15584 * Unique request identifier generated by the AFC client for every 15585 * AFC expiry event trigger. See also QCA_WLAN_VENDOR_ATTR_AFC_RESP_REQ_ID. 15586 * The user space application is responsible for ensuring no duplicate values 15587 * are in-flight with the server, e.g., by delaying a request, should the same 15588 * value be received from different radios in parallel. 15589 * 15590 * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AFC_WFA_VERSION: u32 attribute. Optional. 15591 * It is used when the QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is 15592 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY, otherwise unused. 15593 * 15594 * This attribute indicates the AFC spec version information. This will 15595 * indicate the AFC version AFC client must use to query the AFC data. 15596 * Bits 15:0 - Minor version 15597 * Bits 31:16 - Major version 15598 * 15599 * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_MIN_DES_POWER: u16 attribute. Required when 15600 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY, 15601 * otherwise unused. 15602 * This attribute indicates the minimum desired power (in dBm) for 15603 * the queried spectrum. 15604 * 15605 * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_STATUS_CODE: u8 attribute. Required when 15606 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is 15607 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused. 15608 * 15609 * Valid values are defined in enum qca_wlan_vendor_afc_evt_status_code. 15610 * This attribute is used to indicate if there were any errors parsing the 15611 * AFC response. 15612 * 15613 * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_SERVER_RESP_CODE: s32 attribute. Required 15614 * when QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is 15615 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused. 15616 * 15617 * This attribute indicates the AFC response code. The AFC response codes are 15618 * in the following categories: 15619 * -1: General Failure. 15620 * 0: Success. 15621 * 100 - 199: General errors related to protocol. 15622 * 300 - 399: Error events specific to message exchange 15623 * for the Available Spectrum Inquiry. 15624 * 15625 * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_EXP_DATE: u32 attribute. Required when 15626 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is 15627 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused. 15628 * 15629 * This attribute indicates the date until which the current response is 15630 * valid for in UTC format. 15631 * Date format: bits 7:0 - DD (Day 1-31) 15632 * bits 15:8 - MM (Month 1-12) 15633 * bits 31:16 - YYYY (Year) 15634 * 15635 * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_EXP_TIME: u32 attribute. Required when 15636 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is 15637 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused. 15638 * 15639 * This attribute indicates the time until which the current response is 15640 * valid for in UTC format. 15641 * Time format: bits 7:0 - SS (Seconds 0-59) 15642 * bits 15:8 - MM (Minutes 0-59) 15643 * bits 23:16 - HH (Hours 0-23) 15644 * bits 31:24 - Reserved 15645 * 15646 * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_FREQ_RANGE_LIST: Array of nested attributes 15647 * for updating the list of frequency ranges to be queried. 15648 * Required when QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is 15649 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY or 15650 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused. 15651 * It uses the attributes defined in 15652 * enum qca_wlan_vendor_attr_afc_freq_psd_info. 15653 * 15654 * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_LIST: Array of nested attributes 15655 * for updating the list of operating classes and corresponding channels to be 15656 * queried. 15657 * Required when QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is 15658 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY or 15659 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused. 15660 * It uses the attributes defined in enum qca_wlan_vendor_attr_afc_opclass_info. 15661 */ 15662 enum qca_wlan_vendor_attr_afc_event { 15663 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_INVALID = 0, 15664 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE = 1, 15665 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AP_DEPLOYMENT = 2, 15666 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_REQ_ID = 3, 15667 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AFC_WFA_VERSION = 4, 15668 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_MIN_DES_POWER = 5, 15669 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_STATUS_CODE = 6, 15670 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_SERVER_RESP_CODE = 7, 15671 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_EXP_DATE = 8, 15672 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_EXP_TIME = 9, 15673 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_FREQ_RANGE_LIST = 10, 15674 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_LIST = 11, 15675 15676 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AFTER_LAST, 15677 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_MAX = 15678 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AFTER_LAST - 1, 15679 }; 15680 15681 /** 15682 * enum qca_wlan_vendor_attr_afc_response: Defines attributes to be used 15683 * with vendor command QCA_NL80211_VENDOR_SUBCMD_AFC_RESPONSE. These attributes 15684 * will support sending only a single AFC response to the driver at a time. 15685 * 15686 * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_DATA: Type is NLA_STRING. Required attribute. 15687 * This attribute will be used to send a single Spectrum Inquiry response object 15688 * from the 'availableSpectrumInquiryResponses' array object from the response 15689 * JSON. 15690 * 15691 * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_TIME_TO_LIVE: Required u32 attribute. 15692 * 15693 * This attribute indicates the period (in seconds) for which the response 15694 * data received is valid for. 15695 * 15696 * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_REQ_ID: Required u32 attribute. 15697 * 15698 * This attribute indicates the request ID for which the corresponding 15699 * response is being sent for. See also QCA_WLAN_VENDOR_ATTR_AFC_EVENT_REQ_ID. 15700 * 15701 * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_EXP_DATE: Required u32 attribute. 15702 * 15703 * This attribute indicates the date until which the current response is 15704 * valid for in UTC format. 15705 * Date format: bits 7:0 - DD (Day 1-31) 15706 * bits 15:8 - MM (Month 1-12) 15707 * bits 31:16 - YYYY (Year) 15708 * 15709 * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_EXP_TIME: Required u32 attribute. 15710 * 15711 * This attribute indicates the time until which the current response is 15712 * valid for in UTC format. 15713 * Time format: bits 7:0 - SS (Seconds 0-59) 15714 * bits 15:8 - MM (Minutes 0-59) 15715 * bits 23:16 - HH (Hours 0-23) 15716 * bits 31:24 - Reserved 15717 * 15718 * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_AFC_SERVER_RESP_CODE: Required s32 attribute. 15719 * 15720 * This attribute indicates the AFC response code. The AFC response codes are 15721 * in the following categories: 15722 * -1: General Failure. 15723 * 0: Success. 15724 * 100 - 199: General errors related to protocol. 15725 * 300 - 399: Error events specific to message exchange 15726 * for the Available Spectrum Inquiry. 15727 * 15728 * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_FREQ_PSD_INFO: Array of nested attributes 15729 * for PSD info of all the queried frequency ranges. It uses the attributes 15730 * defined in enum qca_wlan_vendor_attr_afc_freq_psd_info. Required attribute. 15731 * 15732 * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO: Array of nested 15733 * attributes for EIRP info of all queried operating class/channels. It uses 15734 * the attributes defined in enum qca_wlan_vendor_attr_afc_opclass_info and 15735 * enum qca_wlan_vendor_attr_afc_chan_eirp_info. Required attribute. 15736 * 15737 */ 15738 enum qca_wlan_vendor_attr_afc_response { 15739 QCA_WLAN_VENDOR_ATTR_AFC_RESP_INVALID = 0, 15740 QCA_WLAN_VENDOR_ATTR_AFC_RESP_DATA = 1, 15741 QCA_WLAN_VENDOR_ATTR_AFC_RESP_TIME_TO_LIVE = 2, 15742 QCA_WLAN_VENDOR_ATTR_AFC_RESP_REQ_ID = 3, 15743 QCA_WLAN_VENDOR_ATTR_AFC_RESP_EXP_DATE = 4, 15744 QCA_WLAN_VENDOR_ATTR_AFC_RESP_EXP_TIME = 5, 15745 QCA_WLAN_VENDOR_ATTR_AFC_RESP_AFC_SERVER_RESP_CODE = 6, 15746 QCA_WLAN_VENDOR_ATTR_AFC_RESP_FREQ_PSD_INFO = 7, 15747 QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO = 8, 15748 15749 QCA_WLAN_VENDOR_ATTR_AFC_RESP_AFTER_LAST, 15750 QCA_WLAN_VENDOR_ATTR_AFC_RESP_MAX = 15751 QCA_WLAN_VENDOR_ATTR_AFC_RESP_AFTER_LAST - 1, 15752 }; 15753 15754 /** 15755 * enum qca_wlan_dozed_ap_state - Doze states for AP interface 15756 * 15757 * @QCA_WLAN_DOZED_AP_DISABLE: Disable doze state on the AP interface. 15758 * 15759 * @QCA_WLAN_DOZED_AP_ENABLE: Enable doze state on the AP interface. AP starts 15760 * beaconing at higher beacon interval with Rx disabled. 15761 */ 15762 enum qca_wlan_dozed_ap_state { 15763 QCA_WLAN_DOZED_AP_DISABLE = 0, 15764 QCA_WLAN_DOZED_AP_ENABLE = 1, 15765 }; 15766 15767 /** 15768 * enum qca_wlan_vendor_attr_dozed_ap - Used by the vendor command 15769 * @QCA_NL80211_VENDOR_SUBCMD_DOZED_AP to configure or receive dozed AP mode 15770 * configuration. 15771 * 15772 * @QCA_WLAN_VENDOR_ATTR_DOZED_AP_STATE: u8 attribute. 15773 * Configures the doze state for an AP interface. Possible values are defined 15774 * in enum qca_wlan_dozed_ap_state. @QCA_NL80211_VENDOR_SUBCMD_DOZED_AP event 15775 * gets triggered asynchronously to provide updated AP interface configuration. 15776 * 15777 * @QCA_WLAN_VENDOR_ATTR_DOZED_AP_COOKIE: Unsigned 64-bit cookie provided by 15778 * the driver in the response to specific @QCA_NL80211_VENDOR_SUBCMD_DOZED_AP 15779 * command, which is used later to maintain synchronization between commands 15780 * and asynchronous events. 15781 * 15782 * @QCA_WLAN_VENDOR_ATTR_DOZED_AP_NEXT_TSF: u64 attribute. 15783 * Used in event to indicate the next TBTT TSF timer value after applying the 15784 * doze mode configuration. Next TBTT TSF is the time at which the AP sends 15785 * the first beacon after entering or exiting dozed mode. 15786 * 15787 * @QCA_WLAN_VENDOR_ATTR_DOZED_AP_BI_MULTIPLIER: u16 attribute. 15788 * Used with event to inform the periodicity of beacon transmission that would 15789 * be skipped at all TBTTs in between. 15790 * 15791 * @QCA_WLAN_VENDOR_ATTR_DOZED_AP_PAD: Attribute used for padding for 64-bit 15792 * alignment. 15793 */ 15794 enum qca_wlan_vendor_attr_dozed_ap { 15795 QCA_WLAN_VENDOR_ATTR_DOZED_AP_INVALID = 0, 15796 QCA_WLAN_VENDOR_ATTR_DOZED_AP_STATE = 1, 15797 QCA_WLAN_VENDOR_ATTR_DOZED_AP_COOKIE = 2, 15798 QCA_WLAN_VENDOR_ATTR_DOZED_AP_NEXT_TSF = 3, 15799 QCA_WLAN_VENDOR_ATTR_DOZED_AP_BI_MULTIPLIER = 4, 15800 QCA_WLAN_VENDOR_ATTR_DOZED_AP_PAD = 5, 15801 15802 /* Keep last */ 15803 QCA_WLAN_VENDOR_ATTR_DOZED_AP_AFTER_LAST, 15804 QCA_WLAN_VENDOR_ATTR_DOZED_AP_MAX = 15805 QCA_WLAN_VENDOR_ATTR_DOZED_AP_AFTER_LAST - 1, 15806 }; 15807 15808 /** 15809 * enum qca_wlan_vendor_monitor_mode_status - Represents the status codes 15810 * used with QCA_NL80211_VENDOR_SUBCMD_GET_MONITOR_MODE. 15811 * @QCA_WLAN_VENDOR_MONITOR_MODE_NO_CAPTURE_RUNNING: Used to indicate no 15812 * capture running status. 15813 * @QCA_WLAN_VENDOR_MONITOR_MODE_CAPTURE_RUNNING: Used to indicate 15814 * capture running status. 15815 **/ 15816 15817 enum qca_wlan_vendor_monitor_mode_status { 15818 QCA_WLAN_VENDOR_MONITOR_MODE_NO_CAPTURE_RUNNING = 0, 15819 QCA_WLAN_VENDOR_MONITOR_MODE_CAPTURE_RUNNING = 1, 15820 }; 15821 15822 /** 15823 * enum qca_wlan_vendor_attr_get_monitor_mode - Used by the 15824 * vendor command QCA_NL80211_VENDOR_SUBCMD_GET_MONITOR_MODE to report 15825 * information regarding the local packet capture over the monitor mode. 15826 * 15827 * @QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_STATUS: u32 attribute. This attribute 15828 * represents the status of the start capture commands. The values used with 15829 * this attribute are defined in enum qca_wlan_vendor_monitor_mode_status. This 15830 * is returned by the driver in the response to the command. 15831 */ 15832 15833 enum qca_wlan_vendor_attr_get_monitor_mode { 15834 QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_INVALID = 0, 15835 QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_STATUS = 1, 15836 15837 /* Keep last */ 15838 QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_AFTER_LAST, 15839 QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_MAX = 15840 QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_AFTER_LAST - 1, 15841 }; 15842 15843 /** 15844 * enum qca_wlan_vendor_link_state_op_types - Defines different types of 15845 * operations for which %QCA_NL80211_VENDOR_SUBCMD_MLO_LINK_STATE can be used. 15846 * Will be used with %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE attribute. 15847 * 15848 * @QCA_WLAN_VENDOR_LINK_STATE_OP_GET - Get the MLO links state information. 15849 * @QCA_WLAN_VENDOR_LINK_STATE_OP_SET - Set the MLO links state information. 15850 */ 15851 enum qca_wlan_vendor_link_state_op_types { 15852 QCA_WLAN_VENDOR_LINK_STATE_OP_GET = 0, 15853 QCA_WLAN_VENDOR_LINK_STATE_OP_SET = 1, 15854 }; 15855 15856 /** 15857 * enum qca_wlan_vendor_link_state_control_modes - Represents the types of MLO 15858 * links state control modes. This enum is used by 15859 * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONTROL_MODE attribute. 15860 * 15861 * @QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_DEFAULT: MLO links state controlled 15862 * by the driver. 15863 * @QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_USER: MLO links state controlled by 15864 * user space. 15865 * @QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_MIXED: User space provides the 15866 * desired number of MLO links to operate in active state at any given time. 15867 * The driver will choose which MLO links should operate in the active state. 15868 * See enum qca_wlan_vendor_link_state for active state definition. 15869 */ 15870 enum qca_wlan_vendor_link_state_control_modes { 15871 QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_DEFAULT = 0, 15872 QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_USER = 1, 15873 QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_MIXED = 2, 15874 }; 15875 15876 /** 15877 * enum qca_wlan_vendor_link_state_operation_modes - Represents the types of MLO 15878 * links state operation modes. This enum is used by 15879 * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OPERATION_MODE attribute. 15880 * 15881 * @QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_DEFAULT: In the default operation 15882 * mode, the driver selects the operating mode of the links, without any 15883 * guidance from the user space. 15884 * @QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_LOW_LATENCY: In the low latency 15885 * operation mode the driver should select MLO links that will achieve low 15886 * latency. 15887 * @QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_HIGH_THROUGHPUT: In the high 15888 * throughput operation mode the driver should select MLO links that will 15889 * achieve higher throughput. 15890 * @QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_LOW_POWER: In the low power 15891 * operation mode the driver should select MLO links that will achieve low 15892 * power. 15893 */ 15894 enum qca_wlan_vendor_link_state_operation_modes { 15895 QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_DEFAULT = 0, 15896 QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_LOW_LATENCY = 1, 15897 QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_HIGH_THROUGHPUT = 2, 15898 QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_LOW_POWER = 3, 15899 }; 15900 15901 /** 15902 * enum qca_wlan_vendor_link_state - Represents the possible link states of an 15903 * MLO link. 15904 * 15905 * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_INACTIVE: In this state, the link will not 15906 * be used for data transmission but it can have TIDs mapped to it. It will be 15907 * in doze state always and does not monitor the beacons. 15908 * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_ACTIVE: In this state, the link will be 15909 * used for data TX/RX and monitors the beacons to check TIM bit indication. 15910 * It may enter doze state and comes out based on the transmit data traffic and 15911 * TIM bit indication in the beacon. 15912 */ 15913 enum qca_wlan_vendor_link_state { 15914 QCA_WLAN_VENDOR_LINK_STATE_INACTIVE = 0, 15915 QCA_WLAN_VENDOR_LINK_STATE_ACTIVE = 1, 15916 }; 15917 15918 /** 15919 * enum qca_wlan_vendor_attr_link_state_config - Definition of attributes used 15920 * inside nested attribute %QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG. 15921 * 15922 * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_LINK_ID: u8 attribute, link ID of the 15923 * MLO link. 15924 * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_STATE: u32 attribute. See 15925 * enum qca_wlan_vendor_link_state for possible MLO link states. 15926 */ 15927 15928 enum qca_wlan_vendor_attr_link_state_config { 15929 QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_INVALID = 0, 15930 QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_LINK_ID = 1, 15931 QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_STATE = 2, 15932 15933 /* Keep last */ 15934 QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_AFTER_LAST, 15935 QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_MAX = 15936 QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_AFTER_LAST - 1, 15937 }; 15938 15939 /** 15940 * enum qca_wlan_vendor_attr_mlo_link_state - Attributes used by 15941 * %QCA_NL80211_VENDOR_SUBCMD_MLO_LINK_STATE vendor command. 15942 * 15943 * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE: u32 attribute. Indicates the type 15944 * of the operation %QCA_NL80211_VENDOR_SUBCMD_MLO_LINK_STATE intended for. 15945 * Required only in a command. Possible values for this attribute are defined in 15946 * enum qca_wlan_vendor_link_state_op_types. 15947 * 15948 * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONTROL_MODE: u32 attribute. Indicates MLO 15949 * links control mode type. Optional attribute in a command when 15950 * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE is set to 15951 * %QCA_WLAN_VENDOR_LINK_STATE_OP_SET. Required attribute in a response when 15952 * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE is set to 15953 * %QCA_WLAN_VENDOR_LINK_STATE_OP_GET. 15954 * See enum qca_wlan_vendor_link_state_control_modes for possible control modes. 15955 * 15956 * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG: Array of nested attributes. 15957 * Indicates the state of the each MLO link affiliated with the interface. 15958 * Required attribute in a command when %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE 15959 * is set to %QCA_WLAN_VENDOR_LINK_STATE_OP_SET and 15960 * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONTROL_MODE is set to 15961 * %QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_USER. Required attribute in a 15962 * response when %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE is set to 15963 * %QCA_WLAN_VENDOR_LINK_STATE_OP_GET. 15964 * See enum qca_wlan_vendor_attr_link_state_config for the nested attributes. 15965 * 15966 * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_MIXED_MODE_ACTIVE_NUM_LINKS: u8 attribute. 15967 * Represents the number of active state links. See enum 15968 * qca_wlan_vendor_link_state for active state definition. 15969 * Required attribute in a command when %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE 15970 * is set to %QCA_WLAN_VENDOR_LINK_STATE_OP_SET and 15971 * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONTROL_MODE is set to 15972 * %QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_MIXED. 15973 * 15974 * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_OPERATION_MODE: u32 attribute. Indicates MLO 15975 * links operation mode type. Optional attribute in a command when 15976 * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE is set to 15977 * %QCA_WLAN_VENDOR_LINK_STATE_OP_SET. Required attribute in a response when 15978 * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE is set to 15979 * %QCA_WLAN_VENDOR_LINK_STATE_OP_GET. 15980 * See enum qca_wlan_vendor_link_state_operation_modes for possible operation 15981 * modes. 15982 */ 15983 enum qca_wlan_vendor_attr_mlo_link_state { 15984 QCA_WLAN_VENDOR_ATTR_LINK_STATE_INVALID = 0, 15985 QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE = 1, 15986 QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONTROL_MODE = 2, 15987 QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG = 3, 15988 QCA_WLAN_VENDOR_ATTR_LINK_STATE_MIXED_MODE_ACTIVE_NUM_LINKS = 4, 15989 QCA_WLAN_VENDOR_ATTR_LINK_STATE_OPERATION_MODE = 5, 15990 15991 /* keep last */ 15992 QCA_WLAN_VENDOR_ATTR_LINK_STATE_AFTER_LAST, 15993 QCA_WLAN_VENDOR_ATTR_LINK_STATE_MAX = 15994 QCA_WLAN_VENDOR_ATTR_LINK_STATE_AFTER_LAST - 1, 15995 }; 15996 15997 /** 15998 * enum qca_wlan_vendor_attr_tid_link_map_status - Definition of attributes used 15999 * inside nested attribute %QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_STATUS. 16000 * 16001 * @QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_UPLINK: Required u16 attribute 16002 * within nested attribute %QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_STATUS. 16003 * Indicates the link mapping bitmap of a TID for uplink traffic. It is a 16004 * bitmask of the link IDs in which a bit set means that the TID is mapped with 16005 * that link ID in uplink traffic. Otherwise, the TID is not mapped to uplink 16006 * traffic for that link. 16007 * 16008 * @QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_DOWNLINK: Required u16 attribute 16009 * within nested attribute %QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_STATUS. 16010 * Indicates the link mapping bitmap of a TID for downlink traffic. It is a 16011 * bitmask of the link IDs in which a bit set means that the TID is mapped with 16012 * that link ID in downlink traffic. Otherwise, the TID is not mapped to 16013 * downlink traffic for that link. 16014 */ 16015 enum qca_wlan_vendor_attr_tid_link_map_status { 16016 QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_INVALID = 0, 16017 QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_UPLINK = 1, 16018 QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_DOWNLINK = 2, 16019 16020 /* keep last */ 16021 QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_AFTER_LAST, 16022 QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_MAX = 16023 QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_AFTER_LAST - 1, 16024 }; 16025 16026 /* 16027 * enum qca_wlan_vendor_attr_tid_to_link_map: Definition of attributes used with 16028 * %QCA_NL80211_VENDOR_SUBCMD_TID_TO_LINK_MAP event. 16029 * 16030 * @QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_AP_MLD_ADDR: Required attribute. 6-byte 16031 * AP MLD address with which this TID-to-link negotiation mapping is 16032 * established/updated. 16033 * 16034 * @QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_STATUS: Optional attribute. Array of 16035 * nested attributes containing TID-to-links mapping information. This will have 16036 * TID-to-link mapping for TID0 to TID7, each containing the uplink and downlink 16037 * map information. If this attribute is not present the default TID-to-link 16038 * mapping is in use, i.e., all TIDs are mapped to all links for both uplink and 16039 * downlink traffic. 16040 * See enum qca_wlan_vendor_attr_tid_link_map_status for the nested attributes. 16041 */ 16042 enum qca_wlan_vendor_attr_tid_to_link_map { 16043 QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_INVALID = 0, 16044 QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_AP_MLD_ADDR = 1, 16045 QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_STATUS = 2, 16046 16047 /* keep last */ 16048 QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_AFTER_LAST, 16049 QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_MAX = 16050 QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_AFTER_LAST - 1, 16051 }; 16052 16053 /** 16054 * enum qca_wlan_vendor_attr_link_reconfig: Definition of attributes used 16055 * with %QCA_NL80211_VENDOR_SUBCMD_LINK_RECONFIG event. 16056 * 16057 * @QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_AP_MLD_ADDR: Required attribute. 16058 * 6-byte AP MLD address of the AP which indicated the link reconfiguration. 16059 * 16060 * @QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_REMOVED_LINKS: Required u16 attribute. 16061 * A bitmap of the removed setup links link IDs. 16062 */ 16063 enum qca_wlan_vendor_attr_link_reconfig { 16064 QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_INVALID = 0, 16065 QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_AP_MLD_ADDR = 1, 16066 QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_REMOVED_LINKS = 2, 16067 16068 /* keep last */ 16069 QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_AFTER_LAST, 16070 QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_MAX = 16071 QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_AFTER_LAST - 1 16072 }; 16073 16074 /** 16075 * enum qca_wlan_vendor_attr_tdls_disc_rsp_ext - Attributes used by 16076 * %QCA_NL80211_VENDOR_SUBCMD_TDLS_DISC_RSP_EXT vendor command. 16077 * 16078 * @QCA_WLAN_VENDOR_ATTR_TDLS_DISC_RSP_EXT_TX_LINK: u8 attribute. 16079 * Indicates the MLO link id on which the TDLS discovery response 16080 * frame is to be transmitted. 16081 */ 16082 enum qca_wlan_vendor_attr_tdls_disc_rsp_ext { 16083 QCA_WLAN_VENDOR_ATTR_TDLS_DISC_RSP_EXT_INVALID = 0, 16084 QCA_WLAN_VENDOR_ATTR_TDLS_DISC_RSP_EXT_TX_LINK = 1, 16085 16086 /* Keep last */ 16087 QCA_WLAN_VENDOR_ATTR_TDLS_DISC_RSP_EXT_AFTER_LAST, 16088 QCA_WLAN_VENDOR_ATTR_TDLS_DISC_RSP_EXT_MAX = 16089 QCA_WLAN_VENDOR_ATTR_TDLS_DISC_RSP_EXT_AFTER_LAST - 1, 16090 }; 16091 16092 /** 16093 * enum qca_wlan_vendor_tdls_state - Represents the possible TDLS states. 16094 * 16095 * @QCA_WLAN_VENDOR_TDLS_STATE_DISABLED: TDLS is not enabled, default status 16096 * for all stations. 16097 * 16098 * @QCA_WLAN_VENDOR_TDLS_STATE_ENABLED: TDLS is enabled, but not yet tried to 16099 * establish the session. 16100 * 16101 * @QCA_WLAN_VENDOR_TDLS_STATE_ESTABLISHED: Direct link TDLS session is 16102 * established. 16103 * 16104 * @QCA_WLAN_VENDOR_TDLS_STATE_ESTABLISHED_OFF_CHANNEL: Direct link TDLS 16105 * session is established using MCC. 16106 * 16107 * @QCA_WLAN_VENDOR_TDLS_STATE_DROPPED: Direct link TDLS session was 16108 * established, but is temporarily dropped currently. 16109 * 16110 * @QCA_WLAN_VENDOR_TDLS_STATE_FAILED: TDLS session is failed to establish. 16111 */ 16112 enum qca_wlan_vendor_tdls_state { 16113 QCA_WLAN_VENDOR_TDLS_STATE_DISABLED = 1, 16114 QCA_WLAN_VENDOR_TDLS_STATE_ENABLED = 2, 16115 QCA_WLAN_VENDOR_TDLS_STATE_ESTABLISHED = 3, 16116 QCA_WLAN_VENDOR_TDLS_STATE_ESTABLISHED_OFF_CHANNEL = 4, 16117 QCA_WLAN_VENDOR_TDLS_STATE_DROPPED = 5, 16118 QCA_WLAN_VENDOR_TDLS_STATE_FAILED = 6, 16119 }; 16120 16121 /** 16122 * enum qca_wlan_vendor_tdls_reason - Represents the possible TDLS reasons. 16123 * 16124 * @QCA_WLAN_TDLS_REASON_SUCCESS: TDLS session is successfully established. 16125 * 16126 * @QCA_WLAN_TDLS_REASON_UNSPECIFIED: Unspecified reason. 16127 * 16128 * @QCA_WLAN_TDLS_REASON_NOT_SUPPORTED: TDLS is not supported. 16129 * 16130 * @QCA_WLAN_TDLS_REASON_UNSUPPORTED_BAND: The specified band is not supported. 16131 * 16132 * @QCA_WLAN_TDLS_REASON_NOT_BENEFICIAL: Packets going through AP is better 16133 * than through direct link. 16134 * 16135 * @QCA_WLAN_TDLS_REASON_DROPPED_BY_REMOTE: Peer station doesn't want the TDLS 16136 * session anymore. 16137 */ 16138 16139 enum qca_wlan_vendor_tdls_reason { 16140 QCA_WLAN_TDLS_REASON_SUCCESS = 0, 16141 QCA_WLAN_TDLS_REASON_UNSPECIFIED = -1, 16142 QCA_WLAN_TDLS_REASON_NOT_SUPPORTED = -2, 16143 QCA_WLAN_TDLS_REASON_UNSUPPORTED_BAND = -3, 16144 QCA_WLAN_TDLS_REASON_NOT_BENEFICIAL = -4, 16145 QCA_WLAN_TDLS_REASON_DROPPED_BY_REMOTE = -5, 16146 }; 16147 16148 /** 16149 * enum qca_wlan_vendor_attr_tdls_enable - Attributes used by 16150 * %QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE vendor command. 16151 * 16152 * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR: 6-byte MAC address of the peer 16153 * station to enable the TDLS session. Optional attribute. The driver sends the 16154 * TDLS session result as an asynchronous response using the command 16155 * %QCA_NL80211_VENDOR_SUBCMD_TDLS_STATE when this peer MAC is provided in 16156 * %QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE command. 16157 * 16158 * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_CHANNEL: u32 attribute. Indicates the 16159 * channel on which the TDLS session to be established. Required only when 16160 * %QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR is present. 16161 * 16162 * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_GLOBAL_OPERATING_CLASS: u32 attribute. 16163 * Indicates the global operating class of the TDLS session to be established. 16164 * Required only when %QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR is present. 16165 * 16166 * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX_LATENCY_MS: u32 attribute. Indicates 16167 * the maximum latency of the WLAN packets to be transmitted/received in 16168 * milliseconds on TDLS session. Required only when 16169 * %QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR is present. 16170 * 16171 * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MIN_BANDWIDTH_KBPS: u32 attribute. 16172 * Indicates the minimum bandwidth to be used to establish the TDLS session 16173 * in kbps. Required only when %QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR is 16174 * present. 16175 */ 16176 enum qca_wlan_vendor_attr_tdls_enable { 16177 QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_INVALID = 0, 16178 QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR = 1, 16179 QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_CHANNEL = 2, 16180 QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_GLOBAL_OPERATING_CLASS = 3, 16181 QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX_LATENCY_MS = 4, 16182 QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MIN_BANDWIDTH_KBPS = 5, 16183 16184 /* keep last */ 16185 QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_AFTER_LAST, 16186 QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX = 16187 QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_AFTER_LAST - 1, 16188 }; 16189 16190 /** 16191 * enum qca_wlan_vendor_attr_tdls_disable - Attributes used by 16192 * %QCA_NL80211_VENDOR_SUBCMD_TDLS_DISABLE vendor command. 16193 * 16194 * @QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAC_ADDR: 6-byte MAC address of the peer 16195 * station to disable the TDLS session. Optional attribute. 16196 */ 16197 enum qca_wlan_vendor_attr_tdls_disable { 16198 QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_INVALID = 0, 16199 QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAC_ADDR = 1, 16200 16201 /* keep last */ 16202 QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_AFTER_LAST, 16203 QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAX = 16204 QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_AFTER_LAST - 1, 16205 }; 16206 16207 /** 16208 * enum qca_wlan_vendor_attr_tdls_get_status - Attributes used by 16209 * %QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS vendor command. 16210 * 16211 * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR: 6-byte MAC address of the 16212 * peer station. Optional attribute. Used in 16213 * %QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS request and response. 16214 * 16215 * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_STATE: u32 attribute. Indicates the 16216 * TDLS session state with the peer specified in 16217 * %QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR. Uses the values from 16218 * enum qca_wlan_vendor_tdls_state. Used in 16219 * %QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS response. 16220 * 16221 * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_REASON: s32 attribute. Indicates the 16222 * reason for the TDLS session state indicated in 16223 * %QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_STATE. Uses the values from enum 16224 * qca_wlan_vendor_tdls_reason. Used in 16225 * %QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS response. 16226 * 16227 * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_CHANNEL: u32 attribute. Indicates the 16228 * channel of the TDLS session established with 16229 * %QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR. Used in 16230 * %QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS response. 16231 * 16232 * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_GLOBAL_OPERATING_CLASS: u32 attribute. 16233 * Indicates the global operating class of the TDLS session established with 16234 * %QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR. Used in 16235 * %QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS response. 16236 * 16237 * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_NUM_SESSIONS: u32 attribute. Indicates 16238 * the current number of active TDLS sessions. This is indicated in the response 16239 * when %QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS is requested with 16240 * %NL80211_ATTR_VENDOR_DATA as an empty nested attribute. 16241 * 16242 * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_AVAILABLE: Flag attribute. Indicates 16243 * whether the driver can initiate new TDLS session. This is indicated in the 16244 * response when %QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS is requested with 16245 * %NL80211_ATTR_VENDOR_DATA as an empty nested attribute. 16246 */ 16247 enum qca_wlan_vendor_attr_tdls_get_status { 16248 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_INVALID = 0, 16249 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR = 1, 16250 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_STATE = 2, 16251 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_REASON = 3, 16252 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_CHANNEL = 4, 16253 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_GLOBAL_OPERATING_CLASS = 5, 16254 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_NUM_SESSIONS = 6, 16255 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_AVAILABLE = 7, 16256 16257 /* keep last */ 16258 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_AFTER_LAST, 16259 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAX = 16260 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_AFTER_LAST - 1, 16261 }; 16262 16263 /** 16264 * enum qca_wlan_vendor_attr_tdls_state - Attributes used by 16265 * %QCA_NL80211_VENDOR_SUBCMD_TDLS_STATE vendor command. 16266 * 16267 * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAC_ADDR: 6-byte MAC address of the 16268 * peer station. Required attribute. 16269 * 16270 * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_CURRENT_STATE: u32 attribute. Indicates 16271 * the current TDLS state. Required attribute. Uses the values from 16272 * enum qca_wlan_vendor_tdls_state. 16273 * 16274 * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_REASON: s32 attribute. Indicates the 16275 * reason of the current TDLS session state. Required attribute. Uses the values 16276 * from enum qca_wlan_vendor_tdls_reason. 16277 * 16278 * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_CHANNEL: u32 attribute. Indicates the 16279 * TDLS session channel. Required attribute. 16280 * 16281 * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_GLOBAL_OPERATING_CLASS: u32 attribute. 16282 * Indicates the TDLS session global operating class. Required attribute. 16283 */ 16284 enum qca_wlan_vendor_attr_tdls_state { 16285 QCA_WLAN_VENDOR_ATTR_TDLS_STATE_INVALID = 0, 16286 QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAC_ADDR = 1, 16287 QCA_WLAN_VENDOR_ATTR_TDLS_STATE_NEW_STATE = 2, 16288 QCA_WLAN_VENDOR_ATTR_TDLS_STATE_REASON = 3, 16289 QCA_WLAN_VENDOR_ATTR_TDLS_STATE_CHANNEL = 4, 16290 QCA_WLAN_VENDOR_ATTR_TDLS_STATE_GLOBAL_OPERATING_CLASS = 5, 16291 16292 /* keep last */ 16293 QCA_WLAN_VENDOR_ATTR_TDLS_STATE_AFTER_LAST, 16294 QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAX = 16295 QCA_WLAN_VENDOR_ATTR_TDLS_STATE_AFTER_LAST - 1, 16296 }; 16297 16298 /* 16299 * enum qca_wlan_vendor_opm_mode - Modes supported by 16300 * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPTIMIZED_POWER_MANAGEMENT vendor attribute. 16301 * 16302 * @QCA_WLAN_VENDOR_OPM_MODE_DISABLE: OPM Disabled 16303 * @QCA_WLAN_VENDOR_OPM_MODE_ENABLE: OPM Enabled 16304 * @QCA_WLAN_VENDOR_OPM_MODE_USER_DEFINED: User defined mode which allows user 16305 * to configure power save inactivity timeout and speculative wake up 16306 * interval through %QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_ITO and 16307 * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_SPEC_WAKE_INTERVAL attributes. 16308 */ 16309 16310 enum qca_wlan_vendor_opm_mode { 16311 QCA_WLAN_VENDOR_OPM_MODE_DISABLE = 0, 16312 QCA_WLAN_VENDOR_OPM_MODE_ENABLE = 1, 16313 QCA_WLAN_VENDOR_OPM_MODE_USER_DEFINED = 2, 16314 }; 16315 16316 /* 16317 * enum qca_wlan_vendor_tx_latency_type - Represents the possible latency 16318 * types. 16319 * 16320 * @QCA_WLAN_VENDOR_TX_LATENCY_TYPE_DRIVER: Per MSDU latency 16321 * from: An MSDU is presented to the driver 16322 * to: the MSDU is queued into TCL SRNG 16323 * 16324 * @QCA_WLAN_VENDOR_TX_LATENCY_TYPE_RING: Per MSDU latency 16325 * from: the MSDU is queued into TCL SRNG 16326 * to: the MSDU is released by the driver 16327 * 16328 * @QCA_WLAN_VENDOR_TX_LATENCY_TYPE_HW: Per MSDU latency 16329 * from: the MSDU is presented to the hardware 16330 * to: the MSDU is released by the hardware 16331 * 16332 * @QCA_WLAN_VENDOR_TX_LATENCY_TYPE_CCA: Per PPDU latency 16333 * The time spent on Clear Channel Assessment, the maximum value is 50000 (us) 16334 * from: A PPDU is presented to the hardware LMAC 16335 * to: over-the-air transmission is started for the PPDU 16336 */ 16337 enum qca_wlan_vendor_tx_latency_type { 16338 QCA_WLAN_VENDOR_TX_LATENCY_TYPE_DRIVER = 0, 16339 QCA_WLAN_VENDOR_TX_LATENCY_TYPE_RING = 1, 16340 QCA_WLAN_VENDOR_TX_LATENCY_TYPE_HW = 2, 16341 QCA_WLAN_VENDOR_TX_LATENCY_TYPE_CCA = 3, 16342 }; 16343 16344 /** 16345 * enum qca_wlan_vendor_attr_tx_latency_bucket - Definition of attributes 16346 * used inside nested attributes 16347 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKETS and 16348 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_STAT_BUCKETS. 16349 * 16350 * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_TYPE: u8 attribute. 16351 * Indicates the latency type. 16352 * See enum qca_wlan_vendor_tx_latency_type for the supported types. 16353 * 16354 * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_GRANULARITY: u32 attribute. 16355 * Indicates the granularity (in microseconds) of the distribution for the 16356 * type (specified by %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_TYPE), the value 16357 * must be positive. 16358 * If %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_TYPE is 16359 * %QCA_WLAN_VENDOR_TX_LATENCY_TYPE_CCA, the value must be an integer multiple 16360 * of 1000, and the maximum allowed value is 15000 (us). 16361 * 16362 * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_AVERAGE: u32 attribute. 16363 * Indicates the average of the latency (in microseconds) for the type 16364 * (specified by %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_TYPE) within a cycle. 16365 * If there is no transmitted MSDUs/MPDUs during a cycle, this average is 0; 16366 * otherwise, it represents the quotient of <accumulated latency of the 16367 * transmitted MSDUs/MPDUs in a cycle> divided by <the number of the transmitted 16368 * MSDUs/MPDUs in a cycle>. 16369 * 16370 * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_DISTRIBUTION: 16371 * Array of u32, 4 elements in total, represents the latency distribution for 16372 * the type (specified by %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_TYPE). 16373 * Each element holds the count of MSDUs/PPDUs (according to the latency type) 16374 * within a range: 16375 * element[0]: latency >= 0 && latency < granularity 16376 * element[1]: latency >= granularity && latency < granularity * 2 16377 * element[2]: latency >= granularity * 2 && latency < granularity * 3 16378 * element[3]: latency >= granularity * 3 16379 */ 16380 enum qca_wlan_vendor_attr_tx_latency_bucket { 16381 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_INVALID = 0, 16382 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_TYPE = 1, 16383 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_GRANULARITY = 2, 16384 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_AVERAGE = 3, 16385 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_DISTRIBUTION = 4, 16386 16387 /* keep last */ 16388 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_AFTER_LAST, 16389 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_MAX = 16390 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_AFTER_LAST - 1, 16391 }; 16392 16393 /** 16394 * enum qca_wlan_vendor_attr_tx_latency_link - Definition of attributes 16395 * used inside nested attribute %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINKS. 16396 * 16397 * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_MAC_REMOTE: 6-byte MAC address. 16398 * Indicates link MAC address of the remote peer. For example, when running 16399 * in station mode, it's the BSSID of the link; while when running in AP 16400 * mode, it's the link MAC address of the remote station. 16401 * 16402 * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_STAT_BUCKETS: 16403 * Array of nested attribute. 16404 * Represents the transmit latency statistics for the link specified by 16405 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_MAC_REMOTE. 16406 * Each entry represents the statistics for one of the types defined in 16407 * enum qca_wlan_vendor_tx_latency_type. 16408 * Each defined type has and must have one entry. 16409 * See enum qca_wlan_vendor_attr_tx_latency_bucket for nested attributes. 16410 */ 16411 enum qca_wlan_vendor_attr_tx_latency_link { 16412 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_INVALID = 0, 16413 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_MAC_REMOTE = 1, 16414 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_STAT_BUCKETS = 2, 16415 16416 /* keep last */ 16417 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_AFTER_LAST, 16418 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_MAX = 16419 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_AFTER_LAST - 1, 16420 }; 16421 16422 /** 16423 * enum qca_wlan_vendor_tx_latency_action - Represents the possible actions 16424 * for %QCA_NL80211_VENDOR_SUBCMD_TX_LATENCY. 16425 * 16426 * @QCA_WLAN_VENDOR_TX_LATENCY_ACTION_DISABLE: 16427 * Disable transmit latency monitoring. 16428 * 16429 * @QCA_WLAN_VENDOR_TX_LATENCY_ACTION_ENABLE: 16430 * Enable transmit latency monitoring. 16431 * 16432 * @QCA_WLAN_VENDOR_TX_LATENCY_ACTION_GET: 16433 * Get transmit latency statistics of the last cycle (period is specified by 16434 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_PERIOD). 16435 */ 16436 enum qca_wlan_vendor_tx_latency_action { 16437 QCA_WLAN_VENDOR_TX_LATENCY_ACTION_DISABLE = 0, 16438 QCA_WLAN_VENDOR_TX_LATENCY_ACTION_ENABLE = 1, 16439 QCA_WLAN_VENDOR_TX_LATENCY_ACTION_GET = 2, 16440 }; 16441 16442 /** 16443 * enum qca_wlan_vendor_attr_tx_latency - Definition of attributes used by 16444 * %QCA_NL80211_VENDOR_SUBCMD_TX_LATENCY to configure, retrieve, and report 16445 * per-link transmit latency statistics. 16446 * 16447 * There are 6 uses of %QCA_NL80211_VENDOR_SUBCMD_TX_LATENCY: 16448 * 1) used as a command to enable the feature 16449 * Precondition(s): 16450 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION is 16451 * %QCA_WLAN_VENDOR_TX_LATENCY_ACTION_ENABLE 16452 * Mandatory attribute(s): 16453 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION, 16454 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_PERIOD, 16455 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKETS with nested attributes 16456 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_TYPE, 16457 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_GRANULARITY. 16458 * Notes: 16459 * The driver will monitor the transmit latency for the active links 16460 * and save the statistics for each cycle (period is set by 16461 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_PERIOD) when the feature is enabled. 16462 * Set flag %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_PERIODIC_REPORT if periodical 16463 * report is required. 16464 * 16465 * 2) used as a command to disable the feature 16466 * Precondition(s): 16467 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION is 16468 * %QCA_WLAN_VENDOR_TX_LATENCY_ACTION_DISABLE 16469 * Mandatory attribute(s): 16470 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION 16471 * 16472 * 3) used as a command to retrieve the statistics for all the active links on 16473 * the requested interface 16474 * Precondition(s): 16475 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION is 16476 * QCA_WLAN_VENDOR_TX_LATENCY_ACTION_GET and 16477 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINKS is NOT present. 16478 * Mandatory attribute(s): 16479 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION 16480 * Notes: 16481 * The driver returns failure directly if the feature is not enabled or 16482 * there is no active link. 16483 * The driver returns the statistics of the last cycle in the case of 16484 * success. 16485 * 16486 * 4) used as a command to retrieve the statistics for the specified links 16487 * Precondition(s): 16488 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION is 16489 * QCA_WLAN_VENDOR_TX_LATENCY_ACTION_GET and 16490 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINKS is present. 16491 * Mandatory attribute(s): 16492 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION, 16493 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINKS, with nested attribute 16494 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_MAC_REMOTE. 16495 * Notes: 16496 * The driver returns failure directly if the feature is not enabled or 16497 * any of the links (specified by %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINKS) 16498 * does not exist or is not in active state. 16499 * 16500 * 5) used as a command response for #3 or #4 16501 * Precondition(s): 16502 * Userspace issues command #3 or #4, and the driver gets corresponding 16503 * statistics successfully. 16504 * Mandatory attribute(s): 16505 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINKS, with nested attributes 16506 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_MAC_REMOTE, 16507 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_STAT_BUCKETS with nested 16508 * attributes %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_TYPE, 16509 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_GRANULARITY, 16510 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_AVERAGE and 16511 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_DISTRIBUTION. 16512 * 16513 * 6) used as an asynchronous event to report the statistics periodically 16514 * Precondition(s): 16515 * Userspace set flag %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_PERIODIC_REPORT in 16516 * #1. 16517 * One or more links are in active state. 16518 * Mandatory attribute(s): 16519 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINKS, with nested attributes 16520 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_MAC_REMOTE, 16521 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_STAT_BUCKETS with nested 16522 * attributes %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_TYPE, 16523 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_GRANULARITY, 16524 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_AVERAGE and 16525 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_DISTRIBUTION. 16526 * 16527 * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_INVALID: Invalid attribute 16528 * 16529 * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION: u32 attribute. 16530 * Action to take in this vendor command. 16531 * See enum qca_wlan_vendor_tx_latency_action for supported actions. 16532 * 16533 * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_PERIODIC_REPORT: Flag attribute. 16534 * Enable (flag attribute present) - The driver needs to report transmit latency 16535 * statistics at the end of each statistical period. 16536 * Disable (flag attribute not present) - The driver doesn't need to report 16537 * transmit latency statistics periodically. 16538 * 16539 * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_PERIOD: u32 attribute. 16540 * Indicates statistical period for transmit latency in terms of milliseconds, 16541 * the minimal allowed value is 100 and the maximum allowed value is 60000. 16542 * 16543 * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKETS: Array of nested attribute. 16544 * Each entry represents the latency buckets configuration for one of the types 16545 * defined in enum qca_wlan_vendor_tx_latency_type. 16546 * Each defined type has and must have one entry. 16547 * See enum qca_wlan_vendor_attr_tx_latency_bucket for the list of 16548 * supported attributes. 16549 * 16550 * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINKS: Array of nested attribute. 16551 * Information of the links, each entry represents for one link. 16552 * See enum qca_wlan_vendor_attr_tx_latency_link for the list of 16553 * supported attributes for each entry. 16554 */ 16555 enum qca_wlan_vendor_attr_tx_latency { 16556 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_INVALID = 0, 16557 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION = 1, 16558 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_PERIODIC_REPORT = 2, 16559 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_PERIOD = 3, 16560 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKETS = 4, 16561 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINKS = 5, 16562 16563 /* keep last */ 16564 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_AFTER_LAST, 16565 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_MAX = 16566 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_AFTER_LAST - 1, 16567 }; 16568 16569 /** 16570 * enum qca_chan_width_update_type - Represents the possible values for 16571 * %QCA_WLAN_VENDOR_ATTR_CONFIG_CHAN_WIDTH_UPDATE_TYPE. 16572 * 16573 * @QCA_CHAN_WIDTH_UPDATE_TYPE_TX_RX: The maximum allowed bandwidth change is 16574 * applicable for both Tx and Rx paths. The driver shall conduct OMI operation 16575 * as defined in 26.9 (Operating mode indication) or OMN operation as defined in 16576 * 11.40 (Notification of operating mode changes) in IEEE P802.11-REVme/D2.0 16577 * with AP to indicate the change in the maximum allowed operating bandwidth. 16578 * 16579 * @QCA_CHAN_WIDTH_UPDATE_TYPE_TX_ONLY: Limit the change in maximum allowed 16580 * bandwidth only to Tx path. In this case the driver doesn't need to conduct 16581 * OMI/OMN operation since %QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_WIDTH is 16582 * expected to be less than the current connection maximum negotiated bandwidth. 16583 * For example: Negotiated maximum bandwidth is 160 MHz and the new maximum 16584 * bandwidth configured is 80 MHz, now the driver limits the maximum bandwidth 16585 * to 80 MHz only in the Tx path. 16586 * 16587 * @QCA_CHAN_WIDTH_UPDATE_TYPE_TX_RX_EXT: This is similar to 16588 * %QCA_CHAN_WIDTH_UPDATE_TYPE_TX_RX but the driver doesn't change current 16589 * phymode bandwidth to avoid interoperability issues with APs which don't 16590 * handle the maximum bandwidth change indication correctly. 16591 * For example: Negotiated maximum bandwidth is 40 MHz and the new maximum 16592 * bandwidth configured is 20 MHz, now the driver indicates the change in 16593 * maximum allowed bandwidth to the AP and limits the bandwidth to 20 MHz in the 16594 * Tx path but keeps the phymode bandwidth as 40 MHz. This will avoid 16595 * interoperability issues with APs which still use 40 MHz for sending the 16596 * frames though it received maximum allowed bandwidth indication as 20 MHz 16597 * from the STA. 16598 */ 16599 enum qca_chan_width_update_type { 16600 QCA_CHAN_WIDTH_UPDATE_TYPE_TX_RX = 0, 16601 QCA_CHAN_WIDTH_UPDATE_TYPE_TX_ONLY = 1, 16602 QCA_CHAN_WIDTH_UPDATE_TYPE_TX_RX_EXT = 2, 16603 }; 16604 16605 #endif /* QCA_VENDOR_H */ 16606