Home | History | Annotate | Line # | Download | only in common
      1 /*
      2  * Qualcomm Atheros OUI and vendor specific assignments
      3  * Copyright (c) 2014-2017, Qualcomm Atheros, Inc.
      4  * Copyright (c) 2018-2020, The Linux Foundation
      5  * Copyright (c) 2021-2023, Qualcomm Innovation Center, Inc.
      6  *
      7  * This software may be distributed under the terms of the BSD license.
      8  * See README for more details.
      9  */
     10 
     11 #ifndef QCA_VENDOR_H
     12 #define QCA_VENDOR_H
     13 
     14 /*
     15  * This file is a registry of identifier assignments from the Qualcomm Atheros
     16  * OUI 00:13:74 for purposes other than MAC address assignment. New identifiers
     17  * can be assigned through normal review process for changes to the upstream
     18  * hostap.git repository.
     19  */
     20 
     21 #define OUI_QCA 0x001374
     22 
     23 #ifndef BIT
     24 #define BIT(x) (1U << (x))
     25 #endif
     26 
     27 /**
     28  * enum qca_radiotap_vendor_ids - QCA radiotap vendor namespace IDs
     29  */
     30 enum qca_radiotap_vendor_ids {
     31 	QCA_RADIOTAP_VID_WLANTEST = 0,
     32 };
     33 
     34 /**
     35  * DOC: TX/RX NSS and chain configurations
     36  * This document describes all of the attributes used in the vendor command
     37  * QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION to configure the number of
     38  * spatial streams (NSS) and the number of chains used for transmitting (TX) and
     39  * receiving (RX) the data.
     40  *
     41  * Global NSS configuration - Applies to all bands (2.4 GHz and 5/6 GHz)
     42  * The following attributes are used to dynamically configure the number of
     43  * spatial streams to be used for transmitting or receiving the data in the
     44  * 2.4 GHz and 5/6 GHz bands. When configured in disconnected state, the
     45  * updated configuration will be considered for the immediately following
     46  * connection attempt. If the NSS is updated during a connection, the updated
     47  * NSS value is notified to the peer using operating mode notification/spatial
     48  * multiplexing power save frame. The updated NSS value after the connection
     49  * shall not be greater than the one negotiated during the connection. The
     50  * driver rejects any such higher value configuration with a failure.
     51  *
     52  * @QCA_WLAN_VENDOR_ATTR_CONFIG_NSS: Only symmetric NSS configuration
     53  * (such as 2X2 or 1X1) can be done using this attribute.
     54  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS: Configure NSS for transmitting the data
     55  * @QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS: Configure NSS for receiving the data
     56  *
     57  * The QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS and QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS
     58  * attributes must be defined together or the driver will reject the command
     59  * with a failure. They can be used to configure either symmetric NSS
     60  * configuration (such as 2X2 or 1X1) or asymmetric configuration (such as 1X2).
     61  *
     62  * Per band NSS configuration - Applies to the 2.4 GHz or 5/6 GHz band
     63  * The following attributes are used to dynamically configure the number of
     64  * spatial streams to be used for transmitting or receiving the data in the
     65  * 2.4 GHz band or 5/6 GHz band. All these attributes must be defined together
     66  * to configure symmetric NSS configuration (such as 1X1 or 2X2) or asymmetric
     67  * NSS configuration (such as 1X2). If any of the attributes is missing, the
     68  * driver will reject the command with a failure. This configuration is allowed
     69  * only when in connected state and will be effective until disconnected. The
     70  * NSS value configured after the connection shall not be greater than the value
     71  * negotiated during the connection. Any such higher value configuration shall
     72  * be treated as invalid configuration by the driver.
     73  *
     74  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS_2GHZ: Configure TX_NSS in 2.4 GHz band
     75  * @QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS_2GHZ: Configure RX_NSS in 2.4 GHz band
     76  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS_5GHZ: Configure TX_NSS in 5 or 6 GHz band
     77  * @QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS_5GHZ: Configure RX_NSS in 5 or 6 GHz band
     78  *
     79  * Global chain configuration - Applies to all bands (2.4 GHz and 5/6 GHz)
     80  * The following attributes are used to dynamically configure the number of
     81  * chains to be used for transmitting or receiving the data in the 2.4 GHz and
     82  * 5/6 GHz bands. This configuration is allowed only when in connected state
     83  * and will be effective until disconnected. The driver rejects this
     84  * configuration if the number of spatial streams being used in the current
     85  * connection cannot be supported by this configuration.
     86  *
     87  * @QCA_WLAN_VENDOR_ATTR_CONFIG_NUM_TX_CHAINS: The number of chains to be used
     88  * for transmitting the data in both the 2.4 GHz and 5/6 GHz bands.
     89  * @QCA_WLAN_VENDOR_ATTR_CONFIG_NUM_RX_CHAINS: The number of chains to be used
     90  * for receiving the data in both the 2.4 GHz and 5/6 GHz bands.
     91  *
     92  * The attributes QCA_WLAN_VENDOR_ATTR_CONFIG_NUM_TX_CHAINS and
     93  * QCA_WLAN_VENDOR_ATTR_CONFIG_NUM_RX_CHAINS must be defined together or the
     94  * driver will reject the command with a failure.
     95  *
     96  * Per band chain configuration - Applies to the 2.4 GHz or 5/6 GHz band
     97  * The following band specific attributes are used to dynamically configure the
     98  * number of chains to be used for tranmissting or receiving the data in the
     99  * 2.4 GHz or 5/6 GHz band. These attributes must be defined together or the
    100  * driver will reject the command. This configuration is allowed only when in
    101  * connected state and will be effective until disconnected. The driver rejects
    102  * this configuration if the number of spatial streams being used in the
    103  * current connection cannot be supported by this configuration.
    104  *
    105  * @QCA_WLAN_VENDOR_ATTR_CONFIG_NUM_TX_CHAINS_2GHZ: The number of chains to be
    106  * used for transmitting the data in the 2.4 GHz band.
    107  * @QCA_WLAN_VENDOR_ATTR_CONFIG_NUM_RX_CHAINS_2GHZ: The number of chains to be
    108  * used for receiving the data in the 2.4 GHz band.
    109  * @QCA_WLAN_VENDOR_ATTR_CONFIG_NUM_TX_CHAINS_5GHZ: The number of chains to be
    110  * used for transmitting the data in the 5/6 GHz band.
    111  * @QCA_WLAN_VENDOR_ATTR_CONFIG_NUM_RX_CHAINS_5GHZ: The number of chains to be
    112  * used for receiving the data in the 5/6 GHz band.
    113  *
    114  * The following scenarios capture how the driver process the configuration when
    115  * different TX/RX NSS and chain config attributes are used in the command.
    116  *
    117  * Case 1: CONFIG_NSS + CONFIG_TX_NSS/RX_NSS - Only CONFIG_NSS is applied
    118  * since only one of the TX_NSS or RX_NSS attribute is present.
    119  *
    120  * Case 2: CONFIG_NSS + CONFIG_TX_NSS + CONFIG_RX_NSS - Same NSS values are
    121  * used to configure TX,RX in both the 2.4 GHz and 5/6 GHz bands.
    122  *
    123  * Case 3: Case 2 + NUM_TX_CHAINS + NUM_RX_CHAINS - The NSS and the number of
    124  * chains values are used to configure TX,RX in both the 2.4 GHz and 5/6 GHz
    125  * bands.
    126  *
    127  * Case 4: TX_NSS_2GHZ/TX_NSS_5GHZ + RX_NSS_2GHZ/RX_NSS_5GHZ - Since per band
    128  * TX/RX NSS attribute is missing, the driver rejects the command.
    129  *
    130  * Case 5: TX_NSS_2GHZ + TX_NSS_5GHZ + RX_NSS_2GHZ + RX_NSS_5GHZ - The 2.4 GHz
    131  * band is configured with the TX_NSS_2GHZ, RX_NSS_2GHZ values. The 5/6 GHz band
    132  * is configured with the TX_NSS_5GHZ, RX_NSS_5GHZ values.
    133  *
    134  * Case 6: TX_CHAINS_2GHZ/TX_CHAINS_5GHZ + RX_CHAINS_5GHZ/RX_CHAINS_5GHZ - Since
    135  * per band TX/RX chains attribute is missing, the driver rejects the command.
    136  *
    137  * Case 7: TX_CHAINS_2GHZ + TX_CHAINS_5GHZ + RX_CHAINS_5GHZ + RX_CHAINS_5GHZ -
    138  * The 2.4 GHz band is configured with the TX_CHAINS_2GHZ, RX_CHAINS_2GHZ
    139  * values. The 5/6 GHz band is configured with the TX_CHAINS_5GHZ,
    140  * RX_CHAINS_5GHZ values.
    141  *
    142  * Case 8: Case 5 + Case 7 - Per band TX,RX NSS and chains are configured.
    143  *
    144  * Case 9: Case 2 + Case 8 - Per band TX,RX NSS and chains are configured.
    145  */
    146 
    147 /**
    148  * enum qca_nl80211_vendor_subcmds - QCA nl80211 vendor command identifiers
    149  *
    150  * @QCA_NL80211_VENDOR_SUBCMD_UNSPEC: Reserved value 0
    151  *
    152  * @QCA_NL80211_VENDOR_SUBCMD_TEST: Test command/event
    153  *
    154  * @QCA_NL80211_VENDOR_SUBCMD_ROAMING: Set roaming policy for drivers that use
    155  *	internal BSS-selection. This command uses
    156  *	@QCA_WLAN_VENDOR_ATTR_ROAMING_POLICY to specify the new roaming policy
    157  *	for the current connection (i.e., changes policy set by the nl80211
    158  *	Connect command). @QCA_WLAN_VENDOR_ATTR_MAC_ADDR may optionally be
    159  *	included to indicate which BSS to use in case roaming is disabled.
    160  *
    161  * @QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY: Recommendation of frequency
    162  *	ranges to avoid to reduce issues due to interference or internal
    163  *	co-existence information in the driver. These frequencies aim to
    164  *	minimize the traffic but not to totally avoid the traffic. That said
    165  *	for a P2P use case, these frequencies are allowed for the P2P
    166  *	discovery/negotiation but avoid the group to get formed on these
    167  *	frequencies. The event data structure is defined in
    168  *	struct qca_avoid_freq_list.
    169  *
    170  * @QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY: Command to check driver support
    171  *	for DFS offloading.
    172  *
    173  * @QCA_NL80211_VENDOR_SUBCMD_NAN: NAN command/event which is used to pass
    174  *	NAN Request/Response and NAN Indication messages. These messages are
    175  *	interpreted between the framework and the firmware component. While
    176  *	sending the command from userspace to the driver, payload is not
    177  *	encapsulated inside any attribute. Attribute QCA_WLAN_VENDOR_ATTR_NAN
    178  *	is used when receiving vendor events in userspace from the driver.
    179  *
    180  * @QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE: This command is used to enable TDLS
    181  *	capability or to form a session with the specified peer.
    182  *	If %NL80211_ATTR_VENDOR_DATA is sent as an empty nested attribute this
    183  *	indicates to enable TDLS capability on the interface.
    184  *	If %QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR is nested in
    185  *	%NL80211_ATTR_VENDOR_DATA this indicates the userspace requests to
    186  *	form a TDLS session with the specified peer MAC address.
    187  *	The attributes used with this command are defined in
    188  *	enum qca_wlan_vendor_attr_tdls_enable.
    189  *
    190  * @QCA_NL80211_VENDOR_SUBCMD_TDLS_DISABLE: This command is used to disable TDLS
    191  *	capability or to terminate the session with the specified peer.
    192  *	If %NL80211_ATTR_VENDOR_DATA is sent as an empty nested attribute this
    193  *	indicates to disable TDLS capability on the interface.
    194  *	If %QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAC_ADDR is nested in
    195  *	%NL80211_ATTR_VENDOR_DATA this indicates the userspace requests to
    196  *	terminate TDLS session with the specified peer MAC address.
    197  *	The attributes used with this command are defined in
    198  *	enum qca_wlan_vendor_attr_tdls_disable.
    199  *
    200  * @QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS: This command is to get the TDLS
    201  *	status at the interface level or with the specific peer.
    202  *	If %NL80211_ATTR_VENDOR_DATA is sent as an empty nested attribute this
    203  *	indicates the TDLS status query is at interface level.
    204  *	If %QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR is nested in
    205  *	%NL80211_ATTR_VENDOR_DATA this indicates the userspace requests to
    206  *	get TDLS session status with the specified peer MAC address.
    207  *	The attributes used with this command are defined in
    208  *	enum qca_wlan_vendor_attr_tdls_get_status.
    209  *
    210  * @QCA_NL80211_VENDOR_SUBCMD_TDLS_STATE: This event is to indicate the result
    211  *	of the TDLS session request with the peer sent by userspace in
    212  *	%QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE.
    213  *	The attributes used with this command are defined in
    214  *	enum qca_wlan_vendor_attr_tdls_state.
    215  *
    216  * @QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_SET_KEY: Set key operation that can be
    217  *	used to configure PMK to the driver even when not connected. This can
    218  *	be used to request offloading of key management operations. Only used
    219  *	if device supports QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD.
    220  *
    221  * @QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_ROAM_AUTH: An extended version of
    222  *	NL80211_CMD_ROAM event with optional attributes including information
    223  *	from offloaded key management operation. Uses
    224  *	enum qca_wlan_vendor_attr_roam_auth attributes. Only used
    225  *	if device supports QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD.
    226  *
    227  * @QCA_NL80211_VENDOR_SUBCMD_DO_ACS: ACS command/event which is used to
    228  *	invoke the ACS function in device and pass selected channels to
    229  *	hostapd. Uses enum qca_wlan_vendor_attr_acs_offload attributes.
    230  *
    231  * @QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES: Command to get the features
    232  *	supported by the driver. enum qca_wlan_vendor_features defines
    233  *	the possible features.
    234  *
    235  * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_STARTED: Event used by driver,
    236  *	which supports DFS offloading, to indicate a channel availability check
    237  *	start.
    238  *
    239  * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_FINISHED: Event used by driver,
    240  *	which supports DFS offloading, to indicate a channel availability check
    241  *	completion.
    242  *
    243  * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_ABORTED: Event used by driver,
    244  *	which supports DFS offloading, to indicate that the channel availability
    245  *	check aborted, no change to the channel status.
    246  *
    247  * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_NOP_FINISHED: Event used by
    248  *	driver, which supports DFS offloading, to indicate that the
    249  *	Non-Occupancy Period for this channel is over, channel becomes usable.
    250  *
    251  * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_RADAR_DETECTED: Event used by driver,
    252  *	which supports DFS offloading, to indicate a radar pattern has been
    253  *	detected. The channel is now unusable.
    254  *
    255  * @QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_INFO: Get information from the driver.
    256  *	Attributes defined in enum qca_wlan_vendor_attr_get_wifi_info.
    257  *
    258  * @QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION: This command is used to
    259  *	configure various wiphy or interface level configurations. Attributes
    260  *	are defined in enum qca_wlan_vendor_attr_config. Userspace can send one
    261  *	or more configuration attributes with a single command. The driver
    262  *	accepts the command only if all the configurations are known, otherwise
    263  *	it rejects the command. The driver returns success only if processing of
    264  *	all the configurations succeeds. The driver continues to process all the
    265  *	configurations even if processing of some configurations failed and
    266  *	returns the last error occurred while processing the failed
    267  *	configurations.
    268  *
    269  * @QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION: This command is used to
    270  *	get the current values of the various wiphy or interface level
    271  *	configurations. Attributes are defined in enum
    272  *	qca_wlan_vendor_attr_config. Userspace needs to specify the
    273  *	configuration attributes for which it wants to get the values in the
    274  *	command, there is no significance for the value sent in the attribute
    275  *	unless explicitly specified in the corresponding configuration
    276  *	attribute documentation. The driver accepts the command only if all the
    277  *	configurations are known, otherwise it rejects the command. The driver
    278  *	returns success only if fetching of all configuration values succeeds
    279  *	and indicates the configuration values in corresponding attributes in
    280  *	the response. The driver continues to process all the configurations
    281  *	even if processing of some configurations failed and returns the last
    282  *	error occurred while processing the failed configurations.
    283  *
    284  * @QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET: Get the feature bitmap
    285  *	based on enum wifi_logger_supported_features. Attributes defined in
    286  *	enum qca_wlan_vendor_attr_get_logger_features.
    287  *
    288  * @QCA_NL80211_VENDOR_SUBCMD_GET_RING_DATA: Get the ring data from a particular
    289  *	logger ring, QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_RING_ID is passed as the
    290  *	attribute for this command. Attributes defined in
    291  *	enum qca_wlan_vendor_attr_wifi_logger_start.
    292  *
    293  * @QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_CAPABILITIES: Get the supported TDLS
    294  *	capabilities of the driver, parameters includes the attributes defined
    295  *	in enum qca_wlan_vendor_attr_tdls_get_capabilities.
    296  *
    297  * @QCA_NL80211_VENDOR_SUBCMD_OFFLOADED_PACKETS: Vendor command used to offload
    298  *	sending of certain periodic IP packet to firmware, attributes defined in
    299  *	enum qca_wlan_vendor_attr_offloaded_packets.
    300  *
    301  * @QCA_NL80211_VENDOR_SUBCMD_MONITOR_RSSI: Command used to configure RSSI
    302  *	monitoring, defines min and max RSSI which are configured for RSSI
    303  *	monitoring. Also used to notify the RSSI breach and provides the BSSID
    304  *	and RSSI value that was breached. Attributes defined in
    305  *	enum qca_wlan_vendor_attr_rssi_monitoring.
    306  *
    307  * @QCA_NL80211_VENDOR_SUBCMD_NDP: Command used for performing various NAN
    308  *	Data Path (NDP) related operations, attributes defined in
    309  *	enum qca_wlan_vendor_attr_ndp_params.
    310  *
    311  * @QCA_NL80211_VENDOR_SUBCMD_ND_OFFLOAD: Command used to enable/disable
    312  *	Neighbour Discovery offload, attributes defined in
    313  *	enum qca_wlan_vendor_attr_nd_offload.
    314  *
    315  * @QCA_NL80211_VENDOR_SUBCMD_PACKET_FILTER: Used to set/get the various
    316  *	configuration parameter for BPF packet filter, attributes defined in
    317  *	enum qca_wlan_vendor_attr_packet_filter.
    318  *
    319  * @QCA_NL80211_VENDOR_SUBCMD_GET_BUS_SIZE: Gets the driver-firmware
    320  *	maximum supported size, attributes defined in
    321  *	enum qca_wlan_vendor_drv_info.
    322  *
    323  * @QCA_NL80211_VENDOR_SUBCMD_GET_WAKE_REASON_STATS: Command to get various
    324  *	data about wake reasons and datapath IP statistics, attributes defined
    325  *	in enum qca_wlan_vendor_attr_wake_stats.
    326  *
    327  * @QCA_NL80211_VENDOR_SUBCMD_OCB_SET_CONFIG: Command used to set configuration
    328  *	for IEEE 802.11 communicating outside the context of a basic service
    329  *	set, called OCB command. Uses the attributes defines in
    330  *	enum qca_wlan_vendor_attr_ocb_set_config.
    331  *
    332  * @QCA_NL80211_VENDOR_SUBCMD_OCB_SET_UTC_TIME: Command used to set OCB
    333  *	UTC time. Use the attributes defines in
    334  *	enum qca_wlan_vendor_attr_ocb_set_utc_time.
    335  *
    336  * @QCA_NL80211_VENDOR_SUBCMD_OCB_START_TIMING_ADVERT: Command used to start
    337  *	sending OCB timing advert frames. Uses the attributes defines in
    338  *	enum qca_wlan_vendor_attr_ocb_start_timing_advert.
    339  *
    340  * @QCA_NL80211_VENDOR_SUBCMD_OCB_STOP_TIMING_ADVERT: Command used to stop
    341  *	OCB timing advert. Uses the attributes defines in
    342  *	enum qca_wlan_vendor_attr_ocb_stop_timing_advert.
    343  *
    344  * @QCA_NL80211_VENDOR_SUBCMD_OCB_GET_TSF_TIMER: Command used to get TSF
    345  *	timer value. Uses the attributes defines in
    346  *	enum qca_wlan_vendor_attr_ocb_get_tsf_resp.
    347  *
    348  * @QCA_NL80211_VENDOR_SUBCMD_LINK_PROPERTIES: Command/event to update the
    349  *	link properties of the respective interface. As an event, is used
    350  *	to notify the connected station's status. The attributes for this
    351  *	command are defined in enum qca_wlan_vendor_attr_link_properties.
    352  *
    353  * @QCA_NL80211_VENDOR_SUBCMD_SETBAND: Command to configure the enabled band(s)
    354  *	to the driver. This command sets the band(s) through either the
    355  *	attribute QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE or
    356  *	QCA_WLAN_VENDOR_ATTR_SETBAND_MASK (or both).
    357  *	QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE refers enum qca_set_band as unsigned
    358  *	integer values and QCA_WLAN_VENDOR_ATTR_SETBAND_MASK refers it as 32
    359  *	bit unsigned bitmask values. The allowed values for
    360  *	QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE are limited to QCA_SETBAND_AUTO,
    361  *	QCA_SETBAND_5G, and QCA_SETBAND_2G. Other values/bitmasks are valid for
    362  *	QCA_WLAN_VENDOR_ATTR_SETBAND_MASK. The attribute
    363  *	QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE is deprecated and the recommendation
    364  *	is to use the QCA_WLAN_VENDOR_ATTR_SETBAND_MASK. If the	both attributes
    365  *	are included for backwards compatibility, the configurations through
    366  *	QCA_WLAN_VENDOR_ATTR_SETBAND_MASK will take the precedence with drivers
    367  *	that support both attributes.
    368  *
    369  * @QCA_NL80211_VENDOR_SUBCMD_ACS_POLICY: This command is used to configure
    370  *	DFS policy and channel hint for ACS operation. This command uses the
    371  *	attributes defined in enum qca_wlan_vendor_attr_acs_config and
    372  *	enum qca_acs_dfs_mode.
    373  *
    374  * @QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_START: Command used to
    375  *	start the P2P Listen offload function in device and pass the listen
    376  *	channel, period, interval, count, device types, and vendor specific
    377  *	information elements to the device driver and firmware.
    378  *	Uses the attributes defines in
    379  *	enum qca_wlan_vendor_attr_p2p_listen_offload.
    380  *
    381  * @QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_STOP: Command/event used to
    382  *	indicate stop request/response of the P2P Listen offload function in
    383  *	device. As an event, it indicates either the feature stopped after it
    384  *	was already running or feature has actually failed to start. Uses the
    385  *	attributes defines in enum qca_wlan_vendor_attr_p2p_listen_offload.
    386  *
    387  * @QCA_NL80211_VENDOR_SUBCMD_SAP_CONDITIONAL_CHAN_SWITCH: After AP starts
    388  *	beaconing, this sub command provides the driver, the frequencies on the
    389  *	5 GHz band to check for any radar activity. Driver selects one channel
    390  *	from this priority list provided through
    391  *	@QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST and starts
    392  *	to check for radar activity on it. If no radar activity is detected
    393  *	during the channel availability check period, driver internally switches
    394  *	to the selected frequency of operation. If the frequency is zero, driver
    395  *	internally selects a channel. The status of this conditional switch is
    396  *	indicated through an event using the same sub command through
    397  *	@QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS. Attributes are
    398  *	listed in qca_wlan_vendor_attr_sap_conditional_chan_switch.
    399  *
    400  * @QCA_NL80211_VENDOR_SUBCMD_GPIO_CONFIG_COMMAND: Set GPIO pins. This uses the
    401  *	attributes defined in enum qca_wlan_gpio_attr.
    402  *
    403  * @QCA_NL80211_VENDOR_SUBCMD_GET_HW_CAPABILITY: Fetch hardware capabilities.
    404  *	This uses @QCA_WLAN_VENDOR_ATTR_GET_HW_CAPABILITY to indicate which
    405  *	capabilities are to be fetched and other
    406  *	enum qca_wlan_vendor_attr_get_hw_capability attributes to return the
    407  *	requested capabilities.
    408  *
    409  * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_EXT: Link layer statistics extension.
    410  *	enum qca_wlan_vendor_attr_ll_stats_ext attributes are used with this
    411  *	command and event.
    412  *
    413  * @QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA: Get capabilities for
    414  *	indoor location features. Capabilities are reported in
    415  *	QCA_WLAN_VENDOR_ATTR_LOC_CAPA.
    416  *
    417  * @QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION: Start an FTM
    418  *	(fine timing measurement) session with one or more peers.
    419  *	Specify Session cookie in QCA_WLAN_VENDOR_ATTR_FTM_SESSION_COOKIE and
    420  *	peer information in QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEERS.
    421  *	On success, 0 or more QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT
    422  *	events will be reported, followed by
    423  *	QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE event to indicate
    424  *	end of session.
    425  *	Refer to IEEE P802.11-REVmc/D7.0, 11.24.6
    426  *
    427  * @QCA_NL80211_VENDOR_SUBCMD_FTM_ABORT_SESSION: Abort a running session.
    428  *	A QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE will be reported with
    429  *	status code indicating session was aborted.
    430  *
    431  * @QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT: Event with measurement
    432  *	results for one peer. Results are reported in
    433  *	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEER_RESULTS.
    434  *
    435  * @QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE: Event triggered when
    436  *	FTM session is finished, either successfully or aborted by
    437  *	request.
    438  *
    439  * @QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER: Configure FTM responder
    440  *	mode. QCA_WLAN_VENDOR_ATTR_FTM_RESPONDER_ENABLE specifies whether
    441  *	to enable or disable the responder. LCI/LCR reports can be
    442  *	configured with QCA_WLAN_VENDOR_ATTR_FTM_LCI and
    443  *	QCA_WLAN_VENDOR_ATTR_FTM_LCR. Can be called multiple
    444  *	times to update the LCI/LCR reports.
    445  *
    446  * @QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS: Perform a standalone AOA (angle of
    447  *	arrival) measurement with a single peer. Specify peer MAC address in
    448  *	QCA_WLAN_VENDOR_ATTR_MAC_ADDR and optionally frequency (MHz) in
    449  *	QCA_WLAN_VENDOR_ATTR_FREQ (if not specified, locate peer in kernel
    450  *	scan results cache and use the frequency from there).
    451  *	Also specify measurement type in QCA_WLAN_VENDOR_ATTR_AOA_TYPE.
    452  *	Measurement result is reported in
    453  *	QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT event.
    454  *
    455  * @QCA_NL80211_VENDOR_SUBCMD_AOA_ABORT_MEAS: Abort an AOA measurement. Specify
    456  *	peer MAC address in QCA_WLAN_VENDOR_ATTR_MAC_ADDR.
    457  *
    458  * @QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT: Event that reports
    459  *	the AOA measurement result.
    460  *	Peer MAC address reported in QCA_WLAN_VENDOR_ATTR_MAC_ADDR.
    461  *	success/failure status is reported in
    462  *	QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS.
    463  *	Measurement data is reported in QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT.
    464  *	The antenna array(s) used in the measurement are reported in
    465  *	QCA_WLAN_VENDOR_ATTR_LOC_ANTENNA_ARRAY_MASK.
    466  *
    467  * @QCA_NL80211_VENDOR_SUBCMD_ENCRYPTION_TEST: Encrypt/decrypt the given
    468  *	data as per the given parameters.
    469  *
    470  * @QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI: Get antenna RSSI value for a
    471  *	specific chain.
    472  *
    473  * @QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SECTOR_CFG: Get low level
    474  *	configuration for a DMG RF sector. Specify sector index in
    475  *	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX, sector type in
    476  *	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE and RF modules
    477  *	to return sector information for in
    478  *	QCA_WLAN_VENDOR_ATTR_DMG_RF_MODULE_MASK. Returns sector configuration
    479  *	in QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG. Also return the
    480  *	exact time where information was captured in
    481  *	QCA_WLAN_VENDOR_ATTR_TSF.
    482  *
    483  * @QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SECTOR_CFG: Set low level
    484  *	configuration for a DMG RF sector. Specify sector index in
    485  *	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX, sector type in
    486  *	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE and sector configuration
    487  *	for one or more DMG RF modules in
    488  *	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG.
    489  *
    490  * @QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SELECTED_SECTOR: Get selected
    491  *	DMG RF sector for a station. This is the sector that the HW
    492  *	will use to communicate with the station. Specify the MAC address
    493  *	of associated station/AP/PCP in QCA_WLAN_VENDOR_ATTR_MAC_ADDR (not
    494  *	needed for unassociated	station). Specify sector type to return in
    495  *	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE. Returns the selected
    496  *	sector index in QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX.
    497  *	Also return the exact time where the information was captured
    498  *	in QCA_WLAN_VENDOR_ATTR_TSF.
    499  *
    500  * @QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SELECTED_SECTOR: Set the
    501  *	selected DMG RF sector for a station. This is the sector that
    502  *	the HW will use to communicate with the station.
    503  *	Specify the MAC address of associated station/AP/PCP in
    504  *	QCA_WLAN_VENDOR_ATTR_MAC_ADDR, the sector type to select in
    505  *	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE and the sector index
    506  *	in QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX.
    507  *	The selected sector will be locked such that it will not be
    508  *	modified like it normally does (for example when station
    509  *	moves around). To unlock the selected sector for a station
    510  *	pass the special value 0xFFFF in the sector index. To unlock
    511  *	all connected stations also pass a broadcast MAC address.
    512  *
    513  * @QCA_NL80211_VENDOR_SUBCMD_CONFIGURE_TDLS: Configure the TDLS behavior
    514  *	in the host driver. The different TDLS configurations are defined
    515  *	by the attributes in enum qca_wlan_vendor_attr_tdls_configuration.
    516  *
    517  * @QCA_NL80211_VENDOR_SUBCMD_GET_HE_CAPABILITIES: Query device IEEE 802.11ax HE
    518  *	capabilities. The response uses the attributes defined in
    519  *	enum qca_wlan_vendor_attr_get_he_capabilities.
    520  *
    521  * @QCA_NL80211_VENDOR_SUBCMD_ABORT_SCAN: Abort an ongoing vendor scan that was
    522  *	started with QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN. This command
    523  *	carries the scan cookie of the corresponding scan request. The scan
    524  *	cookie is represented by QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE.
    525  *
    526  * @QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS: Set the Specific
    527  *	Absorption Rate (SAR) power limits. A critical regulation for
    528  *	FCC compliance, OEMs require methods to set SAR limits on TX
    529  *	power of WLAN/WWAN. enum qca_vendor_attr_sar_limits
    530  *	attributes are used with this command.
    531  *
    532  * @QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS: This command/event is used by the
    533  *	host driver for offloading the implementation of Auto Channel Selection
    534  *	(ACS) to an external user space entity. This interface is used as the
    535  *	event from the host driver to the user space entity and also as the
    536  *	request from the user space entity to the host driver. The event from
    537  *	the host driver is used by the user space entity as an indication to
    538  *	start the ACS functionality. The attributes used by this event are
    539  *	represented by the enum qca_wlan_vendor_attr_external_acs_event.
    540  *	User space entity uses the same interface to inform the host driver with
    541  *	selected channels after the ACS operation using the attributes defined
    542  *	by enum qca_wlan_vendor_attr_external_acs_channels.
    543  *
    544  * @QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE: Vendor event carrying the
    545  *	requisite information leading to a power save failure. The information
    546  *	carried as part of this event is represented by the
    547  *	enum qca_attr_chip_power_save_failure attributes.
    548  *
    549  * @QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET: Start/Stop the NUD statistics
    550  *	collection. Uses attributes defined in enum qca_attr_nud_stats_set.
    551  *
    552  * @QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET: Get the NUD statistics. These
    553  *	statistics are represented by the enum qca_attr_nud_stats_get
    554  *	attributes.
    555  *
    556  * @QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS: Sub-command to fetch
    557  *	the BSS transition status, whether accept or reject, for a list of
    558  *	candidate BSSIDs provided by the userspace. This uses the vendor
    559  *	attributes QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON and
    560  *	QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO. The userspace shall specify
    561  *	the attributes QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON and an
    562  *	array of QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID nested in
    563  *	QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO in the request. In the response
    564  *	the driver shall specify array of
    565  *	QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID and
    566  *	QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_STATUS pairs nested in
    567  *	QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO.
    568  *
    569  * @QCA_NL80211_VENDOR_SUBCMD_SET_TRACE_LEVEL: Set the trace level for a
    570  *	specific QCA module. The trace levels are represented by
    571  *	enum qca_attr_trace_level attributes.
    572  *
    573  * @QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT: Set the Beam Refinement
    574  *	Protocol antenna limit in different modes. See enum
    575  *	qca_wlan_vendor_attr_brp_ant_limit_mode.
    576  *
    577  * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START: Start spectral scan. The scan
    578  *	parameters are specified by enum qca_wlan_vendor_attr_spectral_scan.
    579  *	This returns a cookie (%QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE)
    580  *	identifying the operation in success case. In failure cases an
    581  *	error code (%QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_ERROR_CODE)
    582  *	describing the reason for the failure is returned.
    583  *
    584  * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP: Stop spectral scan. This uses
    585  *	a cookie (%QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE) from
    586  *	@QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START to identify the scan to
    587  *	be stopped.
    588  *
    589  * @QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS: Set the active Type Of Service on the
    590  *	specific interface. This can be used to modify some of the low level
    591  *	scan parameters (off channel dwell time, home channel time) in the
    592  *	driver/firmware. These parameters are maintained within the host driver.
    593  *	This command is valid only when the interface is in the connected state.
    594  *	These scan parameters shall be reset by the driver/firmware once
    595  *	disconnected. The attributes used with this command are defined in
    596  *	enum qca_wlan_vendor_attr_active_tos.
    597  *
    598  * @QCA_NL80211_VENDOR_SUBCMD_HANG: Event indicating to the user space that the
    599  *	driver has detected an internal failure. This event carries the
    600  *	information indicating the reason that triggered this detection. The
    601  *	attributes for this command are defined in
    602  *	enum qca_wlan_vendor_attr_hang.
    603  *
    604  * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CONFIG: Get the current values
    605  *	of spectral parameters used. The spectral scan parameters are specified
    606  *	by enum qca_wlan_vendor_attr_spectral_scan.
    607  *
    608  * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS: Get the debug stats
    609  *	for spectral scan functionality. The debug stats are specified by
    610  *	enum qca_wlan_vendor_attr_spectral_diag_stats.
    611  *
    612  * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO: Get spectral
    613  *	scan system capabilities. The capabilities are specified
    614  *	by enum qca_wlan_vendor_attr_spectral_cap.
    615  *
    616  * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS: Get the current
    617  *	status of spectral scan. The status values are specified
    618  *	by enum qca_wlan_vendor_attr_spectral_scan_status.
    619  *
    620  * @QCA_NL80211_VENDOR_SUBCMD_PEER_FLUSH_PENDING: Sub-command to flush
    621  *	peer pending packets. Specify the peer MAC address in
    622  *	QCA_WLAN_VENDOR_ATTR_PEER_ADDR and the access category of the packets
    623  *	in QCA_WLAN_VENDOR_ATTR_AC. The attributes are listed
    624  *	in enum qca_wlan_vendor_attr_flush_pending.
    625  *
    626  * @QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO: Get vendor specific Representative
    627  *	RF Operating Parameter (RROP) information. The attributes for this
    628  *	information are defined in enum qca_wlan_vendor_attr_rrop_info. This is
    629  *	intended for use by external Auto Channel Selection applications.
    630  *
    631  * @QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS: Get the Specific Absorption Rate
    632  *	(SAR) power limits. This is a companion to the command
    633  *	@QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS and is used to retrieve the
    634  *	settings currently in use. The attributes returned by this command are
    635  *	defined by enum qca_vendor_attr_sar_limits.
    636  *
    637  * @QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO: Provides the current behavior of
    638  *	the WLAN hardware MAC. Also, provides the WLAN netdev interface
    639  *	information attached to the respective MAC.
    640  *	This works both as a query (user space asks the current mode) or event
    641  *	interface (driver advertising the current mode to the user space).
    642  *	Driver does not trigger this event for temporary hardware mode changes.
    643  *	Mode changes w.r.t Wi-Fi connection update (VIZ creation / deletion,
    644  *	channel change, etc.) are updated with this event. Attributes for this
    645  *	interface are defined in enum qca_wlan_vendor_attr_mac.
    646  *
    647  * @QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH: Set MSDU queue depth threshold
    648  *	per peer per TID. Attributes for this command are define in
    649  *	enum qca_wlan_set_qdepth_thresh_attr.
    650  * @QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD: Provides the thermal shutdown action
    651  *	guide for WLAN driver. Request to suspend of driver and FW if the
    652  *	temperature is higher than the suspend threshold; resume action is
    653  *	requested to driver if the temperature is lower than the resume
    654  *	threshold. In user poll mode, request temperature data by user. For test
    655  *	purpose, getting thermal shutdown configuration parameters is needed.
    656  *	Attributes for this interface are defined in
    657  *	enum qca_wlan_vendor_attr_thermal_cmd.
    658  * @QCA_NL80211_VENDOR_SUBCMD_THERMAL_EVENT: Thermal events reported from
    659  *	driver. Thermal temperature and indication of resume completion are
    660  *	reported as thermal events. The attributes for this command are defined
    661  *	in enum qca_wlan_vendor_attr_thermal_event.
    662  *
    663  * @QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION: Sub command to set WiFi
    664  *	test configuration. Attributes for this command are defined in
    665  *	enum qca_wlan_vendor_attr_wifi_test_config.
    666  *
    667  * @QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER: This command is used to configure an
    668  *	RX filter to receive frames from stations that are active on the
    669  *	operating channel, but not associated with the local device (e.g., STAs
    670  *	associated with other APs). Filtering is done based on a list of BSSIDs
    671  *	and STA MAC addresses added by the user. This command is also used to
    672  *	fetch the statistics of unassociated stations. The attributes used with
    673  *	this command are defined in enum qca_wlan_vendor_attr_bss_filter.
    674  *
    675  * @QCA_NL80211_VENDOR_SUBCMD_NAN_EXT: An extendable version of NAN vendor
    676  *	command. The earlier command for NAN, QCA_NL80211_VENDOR_SUBCMD_NAN,
    677  *	carried a payload which was a binary blob of data. The command was not
    678  *	extendable to send more information. The newer version carries the
    679  *	legacy blob encapsulated within an attribute and can be extended with
    680  *	additional vendor attributes that can enhance the NAN command interface.
    681  * @QCA_NL80211_VENDOR_SUBCMD_ROAM_SCAN_EVENT: Event to indicate scan triggered
    682  *	or stopped within driver/firmware in order to initiate roaming. The
    683  *	attributes used with this event are defined in enum
    684  *	qca_wlan_vendor_attr_roam_scan. Some drivers may not send these events
    685  *	in few cases, e.g., if the host processor is sleeping when this event
    686  *	is generated in firmware.
    687  *
    688  * @QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG: This command is used to
    689  *	configure parameters per peer to capture Channel Frequency Response
    690  *	(CFR) and enable Periodic CFR capture. The attributes for this command
    691  *	are defined in enum qca_wlan_vendor_peer_cfr_capture_attr. This command
    692  *	can also be used to send CFR data from the driver to userspace when
    693  *	netlink events are used to send CFR data.
    694  *
    695  * @QCA_NL80211_VENDOR_SUBCMD_THROUGHPUT_CHANGE_EVENT: Event to indicate changes
    696  *	in throughput dynamically. The driver estimates the throughput based on
    697  *	number of packets being transmitted/received per second and indicates
    698  *	the changes in throughput to user space. Userspace tools can use this
    699  *	information to configure kernel's TCP parameters in order to achieve
    700  *	peak throughput. Optionally, the driver will also send guidance on
    701  *	modifications to kernel's TCP parameters which can be referred by
    702  *	userspace tools. The attributes used with this event are defined in enum
    703  *	qca_wlan_vendor_attr_throughput_change.
    704  *
    705  * @QCA_NL80211_VENDOR_SUBCMD_COEX_CONFIG: This command is used to set
    706  *	priorities among different types of traffic during coex scenarios.
    707  *	Current supported prioritization is among WLAN/BT/ZIGBEE with different
    708  *	profiles mentioned in enum qca_coex_config_profiles. The associated
    709  *	attributes used with this command are defined in enum
    710  *	qca_vendor_attr_coex_config.
    711  *
    712  *	Based on the config provided, FW will boost the weight and prioritize
    713  *	the traffic for that subsystem (WLAN/BT/Zigbee).
    714  *
    715  * @QCA_NL80211_VENDOR_SUBCMD_GET_SUPPORTED_AKMS: This command is used to query
    716  *	the supported AKM suite selectorss from the driver. It returns the list
    717  *	of supported AKMs in the attribute NL80211_ATTR_AKM_SUITES.
    718  * @QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE: This command is used to get firmware
    719  *	state from the driver. It returns the firmware state in the attribute
    720  *	QCA_WLAN_VENDOR_ATTR_FW_STATE.
    721  * @QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH: This vendor subcommand
    722  *	is used by the driver to flush per-peer cached statistics to user space
    723  *	application. This interface is used as an event from the driver to
    724  *	user space application. Attributes for this event are specified in
    725  *	enum qca_wlan_vendor_attr_peer_stats_cache_params.
    726  *	QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_DATA attribute is expected to be
    727  *	sent in the event.
    728  * @QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG: This sub command is used to
    729  *	improve the success rate of Zigbee joining network.
    730  *	Due to PTA master limitation, Zigbee joining network success rate is
    731  *	low while WLAN is working. The WLAN driver needs to configure some
    732  *	parameters including Zigbee state and specific WLAN periods to enhance
    733  *	PTA master. All these parameters are delivered by the attributes
    734  *	defined in enum qca_mpta_helper_vendor_attr.
    735  * @QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING: This sub command is used to
    736  *	implement Beacon frame reporting feature.
    737  *
    738  *	Userspace can request the driver/firmware to periodically report
    739  *	received Beacon frames whose BSSID is same as the current connected
    740  *	BSS's MAC address.
    741  *
    742  *	In case the STA seamlessly (without sending disconnect indication to
    743  *	userspace) roams to a different BSS, Beacon frame reporting will be
    744  *	automatically enabled for the Beacon frames whose BSSID is same as the
    745  *	MAC address of the new BSS. Beacon reporting will be stopped when the
    746  *	STA is disconnected (when the disconnect indication is sent to
    747  *	userspace) and need to be explicitly enabled by userspace for next
    748  *	connection.
    749  *
    750  *	When a Beacon frame matching configured conditions is received, and if
    751  *	userspace has requested to send asynchronous beacon reports, the
    752  *	driver/firmware will encapsulate the details of the Beacon frame in an
    753  *	event and send it to userspace along with updating the BSS information
    754  *	in cfg80211 scan cache, otherwise driver will only update the cfg80211
    755  *	scan cache with the information from the received Beacon frame but will
    756  *	not send any active report to userspace.
    757  *
    758  *	The userspace can request the driver/firmware to stop reporting Beacon
    759  *	frames. If the driver/firmware is not able to receive Beacon frames due
    760  *	to other Wi-Fi operations such as off-channel activities, etc., the
    761  *	driver/firmware will send a pause event to userspace and stop reporting
    762  *	Beacon frames. Whether the beacon reporting will be automatically
    763  *	resumed or not by the driver/firmware later will be reported to
    764  *	userspace using the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES
    765  *	flag. The beacon reporting shall be resumed for all the cases except
    766  *	either when userspace sets
    767  *	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_DO_NOT_RESUME flag in the command
    768  *	which triggered the current beacon reporting or during any disconnection
    769  *	case as indicated by setting
    770  *	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAUSE_REASON to
    771  *	QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_DISCONNECTED by the
    772  *	driver.
    773  *
    774  *	After QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_PAUSE event is received
    775  *	by userspace with QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES
    776  *	flag not set, the next first
    777  *	QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO event from the driver
    778  *	shall be considered as un-pause event.
    779  *
    780  *	All the attributes used with this command are defined in
    781  *	enum qca_wlan_vendor_attr_beacon_reporting_params.
    782  * @QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP: In practice, some APs have
    783  *	interop issues with the DUT. This sub command is used to transfer the
    784  *	AP info between the driver and user space. This works both as a command
    785  *	and an event. As a command, it configures the stored list of APs from
    786  *	user space to firmware; as an event, it indicates the AP info detected
    787  *	by the firmware to user space for persistent storage. The attributes
    788  *	defined in enum qca_vendor_attr_interop_issues_ap are used to deliver
    789  *	the parameters.
    790  * @QCA_NL80211_VENDOR_SUBCMD_OEM_DATA: This command/event is used to
    791  *	send/receive OEM data binary blobs to/from application/service to/from
    792  *	firmware. The attributes defined in enum
    793  *	qca_wlan_vendor_attr_oem_data_params are used to deliver the
    794  *	parameters.
    795  * @QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_EXT: This command/event is used
    796  *	to send/receive avoid frequency data using
    797  *	enum qca_wlan_vendor_attr_avoid_frequency_ext.
    798  *	This new command is alternative to existing command
    799  *	QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY since existing command/event
    800  *	is using stream of bytes instead of structured data using vendor
    801  *	attributes. User space sends unsafe frequency ranges to the driver using
    802  *	a nested attribute %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_RANGE. On
    803  *	reception of this command, the driver shall check if an interface is
    804  *	operating on an unsafe frequency and the driver shall try to move to a
    805  *	safe channel when needed. If the driver is not able to find a safe
    806  *	channel the interface can keep operating on an unsafe channel with the
    807  *	TX power limit derived based on internal configurations	like
    808  *	regulatory/SAR rules.
    809  *
    810  * @QCA_NL80211_VENDOR_SUBCMD_ADD_STA_NODE: This vendor subcommand is used to
    811  *	add the STA node details in driver/firmware. Attributes for this event
    812  *	are specified in enum qca_wlan_vendor_attr_add_sta_node_params.
    813  * @QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE: This command is used to set BT
    814  *	coex chain mode from application/service.
    815  *	The attributes defined in enum qca_vendor_attr_btc_chain_mode are used
    816  *	to deliver the parameters.
    817  *
    818  * @QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO: This vendor subcommand is used to
    819  *	get information of a station from driver to userspace. This command can
    820  *	be used in both STA and AP modes. For STA mode, it provides information
    821  *	of the current association when in connected state or the last
    822  *	association when in disconnected state. For AP mode, only information
    823  *	of the currently connected stations is available. This command uses
    824  *	attributes defined in enum qca_wlan_vendor_attr_get_sta_info.
    825  *
    826  * @QCA_NL80211_VENDOR_SUBCMD_REQUEST_SAR_LIMITS_EVENT: This acts as an event.
    827  *	Host drivers can request the user space entity to set the SAR power
    828  *	limits with this event. Accordingly, the user space entity is expected
    829  *	to set the SAR power limits. Host drivers can retry this event to the
    830  *	user space for the SAR power limits configuration from user space. If
    831  *	the driver does not get the SAR power limits from user space for all
    832  *	the retried attempts, it can configure a default SAR power limit.
    833  *
    834  * @QCA_NL80211_VENDOR_SUBCMD_UPDATE_STA_INFO: This acts as a vendor event and
    835  *	is used to update the information about the station from the driver to
    836  *	userspace. Uses attributes from enum
    837  *	qca_wlan_vendor_attr_update_sta_info.
    838  *
    839  * @QCA_NL80211_VENDOR_SUBCMD_DRIVER_DISCONNECT_REASON: This acts as an event.
    840  *	The host driver initiates the disconnection for scenarios such as beacon
    841  *	miss, NUD failure, peer kick out, etc. The disconnection indication
    842  *	through cfg80211_disconnected() expects the reason codes from enum
    843  *	ieee80211_reasoncode which does not signify these various reasons why
    844  *	the driver has triggered the disconnection. This event will be used to
    845  *	send the driver specific reason codes by the host driver to userspace.
    846  *	Host drivers should trigger this event and pass the respective reason
    847  *	code immediately prior to triggering cfg80211_disconnected(). The
    848  *	attributes used with this event are defined in enum
    849  *	qca_wlan_vendor_attr_driver_disconnect_reason.
    850  *
    851  * @QCA_NL80211_VENDOR_SUBCMD_CONFIG_TSPEC: This vendor subcommand is used to
    852  *	add/delete TSPEC for each AC. One command is for one specific AC only.
    853  *	This command can only be used in STA mode and the STA must be
    854  *	associated with an AP when the command is issued. Uses attributes
    855  *	defined in enum qca_wlan_vendor_attr_config_tspec.
    856  *
    857  * @QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT: Vendor subcommand to configure TWT.
    858  *	Uses attributes defined in enum qca_wlan_vendor_attr_config_twt.
    859  *
    860  * @QCA_NL80211_VENDOR_SUBCMD_GETBAND: Command to get the enabled band(s) from
    861  *	the driver. The band configurations obtained are referred through
    862  *	QCA_WLAN_VENDOR_ATTR_SETBAND_MASK.
    863  *
    864  * @QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS: Vendor subcommand/event for medium
    865  *	assessment.
    866  *	Uses attributes defined in enum qca_wlan_vendor_attr_medium_assess.
    867  *
    868  * @QCA_NL80211_VENDOR_SUBCMD_UPDATE_SSID: This acts as a vendor event and is
    869  *	used to update SSID information in hostapd when it is updated in the
    870  *	driver. Uses the attribute NL80211_ATTR_SSID.
    871  *
    872  * @QCA_NL80211_VENDOR_SUBCMD_WIFI_FW_STATS: This vendor subcommand is used by
    873  *	the driver to send opaque data from the firmware to userspace. The
    874  *	driver sends an event to userspace whenever such data is received from
    875  *	the firmware.
    876  *
    877  *	QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA is used as the attribute to
    878  *	send this opaque data for this event.
    879  *
    880  *	The format of the opaque data is specific to the particular firmware
    881  *	version and there is no guarantee of the format remaining same.
    882  *
    883  * @QCA_NL80211_VENDOR_SUBCMD_MBSSID_TX_VDEV_STATUS: This acts as an event.
    884  *	The host driver selects Tx VDEV, and notifies user. The attributes
    885  *	used with this event are defined in enum
    886  *	qca_wlan_vendor_attr_mbssid_tx_vdev_status.
    887  *	This event contains Tx VDEV group information, other VDEVs
    888  *	interface index, and status information.
    889  *
    890  * @QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_POLICY: Vendor command to
    891  *	configure the concurrent session policies when multiple interfaces
    892  *	are (getting) active. The attributes used by this command are defined
    893  *	in enum qca_wlan_vendor_attr_concurrent_policy.
    894  *
    895  * @QCA_NL80211_VENDOR_SUBCMD_USABLE_CHANNELS: Userspace can use this command
    896  *	to query usable channels for different interface types such as STA,
    897  *	AP, P2P GO, P2P Client, NAN, etc. The driver shall report all usable
    898  *	channels in the response based on country code, different static
    899  *	configurations, concurrency combinations, etc. The attributes used
    900  *	with this command are defined in
    901  *	enum qca_wlan_vendor_attr_usable_channels.
    902  *
    903  * @QCA_NL80211_VENDOR_SUBCMD_GET_RADAR_HISTORY: This vendor subcommand is used
    904  *	to get DFS radar history from the driver to userspace. The driver
    905  *	returns QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_ENTRIES attribute with an
    906  *	array of nested entries.
    907  *
    908  * @QCA_NL80211_VENDOR_SUBCMD_MDNS_OFFLOAD: Userspace can use this command to
    909  *	enable/disable mDNS offload to the firmware. The attributes used with
    910  *	this command are defined in enum qca_wlan_vendor_attr_mdns_offload.
    911  *
    912  * @QCA_NL80211_VENDOR_SUBCMD_SET_MONITOR_MODE: This vendor subcommand is used
    913  *	to set packet monitor mode that aims to send the specified set of TX and
    914  *	RX frames on the current client interface to an active monitor
    915  *	interface. If this monitor mode is set, the driver will send the
    916  *	configured frames, from the interface on which the command is issued, to
    917  *	an active monitor interface. The attributes used with this command are
    918  *	defined in enum qca_wlan_vendor_attr_set_monitor_mode.
    919  *
    920  *	Though the monitor mode is configured for the respective
    921  *	Data/Management/Control frames, it is up to the respective WLAN
    922  *	driver/firmware/hardware designs to consider the possibility of sending
    923  *	these frames over the monitor interface. For example, the Control frames
    924  *	are handled within the hardware and thus passing such frames over the
    925  *	monitor interface is left to the respective designs.
    926  *
    927  *	Also, this monitor mode is governed to behave accordingly in
    928  *	suspend/resume states. If the firmware handles any of such frames in
    929  *	suspend state without waking up the host and if the monitor mode is
    930  *	configured to notify all such frames, the firmware is expected to resume
    931  *	the host and forward the respective frames to the monitor interface.
    932  *	Please note that such a request to get the frames over the monitor
    933  *	interface will have a definite power implication.
    934  *
    935  * @QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS: This vendor subcommand is used both
    936  *	as a request to set the driver/firmware with the parameters to trigger
    937  *	the roaming events, and also used by the driver/firmware to pass on the
    938  *	various roam events to userspace.
    939  *	Applicable only for the STA mode. The attributes used with this command
    940  *	are defined in enum qca_wlan_vendor_attr_roam_events.
    941  *
    942  * @QCA_NL80211_VENDOR_SUBCMD_RATEMASK_CONFIG: Subcommand to set or reset the
    943  *	rate mask config for a list of PHY types. Userspace shall provide an
    944  *	array of the vendor attributes defined in
    945  *	enum qca_wlan_vendor_attr_ratemask_params.
    946  *
    947  * @QCA_NL80211_VENDOR_SUBCMD_MCC_QUOTA: Multi-channel Concurrency (MCC) occurs
    948  *	when two interfaces are active on the same band, using two different
    949  *	home channels, and only supported by a single radio. In this scenario
    950  *	the device must split the use of the radio between the two interfaces.
    951  *	The percentage of time allocated to a given interface is the quota.
    952  *	Depending on the configuration, the quota can either be fixed or
    953  *	dynamic.
    954  *
    955  *	When used as an event, the device will report the quota type, and for
    956  *	all interfaces operating in MCC it will report the current quota.
    957  *	When used as a command, the device can be configured for a specific
    958  *	quota type, and in the case of a fixed quota, the quota to apply to one
    959  *	of the interfaces.
    960  *
    961  *	Applications can use the event to do TX bitrate control based on the
    962  *	information, and can use the command to explicitly set the quota to
    963  *	enhance performance in specific scenarios.
    964  *
    965  *	The attributes used with this command are defined in
    966  *	enum qca_wlan_vendor_attr_mcc_quota.
    967  *
    968  * @QCA_NL80211_VENDOR_SUBCMD_GET_RADIO_COMBINATION_MATRIX: Vendor command to
    969  *	get the WLAN radio combinations matrix supported by the device which
    970  *	provides the device simultaneous radio configurations such as
    971  *	standalone, dual band simultaneous, and single band simultaneous.
    972  *
    973  *	The attributes used with this command are defined in
    974  *	enum qca_wlan_vendor_attr_radio_combination_matrix.
    975  *
    976  * @QCA_NL80211_VENDOR_SUBCMD_DRIVER_READY: Event indicating to the user space
    977  *	that the driver is ready for operations again after recovering from
    978  *	internal failures. This occurs following a failure that was indicated by
    979  *	@QCA_NL80211_VENDOR_SUBCMD_HANG.
    980  *
    981  * @QCA_NL80211_VENDOR_SUBCMD_PASN: Subcommand used to offload preassociation
    982  *	security negotiation and key generation to user space.
    983  *
    984  *	When used as an event, the driver requests userspace to trigger the PASN
    985  *	authentication or dropping of a PTKSA for the indicated peer devices.
    986  *	When used as a command response, userspace indicates a consolidated
    987  *	status report for all the peers that were requested for.
    988  *
    989  *	The attributes used with this command are defined in
    990  *	enum qca_wlan_vendor_attr_pasn.
    991  *
    992  * @QCA_NL80211_VENDOR_SUBCMD_SECURE_RANGING_CONTEXT: Subcommand used to set
    993  *	secure ranging context such as TK and LTF keyseed for each peer
    994  *	requested by the driver with a @QCA_NL80211_VENDOR_SUBCMD_PASN event.
    995  *
    996  *	The attributes used with this command are defined in
    997  *	enum qca_wlan_vendor_attr_secure_ranging_ctx.
    998  *
    999  * @QCA_NL80211_VENDOR_SUBCMD_COAP_OFFLOAD: This vendor subcommand is used to
   1000  *	enable/disable offload processing in firmware during system/runtime
   1001  *	suspend for CoAP messages (see RFC7252: The Constrained Application
   1002  *	Protocol) and fetch information of the CoAP messages cached during
   1003  *	offload processing.
   1004  *
   1005  *	The attributes used with this command are defined in
   1006  *	enum qca_wlan_vendor_attr_coap_offload.
   1007  *
   1008  * @QCA_NL80211_VENDOR_SUBCMD_SCS_RULE_CONFIG: Subcommand to configure
   1009  *	(add, remove, or change) a Stream Classification Service (SCS) rule.
   1010  *
   1011  *      The attributes used with this event are defined in
   1012  *      enum qca_wlan_vendor_attr_scs_rule_config.
   1013  *
   1014  * @QCA_NL80211_VENDOR_SUBCMD_GET_SAR_CAPABILITY: Fetch SAR capabilities
   1015  *	supported by the WLAN firmware.
   1016  *
   1017  *	The attributes used with this command are defined in
   1018  *	enum qca_wlan_vendor_attr_sar_capability.
   1019  *
   1020  * @QCA_NL80211_VENDOR_SUBCMD_SR: Subcommand used to implement Spatial Reuse
   1021  *	(SR) feature. This command is used by userspace to configure SR
   1022  *	parameters to the driver and to get the SR related parameters and
   1023  *	statistics with synchronous responses from the driver.
   1024  *	The driver also uses this command to send asynchronous events to
   1025  *	userspace to indicate suspend/resume of SR feature and changes
   1026  *	in SR parameters.
   1027  *
   1028  *	The attributes used with this command are defined in
   1029  *	enum qca_wlan_vendor_attr_sr.
   1030  *
   1031  * @QCA_NL80211_VENDOR_SUBCMD_MLO_PEER_PRIM_NETDEV_EVENT: Subcommand used to
   1032  *	notify application layer about the primary netdev of an MLO connection.
   1033  *	In some implementations, MLO has multiple netdevs out of which one
   1034  *	netdev is designated as primary to provide a unified interface to the
   1035  *	bridge. In those implementations this event is sent on every MLO peer
   1036  *	connection. User applications on an AP MLD will use this event to get
   1037  *	info for all the links from non-AP MLD that were negotiated to be used
   1038  *	for the ML association.
   1039  *
   1040  *	The attributes used with this event are defined in
   1041  *	enum qca_wlan_vendor_attr_mlo_peer_prim_netdev_event.
   1042  *
   1043  * @QCA_NL80211_VENDOR_SUBCMD_AFC_EVENT: This vendor command is used by the
   1044  *	driver to notify different AFC events to userspace. The attributes used
   1045  *	with this command are defined in enum qca_wlan_vendor_attr_afc_event.
   1046  *
   1047  * @QCA_NL80211_VENDOR_SUBCMD_AFC_RESPONSE: This vendor command is used by
   1048  *	userspace to deliver AFC response data to driver. The attributes used
   1049  *	with this command are defined in enum qca_wlan_vendor_attr_afc_response.
   1050  *
   1051  * @QCA_NL80211_VENDOR_SUBCMD_DOZED_AP: Subcommand to configure AP interface to
   1052  *	operate in doze mode.
   1053  *
   1054  *	Userspace uses this command to configure the AP interface to enter or
   1055  *	exit from doze mode. The driver sends this event after it enters or
   1056  *	exits the doze mode with the updated AP doze mode settings.
   1057  *
   1058  *	The attributes used with this subcommand are defined in
   1059  *	enum qca_wlan_vendor_attr_dozed_ap.
   1060  *
   1061  * @QCA_NL80211_VENDOR_SUBCMD_GET_MONITOR_MODE: This vendor subcommand is used
   1062  *	to get the status of local packet capture of monitor mode. The monitor
   1063  *	mode can be started using QCA_NL80211_VENDOR_SUBCMD_SET_MONITOR_MODE
   1064  *	subcommand.
   1065  *
   1066  *	The attributes used with this command are defined in enum
   1067  *	qca_wlan_vendor_attr_get_monitor_mode.
   1068  *
   1069  * @QCA_NL80211_VENDOR_SUBCMD_ROAM_STATS: This vendor command is used to
   1070  *	get roam information from the driver to user space. It provides the
   1071  *	latest several instances of roam information cached in the driver.
   1072  *	The command is only used for STA mode. The attributes used with this
   1073  *	command are defined in enum qca_wlan_vendor_attr_roam_cached_stats.
   1074  *
   1075  * @QCA_NL80211_VENDOR_SUBCMD_MLO_LINK_STATE: This vendor subcommand is used to
   1076  *	configure and fetch the state information of the MLO links affiliated
   1077  *	with the STA interface. The attributes used with this command are
   1078  *	defined in enum qca_wlan_vendor_attr_mlo_link_state.
   1079  *
   1080  * @QCA_NL80211_VENDOR_SUBCMD_CONNECTED_CHANNEL_STATS: Userspace can use this
   1081  *	vendor subcommand to trigger channel utilization measurement on entire
   1082  *	channel width of the connected channel(s). For MLO connection, connected
   1083  *	channel utilization measurement shall be done on all the MLO links.
   1084  *	The driver may use regular scan or wideband energy detection feature
   1085  *	based on the hardware capability for connected channel(s) utilization
   1086  *	measurement. The driver indicates the connected channel(s) utilization
   1087  *	measurement completion as an asynchronous event with this command ID to
   1088  *	userspace. Upon receiving this event, userspace can use
   1089  *	%NL80211_CMD_GET_INTERFACE to determine the channel width of the current
   1090  *	connected channel(s) and can derive the channel utilization percentage
   1091  *	(CU) of each 20 MHz sub-channel of the entire connected channel using
   1092  *	%NL80211_CMD_GET_SURVEY response.
   1093  *	CU = %NL80211_SURVEY_INFO_TIME_BUSY * 100 / %NL80211_SURVEY_INFO_TIME.
   1094  *	This command is only used for STA mode.
   1095  *
   1096  * @QCA_NL80211_VENDOR_SUBCMD_TID_TO_LINK_MAP: This vendor subcommand is
   1097  *	used as an event to notify the userspace of TID-to-link map changes
   1098  *	negotiated by the driver or updated by associated AP MLD with Beacon,
   1099  *	Probe Response, or Action frames. The attributes used with this command
   1100  *	are defined in enum qca_wlan_vendor_attr_tid_to_link_map.
   1101  *
   1102  *	Note that the attribute
   1103  *	%QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_AP_MLD_ADDR may not correspond to
   1104  *	the current connected AP MLD address.
   1105  *
   1106  * @QCA_NL80211_VENDOR_SUBCMD_LINK_RECONFIG: Notify userspace about the removal
   1107  *	of STA MLD setup links due to the AP MLD removing the corresponding
   1108  *	affiliated APs with Multi-Link reconfiguration. If all the STA MLD setup
   1109  *	links are removed during Multi-Link reconfiguration, the driver shall
   1110  *	use %NL80211_CMD_DISCONNECT instead of this command since it is a
   1111  *	connection drop. The attributes used with this command are defined in
   1112  *	enum qca_wlan_vendor_attr_link_reconfig.
   1113  *	Note that the attribute
   1114  *	%QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_AP_MLD_ADDR may not correspond to
   1115  *	the current connected AP MLD address.
   1116  *
   1117  * @QCA_NL80211_VENDOR_SUBCMD_TDLS_DISC_RSP_EXT: Vendor command to configure
   1118  *	the driver with MLO link id information on which to transmit the TDLS
   1119  *	discovery response frame on the configured MLO BSS link when the
   1120  *	local station is connected in MLO mode. This command is sent to the
   1121  *	driver prior to the TDLS discovery response management transmit
   1122  *	operation and is followed immediately by the TDLS discovery response
   1123  *	management frame transmit command.
   1124  *
   1125  *	The driver saves the configured MLO link id information and uses it for
   1126  *	the following TDLS discovery response frame transmission on the
   1127  *	configured MLO BSS link and the link id information is cleared in the
   1128  *	driver after the TDLS discovery response frame is successfully
   1129  *	transmitted. This behavior is indepent of the TDLS peer STA connection
   1130  *	mode (MLO or non-MLO).
   1131  *
   1132  *	Uses the attributes defined in
   1133  *	enum qca_wlan_vendor_attr_tdls_disc_rsp_ext.
   1134  *
   1135  * @QCA_NL80211_VENDOR_SUBCMD_TX_LATENCY: This vendor subcommand is used to
   1136  *	configure, retrieve, and report per-link transmit latency statistics.
   1137  *
   1138  *	The attributes used with this subcommand are defined in
   1139  *	enum qca_wlan_vendor_attr_tx_latency.
   1140  *
   1141  * @QCA_NL80211_VENDOR_SUBCMD_REGULATORY_TPC_INFO: Vendor command is used to
   1142  *	query transmit power information on STA interface from the driver for a
   1143  *	connected AP. The attributes included in response are defined in
   1144  *	enum qca_wlan_vendor_attr_tpc_links. In case of MLO STA, multiple links
   1145  *	TPC info may be returned. The information includes regulatory maximum
   1146  *	transmit power limit, AP local power constraint advertised from AP's
   1147  *	Beacon and Probe Response frames. For PSD power mode, the information
   1148  *	includes PSD power levels for each subchannel of operating bandwidth.
   1149  *	The information is driver calculated power limits based on the current
   1150  *	regulatory domain, AP local power constraint, and other IEs. The
   1151  *	information will be set to target. Target will decide the final TX power
   1152  *	based on this and chip specific power conformance test limits (CTL), and
   1153  *	SAR limits.
   1154  *
   1155  * @QCA_NL80211_VENDOR_SUBCMD_FW_PAGE_FAULT_REPORT: Event indication from the
   1156  *	driver to user space which is carrying firmware page fault related
   1157  *	summary report. The attributes for this command are defined in
   1158  *	enum qca_wlan_vendor_attr_fw_page_fault_report.
   1159  *
   1160  * @QCA_NL80211_VENDOR_SUBCMD_DISASSOC_PEER: Event indication from the driver
   1161  *	to user space to disassociate with a peer based on the peer MAC address
   1162  *	provided. Specify the peer MAC address in
   1163  *	QCA_WLAN_VENDOR_ATTR_MAC_ADDR. For MLO, MLD MAC address is provided.
   1164  *
   1165  * @QCA_NL80211_VENDOR_SUBCMD_ADJUST_TX_POWER: This vendor command is used to
   1166  *	adjust transmit power. The attributes used with this subcommand are
   1167  *	defined in enum qca_wlan_vendor_attr_adjust_tx_power.
   1168  *
   1169  * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_COMPLETE: Event indication from the
   1170  *	driver to notify user application about the spectral scan completion.
   1171  *	The attributes used with this subcommand are defined in
   1172  *	enum qca_wlan_vendor_attr_spectral_scan_complete.
   1173  *
   1174  * @QCA_NL80211_VENDOR_SUBCMD_ASYNC_GET_STATION: Register for receiving
   1175  *	%NL80211_CMD_GET_STATION responses as unicast events when there are
   1176  *	%NL80211_CMD_GET_STATION requests from any userspace module on the same
   1177  *	interface index with which this command is sent. This command is also
   1178  *	used as the unicast event to indicate the %NL80211_CMD_GET_STATION
   1179  *	response. The attributes for this command are defined in
   1180  *	enum qca_wlan_vendor_async_get_station_attr.
   1181  *
   1182  *	The driver will send the unicast events with same netlink port ID which
   1183  *	is used by userspace application for sending the registration command.
   1184  *	If multiple registration commands are received with different netlink
   1185  *	port IDs, the driver will send unicast events with each netlink port ID
   1186  *	separately.
   1187  *
   1188  *	Userspace applications can deregister the unicast event reporting with
   1189  *	disable configuration. The registrations will be removed automatically
   1190  *	by the driver when the corresponding netlink socket is closed.
   1191  *
   1192  * @QCA_NL80211_VENDOR_SUBCMD_AP_SUSPEND: Vendor command to put an AP interface
   1193  *	in suspend state. On enabling suspend, AP deauthenticates all associated
   1194  *	stations and stops TX/RX operations on the interface. The driver
   1195  *	retains the AP configuration and on resume, starts all TX/RX operations
   1196  *	with the same AP configuration.
   1197  *
   1198  *	This subcommand is also used as an event to notify userspace about AP
   1199  *	suspended/resumed state changes.
   1200  *
   1201  *	The attributes used with this command/event are defined in enum
   1202  *	qca_wlan_vendor_attr_ap_suspend.
   1203  *
   1204  * @QCA_NL80211_VENDOR_SUBCMD_FLOW_STATS: Event indication from the driver to
   1205  *	the userspace which contains all the statistics collected for a flow to
   1206  *	be classified. This event is sent if the userspace enables the
   1207  *	flow stats reporting via the command
   1208  *	@QCA_NL80211_VENDOR_SUBCMD_ASYNC_STATS_POLICY and when the driver has
   1209  *	collected the required flow statistics, as specified by the attributes
   1210  *	of this event. The attributes for this event are defined in
   1211  *	enum qca_wlan_vendor_attr_flow_stats.
   1212  * @QCA_NL80211_VENDOR_SUBCMD_FLOW_CLASSIFY_RESULT: This vendor command is used
   1213  *	to indicate the flow classification result based on the flow samples
   1214  *	received as a part of @QCA_NL80211_VENDOR_SUBCMD_FLOW_STATS. The
   1215  *	attributes for this command are defined in the
   1216  *	enum qca_wlan_vendor_attr_flow_classify_result.
   1217  * @QCA_NL80211_VENDOR_SUBCMD_ASYNC_STATS_POLICY: This vendor command is used to
   1218  *	indicate the ASYNC statistics policy from the userspace to the driver
   1219  *	and it contains the STATS type for which the command is intended. The
   1220  *	attributes for this command are defined in the
   1221  *	enum qca_wlan_vendor_attr_async_stats_policy.
   1222  * @QCA_NL80211_VENDOR_SUBCMD_CLASSIFIED_FLOW_REPORT: Event indication from the
   1223  *	driver to the userspace containing all the samples of a classified
   1224  *	flow along with its classification result. This event is sent by the
   1225  *	driver to userspace when it receives classification result via the
   1226  *	command @QCA_NL80211_VENDOR_SUBCMD_FLOW_CLASSIFY_RESULT and the
   1227  *	collection of these statistics has been enabled by the command
   1228  *	@QCA_NL80211_VENDOR_SUBCMD_ASYNC_STATS_POLICY. The attributes for this
   1229  *	event are defined in enum qca_wlan_vendor_attr_flow_stats.
   1230  */
   1231 enum qca_nl80211_vendor_subcmds {
   1232 	QCA_NL80211_VENDOR_SUBCMD_UNSPEC = 0,
   1233 	QCA_NL80211_VENDOR_SUBCMD_TEST = 1,
   1234 	/* subcmds 2..8 not yet allocated */
   1235 	QCA_NL80211_VENDOR_SUBCMD_ROAMING = 9,
   1236 	QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY = 10,
   1237 	QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY =  11,
   1238 	QCA_NL80211_VENDOR_SUBCMD_NAN =  12,
   1239 	QCA_NL80211_VENDOR_SUBCMD_STATS_EXT = 13,
   1240 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_SET = 14,
   1241 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET = 15,
   1242 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_CLR = 16,
   1243 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_RADIO_RESULTS = 17,
   1244 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_IFACE_RESULTS = 18,
   1245 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_PEERS_RESULTS = 19,
   1246 	QCA_NL80211_VENDOR_SUBCMD_GSCAN_START = 20,
   1247 	QCA_NL80211_VENDOR_SUBCMD_GSCAN_STOP = 21,
   1248 	QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_VALID_CHANNELS = 22,
   1249 	QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_CAPABILITIES = 23,
   1250 	QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_CACHED_RESULTS = 24,
   1251 	QCA_NL80211_VENDOR_SUBCMD_GSCAN_SCAN_RESULTS_AVAILABLE = 25,
   1252 	QCA_NL80211_VENDOR_SUBCMD_GSCAN_FULL_SCAN_RESULT = 26,
   1253 	QCA_NL80211_VENDOR_SUBCMD_GSCAN_SCAN_EVENT = 27,
   1254 	QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_AP_FOUND = 28,
   1255 	QCA_NL80211_VENDOR_SUBCMD_GSCAN_SET_BSSID_HOTLIST = 29,
   1256 	QCA_NL80211_VENDOR_SUBCMD_GSCAN_RESET_BSSID_HOTLIST = 30,
   1257 	QCA_NL80211_VENDOR_SUBCMD_GSCAN_SIGNIFICANT_CHANGE = 31,
   1258 	QCA_NL80211_VENDOR_SUBCMD_GSCAN_SET_SIGNIFICANT_CHANGE = 32,
   1259 	QCA_NL80211_VENDOR_SUBCMD_GSCAN_RESET_SIGNIFICANT_CHANGE = 33,
   1260 	QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE = 34,
   1261 	QCA_NL80211_VENDOR_SUBCMD_TDLS_DISABLE = 35,
   1262 	QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS = 36,
   1263 	QCA_NL80211_VENDOR_SUBCMD_TDLS_STATE = 37,
   1264 	QCA_NL80211_VENDOR_SUBCMD_GET_SUPPORTED_FEATURES = 38,
   1265 	QCA_NL80211_VENDOR_SUBCMD_SCANNING_MAC_OUI = 39,
   1266 	QCA_NL80211_VENDOR_SUBCMD_NO_DFS_FLAG = 40,
   1267 	QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_AP_LOST = 41,
   1268 	QCA_NL80211_VENDOR_SUBCMD_GET_CONCURRENCY_MATRIX = 42,
   1269 	/* 43..49 - reserved for QCA */
   1270 	QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_SET_KEY = 50,
   1271 	QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_ROAM_AUTH = 51,
   1272 	QCA_NL80211_VENDOR_SUBCMD_APFIND = 52,
   1273 	/* 53 - reserved - was used by QCA, but not in use anymore */
   1274 	QCA_NL80211_VENDOR_SUBCMD_DO_ACS = 54,
   1275 	QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES = 55,
   1276 	QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_STARTED = 56,
   1277 	QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_FINISHED = 57,
   1278 	QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_ABORTED = 58,
   1279 	QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_NOP_FINISHED = 59,
   1280 	QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_RADAR_DETECTED = 60,
   1281 	QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_INFO = 61,
   1282 	QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_START = 62,
   1283 	QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_MEMORY_DUMP = 63,
   1284 	QCA_NL80211_VENDOR_SUBCMD_ROAM = 64,
   1285 	QCA_NL80211_VENDOR_SUBCMD_GSCAN_SET_SSID_HOTLIST = 65,
   1286 	QCA_NL80211_VENDOR_SUBCMD_GSCAN_RESET_SSID_HOTLIST = 66,
   1287 	QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_SSID_FOUND = 67,
   1288 	QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_SSID_LOST = 68,
   1289 	QCA_NL80211_VENDOR_SUBCMD_PNO_SET_LIST = 69,
   1290 	QCA_NL80211_VENDOR_SUBCMD_PNO_SET_PASSPOINT_LIST = 70,
   1291 	QCA_NL80211_VENDOR_SUBCMD_PNO_RESET_PASSPOINT_LIST = 71,
   1292 	QCA_NL80211_VENDOR_SUBCMD_PNO_NETWORK_FOUND = 72,
   1293 	QCA_NL80211_VENDOR_SUBCMD_PNO_PASSPOINT_NETWORK_FOUND = 73,
   1294 	/* Wi-Fi configuration subcommands */
   1295 	QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION = 74,
   1296 	QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION = 75,
   1297 	QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET = 76,
   1298 	QCA_NL80211_VENDOR_SUBCMD_GET_RING_DATA = 77,
   1299 	QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_CAPABILITIES = 78,
   1300 	QCA_NL80211_VENDOR_SUBCMD_OFFLOADED_PACKETS = 79,
   1301 	QCA_NL80211_VENDOR_SUBCMD_MONITOR_RSSI = 80,
   1302 	QCA_NL80211_VENDOR_SUBCMD_NDP = 81,
   1303 	QCA_NL80211_VENDOR_SUBCMD_ND_OFFLOAD = 82,
   1304 	QCA_NL80211_VENDOR_SUBCMD_PACKET_FILTER = 83,
   1305 	QCA_NL80211_VENDOR_SUBCMD_GET_BUS_SIZE = 84,
   1306 	QCA_NL80211_VENDOR_SUBCMD_GET_WAKE_REASON_STATS = 85,
   1307 	/* 86-90 - reserved for QCA */
   1308 	QCA_NL80211_VENDOR_SUBCMD_DATA_OFFLOAD = 91,
   1309 	QCA_NL80211_VENDOR_SUBCMD_OCB_SET_CONFIG = 92,
   1310 	QCA_NL80211_VENDOR_SUBCMD_OCB_SET_UTC_TIME = 93,
   1311 	QCA_NL80211_VENDOR_SUBCMD_OCB_START_TIMING_ADVERT = 94,
   1312 	QCA_NL80211_VENDOR_SUBCMD_OCB_STOP_TIMING_ADVERT = 95,
   1313 	QCA_NL80211_VENDOR_SUBCMD_OCB_GET_TSF_TIMER = 96,
   1314 	QCA_NL80211_VENDOR_SUBCMD_DCC_GET_STATS = 97,
   1315 	QCA_NL80211_VENDOR_SUBCMD_DCC_CLEAR_STATS = 98,
   1316 	QCA_NL80211_VENDOR_SUBCMD_DCC_UPDATE_NDL = 99,
   1317 	QCA_NL80211_VENDOR_SUBCMD_DCC_STATS_EVENT = 100,
   1318 	QCA_NL80211_VENDOR_SUBCMD_LINK_PROPERTIES = 101,
   1319 	QCA_NL80211_VENDOR_SUBCMD_GW_PARAM_CONFIG = 102,
   1320 	QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST = 103,
   1321 	QCA_NL80211_VENDOR_SUBCMD_SET_PROBABLE_OPER_CHANNEL = 104,
   1322 	QCA_NL80211_VENDOR_SUBCMD_SETBAND = 105,
   1323 	QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN = 106,
   1324 	QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE = 107,
   1325 	QCA_NL80211_VENDOR_SUBCMD_OTA_TEST = 108,
   1326 	QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE = 109,
   1327 	/* 110..114 - reserved for QCA */
   1328 	QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_DECR_DB = 115,
   1329 	QCA_NL80211_VENDOR_SUBCMD_ACS_POLICY = 116,
   1330 	/* 117 - reserved for QCA */
   1331 	QCA_NL80211_VENDOR_SUBCMD_SET_SAP_CONFIG = 118,
   1332 	QCA_NL80211_VENDOR_SUBCMD_TSF = 119,
   1333 	QCA_NL80211_VENDOR_SUBCMD_WISA = 120,
   1334 	/* 121 - reserved for QCA */
   1335 	QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_START = 122,
   1336 	QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_STOP = 123,
   1337 	QCA_NL80211_VENDOR_SUBCMD_SAP_CONDITIONAL_CHAN_SWITCH = 124,
   1338 	QCA_NL80211_VENDOR_SUBCMD_GPIO_CONFIG_COMMAND = 125,
   1339 	QCA_NL80211_VENDOR_SUBCMD_GET_HW_CAPABILITY = 126,
   1340 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_EXT = 127,
   1341 	/* FTM/indoor location subcommands */
   1342 	QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA = 128,
   1343 	QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION = 129,
   1344 	QCA_NL80211_VENDOR_SUBCMD_FTM_ABORT_SESSION = 130,
   1345 	QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT = 131,
   1346 	QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE = 132,
   1347 	QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER = 133,
   1348 	QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS = 134,
   1349 	QCA_NL80211_VENDOR_SUBCMD_AOA_ABORT_MEAS = 135,
   1350 	QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT = 136,
   1351 	QCA_NL80211_VENDOR_SUBCMD_ENCRYPTION_TEST = 137,
   1352 	QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI = 138,
   1353 	/* DMG low level RF sector operations */
   1354 	QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SECTOR_CFG = 139,
   1355 	QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SECTOR_CFG = 140,
   1356 	QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SELECTED_SECTOR = 141,
   1357 	QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SELECTED_SECTOR = 142,
   1358 	QCA_NL80211_VENDOR_SUBCMD_CONFIGURE_TDLS = 143,
   1359 	QCA_NL80211_VENDOR_SUBCMD_GET_HE_CAPABILITIES = 144,
   1360 	QCA_NL80211_VENDOR_SUBCMD_ABORT_SCAN = 145,
   1361 	QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS = 146,
   1362 	QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS = 147,
   1363 	QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE = 148,
   1364 	QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET = 149,
   1365 	QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET = 150,
   1366 	QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS = 151,
   1367 	QCA_NL80211_VENDOR_SUBCMD_SET_TRACE_LEVEL = 152,
   1368 	QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT = 153,
   1369 	QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START = 154,
   1370 	QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP = 155,
   1371 	QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS = 156,
   1372 	QCA_NL80211_VENDOR_SUBCMD_HANG = 157,
   1373 	QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CONFIG = 158,
   1374 	QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS = 159,
   1375 	QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO = 160,
   1376 	QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS = 161,
   1377 	/* Flush peer pending data */
   1378 	QCA_NL80211_VENDOR_SUBCMD_PEER_FLUSH_PENDING = 162,
   1379 	QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO = 163,
   1380 	QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS = 164,
   1381 	QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO = 165,
   1382 	QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH = 166,
   1383 	/* Thermal shutdown commands to protect wifi chip */
   1384 	QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD = 167,
   1385 	QCA_NL80211_VENDOR_SUBCMD_THERMAL_EVENT = 168,
   1386 	/* Wi-Fi test configuration subcommand */
   1387 	QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION = 169,
   1388 	/* Frame filter operations for other BSSs/unassociated STAs */
   1389 	QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER = 170,
   1390 	QCA_NL80211_VENDOR_SUBCMD_NAN_EXT = 171,
   1391 	QCA_NL80211_VENDOR_SUBCMD_ROAM_SCAN_EVENT = 172,
   1392 	QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG = 173,
   1393 	QCA_NL80211_VENDOR_SUBCMD_THROUGHPUT_CHANGE_EVENT = 174,
   1394 	QCA_NL80211_VENDOR_SUBCMD_COEX_CONFIG = 175,
   1395 	QCA_NL80211_VENDOR_SUBCMD_GET_SUPPORTED_AKMS = 176,
   1396 	QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE = 177,
   1397 	QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH = 178,
   1398 	QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG = 179,
   1399 	QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING = 180,
   1400 	QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP = 181,
   1401 	QCA_NL80211_VENDOR_SUBCMD_OEM_DATA = 182,
   1402 	QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_EXT = 183,
   1403 	QCA_NL80211_VENDOR_SUBCMD_ADD_STA_NODE = 184,
   1404 	QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE = 185,
   1405 	QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO = 186,
   1406 	QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS_EVENT = 187,
   1407 	QCA_NL80211_VENDOR_SUBCMD_UPDATE_STA_INFO = 188,
   1408 	QCA_NL80211_VENDOR_SUBCMD_DRIVER_DISCONNECT_REASON = 189,
   1409 	QCA_NL80211_VENDOR_SUBCMD_CONFIG_TSPEC = 190,
   1410 	QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT = 191,
   1411 	QCA_NL80211_VENDOR_SUBCMD_GETBAND = 192,
   1412 	QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS = 193,
   1413 	QCA_NL80211_VENDOR_SUBCMD_UPDATE_SSID = 194,
   1414 	QCA_NL80211_VENDOR_SUBCMD_WIFI_FW_STATS = 195,
   1415 	QCA_NL80211_VENDOR_SUBCMD_MBSSID_TX_VDEV_STATUS = 196,
   1416 	QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_POLICY = 197,
   1417 	QCA_NL80211_VENDOR_SUBCMD_USABLE_CHANNELS = 198,
   1418 	QCA_NL80211_VENDOR_SUBCMD_GET_RADAR_HISTORY = 199,
   1419 	QCA_NL80211_VENDOR_SUBCMD_MDNS_OFFLOAD = 200,
   1420 	/* 201 - reserved for QCA */
   1421 	QCA_NL80211_VENDOR_SUBCMD_SET_MONITOR_MODE = 202,
   1422 	QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS = 203,
   1423 	QCA_NL80211_VENDOR_SUBCMD_RATEMASK_CONFIG = 204,
   1424 	QCA_NL80211_VENDOR_SUBCMD_MCC_QUOTA = 205,
   1425 	/* 206..212 - reserved for QCA */
   1426 	QCA_NL80211_VENDOR_SUBCMD_GET_RADIO_COMBINATION_MATRIX = 213,
   1427 	QCA_NL80211_VENDOR_SUBCMD_DRIVER_READY = 214,
   1428 	QCA_NL80211_VENDOR_SUBCMD_PASN = 215,
   1429 	QCA_NL80211_VENDOR_SUBCMD_SECURE_RANGING_CONTEXT = 216,
   1430 	QCA_NL80211_VENDOR_SUBCMD_COAP_OFFLOAD = 217,
   1431 	QCA_NL80211_VENDOR_SUBCMD_SCS_RULE_CONFIG = 218,
   1432 	QCA_NL80211_VENDOR_SUBCMD_GET_SAR_CAPABILITY = 219,
   1433 	QCA_NL80211_VENDOR_SUBCMD_SR = 220,
   1434 	QCA_NL80211_VENDOR_SUBCMD_MLO_PEER_PRIM_NETDEV_EVENT = 221,
   1435 	QCA_NL80211_VENDOR_SUBCMD_AFC_EVENT = 222,
   1436 	QCA_NL80211_VENDOR_SUBCMD_AFC_RESPONSE = 223,
   1437 	QCA_NL80211_VENDOR_SUBCMD_DOZED_AP = 224,
   1438 	QCA_NL80211_VENDOR_SUBCMD_GET_MONITOR_MODE = 225,
   1439 	QCA_NL80211_VENDOR_SUBCMD_ROAM_STATS = 226,
   1440 	QCA_NL80211_VENDOR_SUBCMD_MLO_LINK_STATE = 227,
   1441 	QCA_NL80211_VENDOR_SUBCMD_CONNECTED_CHANNEL_STATS = 228,
   1442 	QCA_NL80211_VENDOR_SUBCMD_TID_TO_LINK_MAP = 229,
   1443 	QCA_NL80211_VENDOR_SUBCMD_LINK_RECONFIG = 230,
   1444 	QCA_NL80211_VENDOR_SUBCMD_TDLS_DISC_RSP_EXT = 231,
   1445 	/* 232 - reserved for QCA */
   1446 	QCA_NL80211_VENDOR_SUBCMD_TX_LATENCY = 233,
   1447 	/* 234 - reserved for QCA */
   1448 	QCA_NL80211_VENDOR_SUBCMD_SDWF_PHY_OPS = 235,
   1449 	QCA_NL80211_VENDOR_SUBCMD_SDWF_DEV_OPS = 236,
   1450 	QCA_NL80211_VENDOR_SUBCMD_REGULATORY_TPC_INFO = 237,
   1451 	QCA_NL80211_VENDOR_SUBCMD_FW_PAGE_FAULT_REPORT = 238,
   1452 	QCA_NL80211_VENDOR_SUBCMD_FLOW_POLICY = 239,
   1453 	QCA_NL80211_VENDOR_SUBCMD_DISASSOC_PEER = 240,
   1454 	QCA_NL80211_VENDOR_SUBCMD_ADJUST_TX_POWER = 241,
   1455 	QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_COMPLETE = 242,
   1456 	QCA_NL80211_VENDOR_SUBCMD_ASYNC_GET_STATION = 243,
   1457 	QCA_NL80211_VENDOR_SUBCMD_AP_SUSPEND = 244,
   1458 	QCA_NL80211_VENDOR_SUBCMD_FLOW_STATS = 245,
   1459 	QCA_NL80211_VENDOR_SUBCMD_FLOW_CLASSIFY_RESULT = 246,
   1460 	QCA_NL80211_VENDOR_SUBCMD_ASYNC_STATS_POLICY = 247,
   1461 	QCA_NL80211_VENDOR_SUBCMD_CLASSIFIED_FLOW_REPORT = 248,
   1462 };
   1463 
   1464 /* Compatibility defines for previously used subcmd names.
   1465  * These values should not be used in any new implementation.
   1466  */
   1467 #define QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_MULTI_STA_POLICY \
   1468 	QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_POLICY
   1469 
   1470 enum qca_wlan_vendor_attr {
   1471 	QCA_WLAN_VENDOR_ATTR_INVALID = 0,
   1472 	/* used by QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY */
   1473 	QCA_WLAN_VENDOR_ATTR_DFS     = 1,
   1474 	/* Used only when driver sends vendor events to the userspace under the
   1475 	 * command QCA_NL80211_VENDOR_SUBCMD_NAN. Not used when userspace sends
   1476 	 * commands to the driver.
   1477 	 */
   1478 	QCA_WLAN_VENDOR_ATTR_NAN     = 2,
   1479 	/* used by QCA_NL80211_VENDOR_SUBCMD_STATS_EXT */
   1480 	QCA_WLAN_VENDOR_ATTR_STATS_EXT     = 3,
   1481 	/* used by QCA_NL80211_VENDOR_SUBCMD_STATS_EXT */
   1482 	QCA_WLAN_VENDOR_ATTR_IFINDEX     = 4,
   1483 	/* used by QCA_NL80211_VENDOR_SUBCMD_ROAMING, u32 with values defined
   1484 	 * by enum qca_roaming_policy.
   1485 	 */
   1486 	QCA_WLAN_VENDOR_ATTR_ROAMING_POLICY = 5,
   1487 	QCA_WLAN_VENDOR_ATTR_MAC_ADDR = 6,
   1488 	/* used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES */
   1489 	QCA_WLAN_VENDOR_ATTR_FEATURE_FLAGS = 7,
   1490 	QCA_WLAN_VENDOR_ATTR_TEST = 8,
   1491 	/* used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES */
   1492 	/* Unsigned 32-bit value. */
   1493 	QCA_WLAN_VENDOR_ATTR_CONCURRENCY_CAPA = 9,
   1494 	/* Unsigned 32-bit value */
   1495 	QCA_WLAN_VENDOR_ATTR_MAX_CONCURRENT_CHANNELS_2_4_BAND = 10,
   1496 	/* Unsigned 32-bit value */
   1497 	QCA_WLAN_VENDOR_ATTR_MAX_CONCURRENT_CHANNELS_5_0_BAND = 11,
   1498 	/* Unsigned 32-bit value from enum qca_set_band. The allowed values for
   1499 	 * this attribute are limited to QCA_SETBAND_AUTO, QCA_SETBAND_5G, and
   1500 	 * QCA_SETBAND_2G. This attribute is deprecated. Recommendation is to
   1501 	 * use QCA_WLAN_VENDOR_ATTR_SETBAND_MASK instead.
   1502 	 */
   1503 	QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE = 12,
   1504 	/* Attribute used for padding for 64-bit alignment */
   1505 	QCA_WLAN_VENDOR_ATTR_PAD = 13,
   1506 	/* Unique FTM session cookie (Unsigned 64 bit). Specified in
   1507 	 * QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION. Reported in
   1508 	 * the session in QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT and
   1509 	 * QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE.
   1510 	 */
   1511 	QCA_WLAN_VENDOR_ATTR_FTM_SESSION_COOKIE = 14,
   1512 	/* Indoor location capabilities, returned by
   1513 	 * QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA.
   1514 	 * see enum qca_wlan_vendor_attr_loc_capa.
   1515 	 */
   1516 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA = 15,
   1517 	/* Array of nested attributes containing information about each peer
   1518 	 * in FTM measurement session. See enum qca_wlan_vendor_attr_peer_info
   1519 	 * for supported attributes for each peer.
   1520 	 */
   1521 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEERS = 16,
   1522 	/* Array of nested attributes containing measurement results for
   1523 	 * one or more peers, reported by the
   1524 	 * QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT event.
   1525 	 * See enum qca_wlan_vendor_attr_peer_result for list of supported
   1526 	 * attributes.
   1527 	 */
   1528 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEER_RESULTS = 17,
   1529 	/* Flag attribute for enabling or disabling responder functionality. */
   1530 	QCA_WLAN_VENDOR_ATTR_FTM_RESPONDER_ENABLE = 18,
   1531 	/* Used in the QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
   1532 	 * command to specify the LCI report that will be sent by
   1533 	 * the responder during a measurement exchange. The format is
   1534 	 * defined in IEEE P802.11-REVmc/D7.0, 9.4.2.22.10.
   1535 	 */
   1536 	QCA_WLAN_VENDOR_ATTR_FTM_LCI = 19,
   1537 	/* Used in the QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
   1538 	 * command to specify the location civic report that will
   1539 	 * be sent by the responder during a measurement exchange.
   1540 	 * The format is defined in IEEE P802.11-REVmc/D7.0, 9.4.2.22.13.
   1541 	 */
   1542 	QCA_WLAN_VENDOR_ATTR_FTM_LCR = 20,
   1543 	/* Session/measurement completion status code,
   1544 	 * reported in QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE and
   1545 	 * QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT
   1546 	 * see enum qca_vendor_attr_loc_session_status.
   1547 	 */
   1548 	QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS = 21,
   1549 	/* Initial dialog token used by responder (0 if not specified),
   1550 	 * unsigned 8 bit value.
   1551 	 */
   1552 	QCA_WLAN_VENDOR_ATTR_FTM_INITIAL_TOKEN = 22,
   1553 	/* AOA measurement type. Requested in QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS
   1554 	 * and optionally in QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION if
   1555 	 * AOA measurements are needed as part of an FTM session.
   1556 	 * Reported by QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT. See
   1557 	 * enum qca_wlan_vendor_attr_aoa_type.
   1558 	 */
   1559 	QCA_WLAN_VENDOR_ATTR_AOA_TYPE = 23,
   1560 	/* A bit mask (unsigned 32 bit value) of antenna arrays used
   1561 	 * by indoor location measurements. Refers to the antenna
   1562 	 * arrays described by QCA_VENDOR_ATTR_LOC_CAPA_ANTENNA_ARRAYS.
   1563 	 */
   1564 	QCA_WLAN_VENDOR_ATTR_LOC_ANTENNA_ARRAY_MASK = 24,
   1565 	/* AOA measurement data. Its contents depends on the AOA measurement
   1566 	 * type and antenna array mask:
   1567 	 * QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE: array of U16 values,
   1568 	 * phase of the strongest CIR path for each antenna in the measured
   1569 	 * array(s).
   1570 	 * QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP: array of 2 U16
   1571 	 * values, phase and amplitude of the strongest CIR path for each
   1572 	 * antenna in the measured array(s).
   1573 	 */
   1574 	QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT = 25,
   1575 	/* Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
   1576 	 * to specify the chain number (unsigned 32 bit value) to inquire
   1577 	 * the corresponding antenna RSSI value
   1578 	 */
   1579 	QCA_WLAN_VENDOR_ATTR_CHAIN_INDEX = 26,
   1580 	/* Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
   1581 	 * to report the specific antenna RSSI value (unsigned 32 bit value)
   1582 	 */
   1583 	QCA_WLAN_VENDOR_ATTR_CHAIN_RSSI = 27,
   1584 	/* Frequency in MHz, various uses. Unsigned 32 bit value */
   1585 	QCA_WLAN_VENDOR_ATTR_FREQ = 28,
   1586 	/* TSF timer value, unsigned 64 bit value.
   1587 	 * May be returned by various commands.
   1588 	 */
   1589 	QCA_WLAN_VENDOR_ATTR_TSF = 29,
   1590 	/* DMG RF sector index, unsigned 16 bit number. Valid values are
   1591 	 * 0..127 for sector indices or 65535 as special value used to
   1592 	 * unlock sector selection in
   1593 	 * QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SELECTED_SECTOR.
   1594 	 */
   1595 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX = 30,
   1596 	/* DMG RF sector type, unsigned 8 bit value. One of the values
   1597 	 * in enum qca_wlan_vendor_attr_dmg_rf_sector_type.
   1598 	 */
   1599 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE = 31,
   1600 	/* Bitmask of DMG RF modules for which information is requested. Each
   1601 	 * bit corresponds to an RF module with the same index as the bit
   1602 	 * number. Unsigned 32 bit number but only low 8 bits can be set since
   1603 	 * all DMG chips currently have up to 8 RF modules.
   1604 	 */
   1605 	QCA_WLAN_VENDOR_ATTR_DMG_RF_MODULE_MASK = 32,
   1606 	/* Array of nested attributes where each entry is DMG RF sector
   1607 	 * configuration for a single RF module.
   1608 	 * Attributes for each entry are taken from enum
   1609 	 * qca_wlan_vendor_attr_dmg_rf_sector_cfg.
   1610 	 * Specified in QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SECTOR_CFG
   1611 	 * and returned by QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SECTOR_CFG.
   1612 	 */
   1613 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG = 33,
   1614 	/* Used in QCA_NL80211_VENDOR_SUBCMD_STATS_EXT command
   1615 	 * to report frame aggregation statistics to userspace.
   1616 	 */
   1617 	QCA_WLAN_VENDOR_ATTR_RX_AGGREGATION_STATS_HOLES_NUM = 34,
   1618 	QCA_WLAN_VENDOR_ATTR_RX_AGGREGATION_STATS_HOLES_INFO = 35,
   1619 	/* Unsigned 8-bit value representing MBO transition reason code as
   1620 	 * provided by the AP used by subcommand
   1621 	 * QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS. This is
   1622 	 * specified by the userspace in the request to the driver.
   1623 	 */
   1624 	QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON = 36,
   1625 	/* Array of nested attributes, BSSID and status code, used by subcommand
   1626 	 * QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS, where each
   1627 	 * entry is taken from enum qca_wlan_vendor_attr_btm_candidate_info.
   1628 	 * The userspace space specifies the list/array of candidate BSSIDs in
   1629 	 * the order of preference in the request. The driver specifies the
   1630 	 * status code, for each BSSID in the list, in the response. The
   1631 	 * acceptable candidates are listed in the order preferred by the
   1632 	 * driver.
   1633 	 */
   1634 	QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO = 37,
   1635 	/* Used in QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT command
   1636 	 * See enum qca_wlan_vendor_attr_brp_ant_limit_mode.
   1637 	 */
   1638 	QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE = 38,
   1639 	/* Used in QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT command
   1640 	 * to define the number of antennas to use for BRP.
   1641 	 * different purpose in each ANT_LIMIT_MODE:
   1642 	 * DISABLE - ignored
   1643 	 * EFFECTIVE - upper limit to number of antennas to be used
   1644 	 * FORCE - exact number of antennas to be used
   1645 	 * unsigned 8 bit value
   1646 	 */
   1647 	QCA_WLAN_VENDOR_ATTR_BRP_ANT_NUM_LIMIT = 39,
   1648 	/* Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
   1649 	 * to report the corresponding antenna index to the chain RSSI value
   1650 	 */
   1651 	QCA_WLAN_VENDOR_ATTR_ANTENNA_INFO = 40,
   1652 	/* Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command to report
   1653 	 * the specific antenna EVM value (unsigned 32 bit value). With a
   1654 	 * determinate group of antennas, the driver specifies the EVM value
   1655 	 * for each antenna ID, and application extract them in user space.
   1656 	 */
   1657 	QCA_WLAN_VENDOR_ATTR_CHAIN_EVM = 41,
   1658 	/*
   1659 	 * Used in QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE command to report
   1660 	 * wlan firmware current state. FW state is an unsigned 8 bit value,
   1661 	 * one of the values in enum qca_wlan_vendor_attr_fw_state.
   1662 	 */
   1663 	QCA_WLAN_VENDOR_ATTR_FW_STATE = 42,
   1664 
   1665 	/* Unsigned 32-bitmask value from enum qca_set_band. Substitutes the
   1666 	 * attribute QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE for which only a subset
   1667 	 * of single values from enum qca_set_band are valid. This attribute
   1668 	 * uses bitmask combinations to define the respective allowed band
   1669 	 * combinations and this attributes takes precedence over
   1670 	 * QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE if both attributes are included.
   1671 	 */
   1672 	QCA_WLAN_VENDOR_ATTR_SETBAND_MASK = 43,
   1673 
   1674 	/* Unsigned 8-bit used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES.
   1675 	 * This field describes the maximum number of links supported by the
   1676 	 * chip for MLO association.
   1677 	 * This is an optional attribute.
   1678 	 */
   1679 	QCA_WLAN_VENDOR_ATTR_MLO_CAPABILITY_MAX_ASSOCIATION_COUNT = 44,
   1680 
   1681 	/* Unsigned 8-bit used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES.
   1682 	 * This field describes the maximum number of Simultaneous Transmit
   1683 	 * and Receive (STR) links used in Multi-Link Operation.
   1684 	 * The maximum number of STR links used can be different
   1685 	 * from the maximum number of radios supported by the chip.
   1686 	 * This is a static configuration of the chip.
   1687 	 * This is an optional attribute.
   1688 	 */
   1689 	QCA_WLAN_VENDOR_ATTR_MLO_CAPABILITY_MAX_STR_LINK_COUNT = 45,
   1690 
   1691 	/* keep last */
   1692 	QCA_WLAN_VENDOR_ATTR_AFTER_LAST,
   1693 	QCA_WLAN_VENDOR_ATTR_MAX	= QCA_WLAN_VENDOR_ATTR_AFTER_LAST - 1,
   1694 };
   1695 
   1696 /**
   1697  * enum qca_roaming_policy - Represents the policies for roaming. Used by
   1698  * QCA_WLAN_VENDOR_ATTR_ROAMING_POLICY.
   1699  *
   1700  * QCA_ROAMING_NOT_ALLOWED: Roaming is not allowed/disabled.
   1701  *
   1702  * QCA_ROAMING_ALLOWED_WITHIN_ESS: Roaming is allowed with in an ESS with
   1703  * default RSSI thresholds.
   1704  *
   1705  * QCA_ROAMING_MODE_AGGRESSIVE: This mode is an extension of
   1706  * QCA_ROAMING_ALLOWED_WITHIN_ESS. The driver/firmware roams on higher RSSI
   1707  * thresholds when compared to QCA_ROAMING_ALLOWED_WITHIN_ESS.
   1708  */
   1709 enum qca_roaming_policy {
   1710 	QCA_ROAMING_NOT_ALLOWED,
   1711 	QCA_ROAMING_ALLOWED_WITHIN_ESS,
   1712 	QCA_ROAMING_MODE_AGGRESSIVE,
   1713 };
   1714 
   1715 /**
   1716  * enum qca_roam_reason - Represents the reason codes for roaming. Used by
   1717  * QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REASON.
   1718  *
   1719  * @QCA_ROAM_REASON_UNKNOWN: Any reason that do not classify under the below
   1720  * reasons.
   1721  *
   1722  * @QCA_ROAM_REASON_PER: Roam triggered when packet error rates (PER) breached
   1723  * the configured threshold.
   1724  *
   1725  * @QCA_ROAM_REASON_BEACON_MISS: Roam triggered due to the continuous configured
   1726  * beacon misses from the then connected AP.
   1727  *
   1728  * @QCA_ROAM_REASON_POOR_RSSI: Roam triggered due to the poor RSSI reported
   1729  * by the connected AP.
   1730  *
   1731  * @QCA_ROAM_REASON_BETTER_RSSI: Roam triggered for finding a BSS with a better
   1732  * RSSI than the connected BSS. Here the RSSI of the current BSS is not poor.
   1733  *
   1734  * @QCA_ROAM_REASON_CONGESTION: Roam triggered considering the connected channel
   1735  * or environment being very noisy or congested.
   1736  *
   1737  * @QCA_ROAM_REASON_USER_TRIGGER: Roam triggered due to an explicit request
   1738  * from the user (user space).
   1739  *
   1740  * @QCA_ROAM_REASON_BTM: Roam triggered due to BTM Request frame received from
   1741  * the connected AP.
   1742  *
   1743  * @QCA_ROAM_REASON_BSS_LOAD: Roam triggered due to the channel utilization
   1744  * breaching out the configured threshold.
   1745  *
   1746  * @QCA_ROAM_REASON_WTC: Roam triggered due to Wireless to Cellular BSS
   1747  * transition request.
   1748  *
   1749  * @QCA_ROAM_REASON_IDLE: Roam triggered when device is suspended, there is no
   1750  * data activity with the AP and the current RSSI falls below a certain
   1751  * threshold.
   1752  *
   1753  * @QCA_ROAM_REASON_DISCONNECTION: Roam triggered due to Deauthentication or
   1754  * Disassociation frames received from the connected AP.
   1755  *
   1756  * @QCA_ROAM_REASON_PERIODIC_TIMER: Roam triggered as part of the periodic scan
   1757  * that happens when there is no candidate AP found during the poor RSSI scan
   1758  * trigger.
   1759  *
   1760  * @QCA_ROAM_REASON_BACKGROUND_SCAN: Roam triggered based on the scan results
   1761  * obtained from an external scan (not aimed at roaming).
   1762  *
   1763  * @QCA_ROAM_REASON_BT_ACTIVITY: Roam triggered due to Bluetooth connection is
   1764  * established when the station is connected in the 2.4 GHz band.
   1765  *
   1766  * @QCA_ROAM_REASON_STA_KICKOUT: Roam triggered due to continuous TX Data frame
   1767  * failures to the connected AP.
   1768  */
   1769 enum qca_roam_reason {
   1770 	QCA_ROAM_REASON_UNKNOWN,
   1771 	QCA_ROAM_REASON_PER,
   1772 	QCA_ROAM_REASON_BEACON_MISS,
   1773 	QCA_ROAM_REASON_POOR_RSSI,
   1774 	QCA_ROAM_REASON_BETTER_RSSI,
   1775 	QCA_ROAM_REASON_CONGESTION,
   1776 	QCA_ROAM_REASON_USER_TRIGGER,
   1777 	QCA_ROAM_REASON_BTM,
   1778 	QCA_ROAM_REASON_BSS_LOAD,
   1779 	QCA_ROAM_REASON_WTC,
   1780 	QCA_ROAM_REASON_IDLE,
   1781 	QCA_ROAM_REASON_DISCONNECTION,
   1782 	QCA_ROAM_REASON_PERIODIC_TIMER,
   1783 	QCA_ROAM_REASON_BACKGROUND_SCAN,
   1784 	QCA_ROAM_REASON_BT_ACTIVITY,
   1785 	QCA_ROAM_REASON_STA_KICKOUT,
   1786 };
   1787 
   1788 enum qca_wlan_vendor_attr_roam_auth {
   1789 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_INVALID = 0,
   1790 	/* Indicates BSSID of the roamed AP for non-MLO roaming and MLD address
   1791 	 * of the roamed AP for MLO roaming.
   1792 	 */
   1793 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_BSSID,
   1794 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REQ_IE,
   1795 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RESP_IE,
   1796 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AUTHORIZED,
   1797 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_KEY_REPLAY_CTR,
   1798 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KCK,
   1799 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KEK,
   1800 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_SUBNET_STATUS,
   1801 	/* Indicates the status of re-association requested by user space for
   1802 	 * the BSSID specified by QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_BSSID.
   1803 	 * Type u16.
   1804 	 * Represents the status code from AP. Use
   1805 	 * %WLAN_STATUS_UNSPECIFIED_FAILURE if the device cannot give you the
   1806 	 * real status code for failures.
   1807 	 */
   1808 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_STATUS,
   1809 	/* This attribute indicates that the old association was maintained when
   1810 	 * a re-association is requested by user space and that re-association
   1811 	 * attempt fails (i.e., cannot connect to the requested BSS, but can
   1812 	 * remain associated with the BSS with which the association was in
   1813 	 * place when being requested to roam). Used along with
   1814 	 * WLAN_VENDOR_ATTR_ROAM_AUTH_STATUS to indicate the current
   1815 	 * re-association status. Type flag.
   1816 	 * This attribute is applicable only for re-association failure cases.
   1817 	 */
   1818 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RETAIN_CONNECTION,
   1819 	/* This attribute specifies the PMK if one was newly generated during
   1820 	 * FILS roaming. This is added to the PMKSA cache and is used in
   1821 	 * subsequent connections with PMKSA caching.
   1822 	 */
   1823 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMK = 11,
   1824 	/* This attribute specifies the PMKID used/generated for the current
   1825 	 * FILS roam. This is used in subsequent connections with PMKSA caching.
   1826 	 */
   1827 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMKID = 12,
   1828 	/* A 16-bit unsigned value specifying the next sequence number to use
   1829 	 * in ERP message in the currently associated realm. This is used in
   1830 	 * doing subsequent ERP based connections in the same realm.
   1831 	 */
   1832 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_FILS_ERP_NEXT_SEQ_NUM = 13,
   1833 	/* A 16-bit unsigned value representing the reasons for the roaming.
   1834 	 * Defined by enum qca_roam_reason.
   1835 	 */
   1836 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REASON = 14,
   1837 	/* A nested attribute containing per-link information of all the links
   1838 	 * of MLO connection done while roaming. The attributes used inside this
   1839 	 * nested attribute are defined in enum qca_wlan_vendor_attr_mlo_links.
   1840 	 */
   1841 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_MLO_LINKS = 15,
   1842 
   1843 	/* keep last */
   1844 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AFTER_LAST,
   1845 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_MAX =
   1846 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AFTER_LAST - 1
   1847 };
   1848 
   1849 enum qca_wlan_vendor_attr_p2p_listen_offload {
   1850 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INVALID = 0,
   1851 	/* A 32-bit unsigned value; the P2P listen frequency (MHz); must be one
   1852 	 * of the social channels.
   1853 	 */
   1854 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CHANNEL,
   1855 	/* A 32-bit unsigned value; the P2P listen offload period (ms).
   1856 	 */
   1857 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_PERIOD,
   1858 	/* A 32-bit unsigned value; the P2P listen interval duration (ms).
   1859 	 */
   1860 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INTERVAL,
   1861 	/* A 32-bit unsigned value; number of interval times the firmware needs
   1862 	 * to run the offloaded P2P listen operation before it stops.
   1863 	 */
   1864 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_COUNT,
   1865 	/* An array of arbitrary binary data with one or more 8-byte values.
   1866 	 * The device types include both primary and secondary device types.
   1867 	 */
   1868 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_DEVICE_TYPES,
   1869 	/* An array of unsigned 8-bit characters; vendor information elements.
   1870 	 */
   1871 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_VENDOR_IE,
   1872 	/* A 32-bit unsigned value; a control flag to indicate whether listen
   1873 	 * results need to be flushed to wpa_supplicant.
   1874 	 */
   1875 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CTRL_FLAG,
   1876 	/* A 8-bit unsigned value; reason code for P2P listen offload stop
   1877 	 * event.
   1878 	 */
   1879 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_STOP_REASON,
   1880 	/* keep last */
   1881 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST,
   1882 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_MAX =
   1883 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST - 1
   1884 };
   1885 
   1886 /**
   1887  * enum qca_wlan_vendor_attr_acs_offload - Defines attributes to be used with
   1888  * vendor command/event QCA_NL80211_VENDOR_SUBCMD_DO_ACS.
   1889  *
   1890  * @QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL: Required (u8).
   1891  * Used with event to notify the primary channel number selected in ACS
   1892  * operation.
   1893  * Note: If both the driver and user-space application supports the 6 GHz band,
   1894  * QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL is deprecated; use
   1895  * QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY instead.
   1896  * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL
   1897  * is still used if either of the driver or user space application doesn't
   1898  * support the 6 GHz band.
   1899  *
   1900  * @QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL: Required (u8).
   1901  * Used with event to notify the secondary channel number selected in ACS
   1902  * operation.
   1903  * Note: If both the driver and user-space application supports the 6 GHz band,
   1904  * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL is deprecated; use
   1905  * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY instead.
   1906  * To maintain backward compatibility,
   1907  * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL is still used if either of
   1908  * the driver or user space application doesn't support 6 GHz band.
   1909  *
   1910  * @QCA_WLAN_VENDOR_ATTR_ACS_HW_MODE: Required (u8).
   1911  * (a) Used with command to configure hw_mode from
   1912  * enum qca_wlan_vendor_acs_hw_mode for ACS operation.
   1913  * (b) Also used with event to notify the hw_mode of selected primary channel
   1914  * in ACS operation.
   1915  *
   1916  * @QCA_WLAN_VENDOR_ATTR_ACS_HT_ENABLED: Flag attribute.
   1917  * Used with command to configure ACS operation for HT mode.
   1918  * Disable (flag attribute not present) - HT disabled and
   1919  * Enable (flag attribute present) - HT enabled.
   1920  *
   1921  * @QCA_WLAN_VENDOR_ATTR_ACS_HT40_ENABLED: Flag attribute.
   1922  * Used with command to configure ACS operation for HT40 mode.
   1923  * Disable (flag attribute not present) - HT40 disabled and
   1924  * Enable (flag attribute present) - HT40 enabled.
   1925  *
   1926  * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_ENABLED: Flag attribute.
   1927  * Used with command to configure ACS operation for VHT mode.
   1928  * Disable (flag attribute not present) - VHT disabled and
   1929  * Enable (flag attribute present) - VHT enabled.
   1930  *
   1931  * @QCA_WLAN_VENDOR_ATTR_ACS_CHWIDTH: Optional (u16) with command and
   1932  * mandatory with event.
   1933  * If specified in command path, ACS operation is configured with the given
   1934  * channel width (in MHz).
   1935  * In event path, specifies the channel width of the primary channel selected.
   1936  *
   1937  * @QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST: Required and type is NLA_UNSPEC.
   1938  * Used with command to configure channel list using an array of
   1939  * channel numbers (u8).
   1940  * Note: If both the driver and user-space application supports the 6 GHz band,
   1941  * the driver mandates use of QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST whereas
   1942  * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST is optional.
   1943  *
   1944  * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL: Required (u8).
   1945  * Used with event to notify the VHT segment 0 center channel number selected in
   1946  * ACS operation. The value is the index of the channel center frequency for
   1947  * 20 MHz, 40 MHz, and 80 MHz channels. The value is the center frequency index
   1948  * of the primary 80 MHz segment for 160 MHz and 80+80 MHz channels.
   1949  * Note: If both the driver and user-space application supports the 6 GHz band,
   1950  * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL is deprecated; use
   1951  * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY instead.
   1952  * To maintain backward compatibility,
   1953  * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL is still used if either of
   1954  * the driver or user space application doesn't support the 6 GHz band.
   1955  *
   1956  * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL: Required (u8).
   1957  * Used with event to notify the VHT segment 1 center channel number selected in
   1958  * ACS operation. The value is zero for 20 MHz, 40 MHz, and 80 MHz channels.
   1959  * The value is the index of the channel center frequency for 160 MHz channels
   1960  * and the center frequency index of the secondary 80 MHz segment for 80+80 MHz
   1961  * channels.
   1962  * Note: If both the driver and user-space application supports the 6 GHz band,
   1963  * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL is deprecated; use
   1964  * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY instead.
   1965  * To maintain backward compatibility,
   1966  * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL is still used if either of
   1967  * the driver or user space application doesn't support the 6 GHz band.
   1968  *
   1969  * @QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST: Required and type is NLA_UNSPEC.
   1970  * Used with command to configure the channel list using an array of channel
   1971  * center frequencies in MHz (u32).
   1972  * Note: If both the driver and user-space application supports the 6 GHz band,
   1973  * the driver first parses the frequency list and if it fails to get a frequency
   1974  * list, parses the channel list specified using
   1975  * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST (considers only 2 GHz and 5 GHz channels in
   1976  * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST).
   1977  *
   1978  * @QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY: Required (u32).
   1979  * Used with event to notify the primary channel center frequency (MHz) selected
   1980  * in ACS operation.
   1981  * Note: If the driver supports the 6 GHz band, the event sent from the driver
   1982  * includes this attribute along with QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL.
   1983  *
   1984  * @QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY: Required (u32).
   1985  * Used with event to notify the secondary channel center frequency (MHz)
   1986  * selected in ACS operation.
   1987  * Note: If the driver supports the 6 GHz band, the event sent from the driver
   1988  * includes this attribute along with
   1989  * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL.
   1990  *
   1991  * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY: Required (u32).
   1992  * Used with event to notify the VHT segment 0 center channel frequency (MHz)
   1993  * selected in ACS operation.
   1994  * Note: If the driver supports the 6 GHz band, the event sent from the driver
   1995  * includes this attribute along with
   1996  * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL.
   1997  *
   1998  * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY: Required (u32).
   1999  * Used with event to notify the VHT segment 1 center channel frequency (MHz)
   2000  * selected in ACS operation.
   2001  * Note: If the driver supports the 6 GHz band, the event sent from the driver
   2002  * includes this attribute along with
   2003  * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL.
   2004  *
   2005  * @QCA_WLAN_VENDOR_ATTR_ACS_EDMG_ENABLED: Flag attribute.
   2006  * Used with command to notify the driver of EDMG request for ACS
   2007  * operation.
   2008  *
   2009  * @QCA_WLAN_VENDOR_ATTR_ACS_EDMG_CHANNEL: Optional (u8).
   2010  * Used with event to notify the EDMG channel number selected in ACS
   2011  * operation.
   2012  * EDMG primary channel is indicated by QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL
   2013  *
   2014  * @QCA_WLAN_VENDOR_ATTR_ACS_PUNCTURE_BITMAP: Optional (u16).
   2015  * Used with event to notify the puncture pattern selected in ACS operation.
   2016  * Encoding for this attribute will follow the convention used in the Disabled
   2017  * Subchannel Bitmap field of the EHT Operation IE.
   2018  *
   2019  * @QCA_WLAN_VENDOR_ATTR_ACS_EHT_ENABLED: Flag attribute.
   2020  * Used with command to configure ACS operation for EHT mode.
   2021  * Disable (flag attribute not present) - EHT disabled and
   2022  * Enable (flag attribute present) - EHT enabled.
   2023  *
   2024  * @QCA_WLAN_VENDOR_ATTR_ACS_LAST_SCAN_AGEOUT_TIME: Optional (u32).
   2025  * Used with command to configure how older scan can be considered for ACS
   2026  * scoring. In case scan was performed on a partial set of channels configured
   2027  * with this command within last QCA_WLAN_VENDOR_ATTR_ACS_LAST_SCAN_AGEOUT_TIME
   2028  * (in ms), scan only the remaining channels.
   2029  *
   2030  * @QCA_WLAN_VENDOR_ATTR_ACS_LINK_ID: Mandatory on AP MLD (u8).
   2031  * Used with command to configure ACS operation for a specific link affiliated
   2032  * to an AP MLD.
   2033  *
   2034  */
   2035 enum qca_wlan_vendor_attr_acs_offload {
   2036 	QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_INVALID = 0,
   2037 	QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL = 1,
   2038 	QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL = 2,
   2039 	QCA_WLAN_VENDOR_ATTR_ACS_HW_MODE = 3,
   2040 	QCA_WLAN_VENDOR_ATTR_ACS_HT_ENABLED = 4,
   2041 	QCA_WLAN_VENDOR_ATTR_ACS_HT40_ENABLED = 5,
   2042 	QCA_WLAN_VENDOR_ATTR_ACS_VHT_ENABLED = 6,
   2043 	QCA_WLAN_VENDOR_ATTR_ACS_CHWIDTH = 7,
   2044 	QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST = 8,
   2045 	QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL = 9,
   2046 	QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL = 10,
   2047 	QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST = 11,
   2048 	QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY = 12,
   2049 	QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY = 13,
   2050 	QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY = 14,
   2051 	QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY = 15,
   2052 	QCA_WLAN_VENDOR_ATTR_ACS_EDMG_ENABLED = 16,
   2053 	QCA_WLAN_VENDOR_ATTR_ACS_EDMG_CHANNEL = 17,
   2054 	QCA_WLAN_VENDOR_ATTR_ACS_PUNCTURE_BITMAP = 18,
   2055 	QCA_WLAN_VENDOR_ATTR_ACS_EHT_ENABLED = 19,
   2056 	QCA_WLAN_VENDOR_ATTR_ACS_LAST_SCAN_AGEOUT_TIME = 20,
   2057 	QCA_WLAN_VENDOR_ATTR_ACS_LINK_ID = 21,
   2058 
   2059 	/* keep last */
   2060 	QCA_WLAN_VENDOR_ATTR_ACS_AFTER_LAST,
   2061 	QCA_WLAN_VENDOR_ATTR_ACS_MAX =
   2062 	QCA_WLAN_VENDOR_ATTR_ACS_AFTER_LAST - 1
   2063 };
   2064 
   2065 /**
   2066  * enum qca_wlan_vendor_acs_hw_mode - Defines HW mode to be used with the
   2067  * vendor command/event QCA_NL80211_VENDOR_SUBCMD_DO_ACS.
   2068  *
   2069  * @QCA_ACS_MODE_IEEE80211B: 802.11b mode
   2070  * @QCA_ACS_MODE_IEEE80211G: 802.11g mode
   2071  * @QCA_ACS_MODE_IEEE80211A: 802.11a mode
   2072  * @QCA_ACS_MODE_IEEE80211AD: 802.11ad mode
   2073  * @QCA_ACS_MODE_IEEE80211ANY: all modes
   2074  * @QCA_ACS_MODE_IEEE80211AX: 802.11ax mode
   2075  */
   2076 enum qca_wlan_vendor_acs_hw_mode {
   2077 	QCA_ACS_MODE_IEEE80211B,
   2078 	QCA_ACS_MODE_IEEE80211G,
   2079 	QCA_ACS_MODE_IEEE80211A,
   2080 	QCA_ACS_MODE_IEEE80211AD,
   2081 	QCA_ACS_MODE_IEEE80211ANY,
   2082 	QCA_ACS_MODE_IEEE80211AX,
   2083 };
   2084 
   2085 /**
   2086  * enum qca_wlan_vendor_features - Vendor device/driver feature flags
   2087  *
   2088  * @QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD: Device supports key
   2089  *	management offload, a mechanism where the station's firmware
   2090  *	does the exchange with the AP to establish the temporal keys
   2091  *	after roaming, rather than having the user space wpa_supplicant do it.
   2092  * @QCA_WLAN_VENDOR_FEATURE_SUPPORT_HW_MODE_ANY: Device supports automatic
   2093  *	band selection based on channel selection results.
   2094  * @QCA_WLAN_VENDOR_FEATURE_OFFCHANNEL_SIMULTANEOUS: Device supports
   2095  *	simultaneous off-channel operations.
   2096  * @QCA_WLAN_VENDOR_FEATURE_P2P_LISTEN_OFFLOAD: Device supports P2P
   2097  *	Listen offload; a mechanism where the station's firmware takes care of
   2098  *	responding to incoming Probe Request frames received from other P2P
   2099  *	Devices whilst in Listen state, rather than having the user space
   2100  *	wpa_supplicant do it. Information from received P2P requests are
   2101  *	forwarded from firmware to host whenever the host processor wakes up.
   2102  * @QCA_WLAN_VENDOR_FEATURE_OCE_STA: Device supports all OCE non-AP STA
   2103  *	specific features.
   2104  * @QCA_WLAN_VENDOR_FEATURE_OCE_AP: Device supports all OCE AP specific
   2105  *	features.
   2106  * @QCA_WLAN_VENDOR_FEATURE_OCE_STA_CFON: Device supports OCE STA-CFON
   2107  *	specific features only. If a Device sets this bit but not the
   2108  *	%QCA_WLAN_VENDOR_FEATURE_OCE_AP, the userspace shall assume that
   2109  *	this Device may not support all OCE AP functionalities but can support
   2110  *	only OCE STA-CFON functionalities.
   2111  * @QCA_WLAN_VENDOR_FEATURE_SELF_MANAGED_REGULATORY: Device supports self
   2112  *	managed regulatory.
   2113  * @QCA_WLAN_VENDOR_FEATURE_TWT: Device supports TWT (Target Wake Time).
   2114  * @QCA_WLAN_VENDOR_FEATURE_11AX: Device supports 802.11ax (HE)
   2115  * @QCA_WLAN_VENDOR_FEATURE_6GHZ_SUPPORT: Device supports 6 GHz band operation
   2116  * @QCA_WLAN_VENDOR_FEATURE_THERMAL_CONFIG: Device is capable of receiving
   2117  *	and applying thermal configuration through
   2118  *	%QCA_WLAN_VENDOR_ATTR_THERMAL_LEVEL and
   2119  *	%QCA_WLAN_VENDOR_ATTR_THERMAL_COMPLETION_WINDOW attributes from
   2120  *	userspace.
   2121  * @QCA_WLAN_VENDOR_FEATURE_ADAPTIVE_11R: Device supports Adaptive 11r.
   2122  *	With Adaptive 11r feature, access points advertise the vendor
   2123  *	specific IEs and MDE but do not include FT AKM in the RSNE.
   2124  *	The Adaptive 11r supported stations are expected to identify
   2125  *	such vendor specific IEs and connect to the AP in FT mode though
   2126  *	the profile is configured in non-FT mode.
   2127  *	The driver-based SME cases also need to have this support for
   2128  *	Adaptive 11r to handle the connection and roaming scenarios.
   2129  *	This flag indicates the support for the same to the user space.
   2130  * @QCA_WLAN_VENDOR_FEATURE_CONCURRENT_BAND_SESSIONS: Device supports
   2131  *	concurrent network sessions on different Wi-Fi bands. This feature
   2132  *	capability is attributed to the hardware's capability to support
   2133  *	the same (e.g., DBS).
   2134  * @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT: Flag indicating whether the
   2135  *	responses for the respective TWT operations are asynchronous (separate
   2136  *	event message) from the driver. If not specified, the responses are
   2137  *	synchronous (in vendor command reply) to the request. Each TWT
   2138  *	operation is specifically mentioned (against its respective
   2139  *	documentation) to support either of these or both modes.
   2140  * @QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI: Flag indicates
   2141  *	that the driver requires add/del virtual interface path using the
   2142  *	generic nl80211 commands for NDP interface create/delete and to
   2143  *	register/unregister the netdev instead of creating/deleting the NDP
   2144  *	interface using the vendor commands
   2145  *	QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_CREATE and
   2146  *	QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_DELETE. With the latest kernel
   2147  *	(5.12 version onward), interface creation/deletion is not allowed using
   2148  *	vendor commands as it leads to a deadlock while acquiring the RTNL_LOCK
   2149  *	during the register/unregister of netdev. Create and delete NDP
   2150  *	interface using NL80211_CMD_NEW_INTERFACE and NL80211_CMD_DEL_INTERFACE
   2151  *	commands respectively if the driver advertises this capability set.
   2152  * @QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_STA: Flag indicates that the device in
   2153  *	station mode supports secure LTF. If NL80211_EXT_FEATURE_SECURE_LTF is
   2154  *	set, then QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_STA will be ignored.
   2155  * @QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_AP: Flag indicates that the device in AP
   2156  *	mode supports secure LTF. If NL80211_EXT_FEATURE_SECURE_LTF is set, then
   2157  *	QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_AP will be ignored.
   2158  * @QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_STA: Flag indicates that the device in
   2159  *	station mode supports secure RTT measurement exchange. If
   2160  *	NL80211_EXT_FEATURE_SECURE_RTT is set,
   2161  *	QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_STA will be ignored.
   2162  * @QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_AP: Flag indicates that the device in AP
   2163  *	mode supports secure RTT measurement exchange. If
   2164  *	NL80211_EXT_FEATURE_SECURE_RTT is set,
   2165  *	QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_AP will be ignored.
   2166  * @QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_STA: Flag indicates that
   2167  *	the device in station mode supports protection of range negotiation and
   2168  *	measurement management frames. If
   2169  *	NL80211_EXT_FEATURE_PROT_RANGE_NEGO_AND_MEASURE is set, then
   2170  *	QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_STA will be ignored.
   2171  * @QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_AP: Flag indicates that
   2172  *	the device in AP mode supports protection of range negotiation and
   2173  *	measurement management frames. If
   2174  *	NL80211_EXT_FEATURE_PROT_RANGE_NEGO_AND_MEASURE is set, then
   2175  *	QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_AP will be ignored.
   2176  * @QCA_WLAN_VENDOR_FEATURE_AP_ALLOWED_FREQ_LIST: Flag indicates that the device
   2177  *	in AP mode supports configuring allowed frequency list for AP operation
   2178  *	with %QCA_WLAN_VENDOR_ATTR_CONFIG_AP_ALLOWED_FREQ_LIST.
   2179  * @QCA_WLAN_VENDOR_FEATURE_ENHANCED_AUDIO_EXPERIENCE_OVER_WLAN: Flag indicates
   2180  *	that the device supports enhanced audio experience over WLAN feature.
   2181  * @QCA_WLAN_VENDOR_FEATURE_HT_VHT_TWT_RESPONDER: Flag indicates that the device
   2182  *	in AP mode supports TWT responder mode in HT and VHT modes.
   2183  * @NUM_QCA_WLAN_VENDOR_FEATURES: Number of assigned feature bits
   2184  */
   2185 enum qca_wlan_vendor_features {
   2186 	QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD	= 0,
   2187 	QCA_WLAN_VENDOR_FEATURE_SUPPORT_HW_MODE_ANY     = 1,
   2188 	QCA_WLAN_VENDOR_FEATURE_OFFCHANNEL_SIMULTANEOUS = 2,
   2189 	QCA_WLAN_VENDOR_FEATURE_P2P_LISTEN_OFFLOAD	= 3,
   2190 	QCA_WLAN_VENDOR_FEATURE_OCE_STA                 = 4,
   2191 	QCA_WLAN_VENDOR_FEATURE_OCE_AP                  = 5,
   2192 	QCA_WLAN_VENDOR_FEATURE_OCE_STA_CFON            = 6,
   2193 	QCA_WLAN_VENDOR_FEATURE_SELF_MANAGED_REGULATORY = 7,
   2194 	QCA_WLAN_VENDOR_FEATURE_TWT			= 8,
   2195 	QCA_WLAN_VENDOR_FEATURE_11AX			= 9,
   2196 	QCA_WLAN_VENDOR_FEATURE_6GHZ_SUPPORT		= 10,
   2197 	QCA_WLAN_VENDOR_FEATURE_THERMAL_CONFIG		= 11,
   2198 	QCA_WLAN_VENDOR_FEATURE_ADAPTIVE_11R		= 12,
   2199 	QCA_WLAN_VENDOR_FEATURE_CONCURRENT_BAND_SESSIONS = 13,
   2200 	QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT	= 14,
   2201 	QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI = 15,
   2202 	QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_STA		= 16,
   2203 	QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_AP		= 17,
   2204 	QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_STA		= 18,
   2205 	QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_AP		= 19,
   2206 	QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_STA = 20,
   2207 	QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_AP = 21,
   2208 	QCA_WLAN_VENDOR_FEATURE_AP_ALLOWED_FREQ_LIST = 22,
   2209 	QCA_WLAN_VENDOR_FEATURE_ENHANCED_AUDIO_EXPERIENCE_OVER_WLAN = 23,
   2210 	QCA_WLAN_VENDOR_FEATURE_HT_VHT_TWT_RESPONDER = 24,
   2211 	NUM_QCA_WLAN_VENDOR_FEATURES /* keep last */
   2212 };
   2213 
   2214 /**
   2215  * enum qca_wlan_vendor_attr_data_offload_ind - Vendor Data Offload Indication
   2216  *
   2217  * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_SESSION: Session corresponding to
   2218  *	the offloaded data.
   2219  * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_PROTOCOL: Protocol of the offloaded
   2220  *	data.
   2221  * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_EVENT: Event type for the data offload
   2222  *	indication.
   2223  */
   2224 enum qca_wlan_vendor_attr_data_offload_ind {
   2225 	QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_INVALID = 0,
   2226 	QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_SESSION,
   2227 	QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_PROTOCOL,
   2228 	QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_EVENT,
   2229 
   2230 	/* keep last */
   2231 	QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_AFTER_LAST,
   2232 	QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_MAX =
   2233 	QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_AFTER_LAST - 1
   2234 };
   2235 
   2236 /**
   2237  * enum qca_wlan_vendor_attr_ocb_set_config - Vendor subcmd attributes to set
   2238  *	OCB config
   2239  *
   2240  * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_CHANNEL_COUNT: Number of channels in the
   2241  *	configuration
   2242  * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_SCHEDULE_SIZE: Size of the schedule
   2243  * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_CHANNEL_ARRAY: Array of channels
   2244  * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_SCHEDULE_ARRAY: Array of channels to be
   2245  *	scheduled
   2246  * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_NDL_CHANNEL_ARRAY: Array of NDL channel
   2247  *	information
   2248  * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_NDL_ACTIVE_STATE_ARRAY: Array of NDL
   2249  *	active state configuration
   2250  * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_FLAGS: Configuration flags such as
   2251  *	OCB_CONFIG_FLAG_80211_FRAME_MODE
   2252  * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_DEF_TX_PARAM: Default TX parameters to
   2253  *	use in the case that a packet is sent without a TX control header
   2254  * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_TA_MAX_DURATION: Max duration after the
   2255  *	last TA received that the local time set by TA is synchronous to other
   2256  *	communicating OCB STAs.
   2257  */
   2258 enum qca_wlan_vendor_attr_ocb_set_config {
   2259 	QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_INVALID = 0,
   2260 	QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_CHANNEL_COUNT = 1,
   2261 	QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_SCHEDULE_SIZE = 2,
   2262 	QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_CHANNEL_ARRAY = 3,
   2263 	QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_SCHEDULE_ARRAY = 4,
   2264 	QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_NDL_CHANNEL_ARRAY = 5,
   2265 	QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_NDL_ACTIVE_STATE_ARRAY = 6,
   2266 	QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_FLAGS = 7,
   2267 	QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_DEF_TX_PARAM = 8,
   2268 	QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_TA_MAX_DURATION = 9,
   2269 	QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_AFTER_LAST,
   2270 	QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_MAX =
   2271 	QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_AFTER_LAST - 1
   2272 };
   2273 
   2274 /**
   2275  * enum qca_wlan_vendor_attr_ocb_set_utc_time - Vendor subcmd attributes to set
   2276  *	UTC time
   2277  *
   2278  * @QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_VALUE: The UTC time as an array of
   2279  *	10 bytes
   2280  * @QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_ERROR: The time error as an array of
   2281  *	5 bytes
   2282  */
   2283 enum qca_wlan_vendor_attr_ocb_set_utc_time {
   2284 	QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_INVALID = 0,
   2285 	QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_VALUE = 1,
   2286 	QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_ERROR = 2,
   2287 	QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_AFTER_LAST,
   2288 	QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_MAX =
   2289 	QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_AFTER_LAST - 1
   2290 };
   2291 
   2292 /**
   2293  * enum qca_wlan_vendor_attr_ocb_start_timing_advert - Vendor subcmd attributes
   2294  *	to start sending timing advert frames
   2295  *
   2296  * @QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_CHANNEL_FREQ: Cannel frequency
   2297  *	on which to send the frames
   2298  * @QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_REPEAT_RATE: Number of times
   2299  *	the frame is sent in 5 seconds
   2300  */
   2301 enum qca_wlan_vendor_attr_ocb_start_timing_advert {
   2302 	QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_INVALID = 0,
   2303 	QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_CHANNEL_FREQ = 1,
   2304 	QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_REPEAT_RATE = 2,
   2305 	QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_AFTER_LAST,
   2306 	QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_MAX =
   2307 	QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_AFTER_LAST - 1
   2308 };
   2309 
   2310 /**
   2311  * enum qca_wlan_vendor_attr_ocb_stop_timing_advert - Vendor subcmd attributes
   2312  *	to stop timing advert
   2313  *
   2314  * @QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_CHANNEL_FREQ: The channel
   2315  *	frequency on which to stop the timing advert
   2316  */
   2317 enum qca_wlan_vendor_attr_ocb_stop_timing_advert {
   2318 	QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_INVALID = 0,
   2319 	QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_CHANNEL_FREQ = 1,
   2320 	QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_AFTER_LAST,
   2321 	QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_MAX =
   2322 	QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_AFTER_LAST - 1
   2323 };
   2324 
   2325 /**
   2326  * enum qca_wlan_vendor_attr_ocb_get_tsf_response - Vendor subcmd attributes to
   2327  *	get TSF timer value
   2328  *
   2329  * @QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_TIMER_HIGH: Higher 32 bits of the
   2330  *	timer
   2331  * @QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_TIMER_LOW: Lower 32 bits of the timer
   2332  */
   2333 enum qca_wlan_vendor_attr_ocb_get_tsf_resp {
   2334 	QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_INVALID = 0,
   2335 	QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_TIMER_HIGH = 1,
   2336 	QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_TIMER_LOW = 2,
   2337 	QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_AFTER_LAST,
   2338 	QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_MAX =
   2339 	QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_AFTER_LAST - 1
   2340 };
   2341 
   2342 enum qca_vendor_attr_get_preferred_freq_list {
   2343 	QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_INVALID,
   2344 	/* A 32-unsigned value; the interface type/mode for which the preferred
   2345 	 * frequency list is requested (see enum qca_iface_type for possible
   2346 	 * values); used in GET_PREFERRED_FREQ_LIST command from user-space to
   2347 	 * kernel and in the kernel response back to user-space.
   2348 	 */
   2349 	QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_IFACE_TYPE,
   2350 	/* An array of 32-unsigned values; values are frequency (MHz); sent
   2351 	 * from kernel space to user space.
   2352 	 */
   2353 	QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST,
   2354 	/* An array of nested values as per enum qca_wlan_vendor_attr_pcl
   2355 	 * attribute. Each element contains frequency (MHz), weight, and flag
   2356 	 * bit mask indicating how the frequency should be used in P2P
   2357 	 * negotiation; sent from kernel space to user space.
   2358 	 */
   2359 	QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_WEIGHED_PCL,
   2360 	/* keep last */
   2361 	QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST,
   2362 	QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_MAX =
   2363 	QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST - 1
   2364 };
   2365 
   2366 enum qca_vendor_attr_probable_oper_channel {
   2367 	QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_INVALID,
   2368 	/* 32-bit unsigned value; indicates the connection/iface type likely to
   2369 	 * come on this channel (see enum qca_iface_type).
   2370 	 */
   2371 	QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_IFACE_TYPE,
   2372 	/* 32-bit unsigned value; the frequency (MHz) of the probable channel */
   2373 	QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_FREQ,
   2374 	/* keep last */
   2375 	QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST,
   2376 	QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_MAX =
   2377 	QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST - 1
   2378 };
   2379 
   2380 enum qca_iface_type {
   2381 	QCA_IFACE_TYPE_STA,
   2382 	QCA_IFACE_TYPE_AP,
   2383 	QCA_IFACE_TYPE_P2P_CLIENT,
   2384 	QCA_IFACE_TYPE_P2P_GO,
   2385 	QCA_IFACE_TYPE_IBSS,
   2386 	QCA_IFACE_TYPE_TDLS,
   2387 };
   2388 
   2389 enum qca_set_band {
   2390 	QCA_SETBAND_AUTO = 0,
   2391 	QCA_SETBAND_5G = BIT(0),
   2392 	QCA_SETBAND_2G = BIT(1),
   2393 	QCA_SETBAND_6G = BIT(2),
   2394 };
   2395 
   2396 /**
   2397  * enum qca_access_policy - Access control policy
   2398  *
   2399  * Access control policy is applied on the configured IE
   2400  * (QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE).
   2401  * To be set with QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY.
   2402  *
   2403  * @QCA_ACCESS_POLICY_ACCEPT_UNLESS_LISTED: Deny Wi-Fi connections which match
   2404  *	the specific configuration (IE) set, i.e., allow all the
   2405  *	connections which do not match the configuration.
   2406  * @QCA_ACCESS_POLICY_DENY_UNLESS_LISTED: Accept Wi-Fi connections which match
   2407  *	the specific configuration (IE) set, i.e., deny all the
   2408  *	connections which do not match the configuration.
   2409  */
   2410 enum qca_access_policy {
   2411 	QCA_ACCESS_POLICY_ACCEPT_UNLESS_LISTED,
   2412 	QCA_ACCESS_POLICY_DENY_UNLESS_LISTED,
   2413 };
   2414 
   2415 /**
   2416  * enum qca_vendor_attr_tsf_cmd: Vendor attributes for TSF capture
   2417  * @QCA_WLAN_VENDOR_ATTR_TSF_CMD: Required (u32)
   2418  * Specify the TSF command. Possible values are defined in
   2419  * &enum qca_tsf_cmd.
   2420  * @QCA_WLAN_VENDOR_ATTR_TSF_TIMER_VALUE: Optional (u64)
   2421  * This attribute contains TSF timer value. This attribute is only available
   2422  * in %QCA_TSF_GET, %QCA_TSF_SYNC_GET or %QCA_TSF_SYNC_GET_CSA_TIMESTAMP
   2423  * response.
   2424  * @QCA_WLAN_VENDOR_ATTR_TSF_SOC_TIMER_VALUE: Optional (u64)
   2425  * This attribute contains SOC timer value at TSF capture. This attribute is
   2426  * only available in %QCA_TSF_GET or %QCA_TSF_SYNC_GET response.
   2427  * @QCA_WLAN_VENDOR_ATTR_TSF_SYNC_INTERVAL: Optional (u32)
   2428  * This attribute is used to provide TSF sync interval and only applicable when
   2429  * TSF command is %QCA_TSF_SYNC_START. If this attribute is not provided, the
   2430  * driver will use the default value. Time unit is in milliseconds.
   2431  * @QCA_WLAN_VENDOR_ATTR_TSF_PAD: Attribute used for padding for 64-bit
   2432  * alignment.
   2433  */
   2434 enum qca_vendor_attr_tsf_cmd {
   2435 	QCA_WLAN_VENDOR_ATTR_TSF_INVALID = 0,
   2436 	QCA_WLAN_VENDOR_ATTR_TSF_CMD,
   2437 	QCA_WLAN_VENDOR_ATTR_TSF_TIMER_VALUE,
   2438 	QCA_WLAN_VENDOR_ATTR_TSF_SOC_TIMER_VALUE,
   2439 	QCA_WLAN_VENDOR_ATTR_TSF_SYNC_INTERVAL,
   2440 	QCA_WLAN_VENDOR_ATTR_TSF_PAD,
   2441 	QCA_WLAN_VENDOR_ATTR_TSF_AFTER_LAST,
   2442 	QCA_WLAN_VENDOR_ATTR_TSF_MAX =
   2443 	QCA_WLAN_VENDOR_ATTR_TSF_AFTER_LAST - 1
   2444 };
   2445 
   2446 /**
   2447  * enum qca_tsf_cmd: TSF driver commands
   2448  * @QCA_TSF_CAPTURE: Initiate TSF Capture
   2449  * @QCA_TSF_GET: Get TSF capture value
   2450  * @QCA_TSF_SYNC_GET: Initiate TSF capture and return with captured value
   2451  * @QCA_TSF_AUTO_REPORT_ENABLE: Used in STA mode only. Once set, the target
   2452  * will automatically send TSF report to the host. To query
   2453  * %QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY or
   2454  * %QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY_JITTER, this operation needs
   2455  * to be initiated first.
   2456  * @QCA_TSF_AUTO_REPORT_DISABLE: Used in STA mode only. Once set, the target
   2457  * will not automatically send TSF report to the host. If
   2458  * %QCA_TSF_AUTO_REPORT_ENABLE is initiated and
   2459  * %QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY or
   2460  * %QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY_JITTER is not queried
   2461  * anymore, this operation needs to be initiated.
   2462  * @QCA_TSF_SYNC_START: Start periodic TSF sync feature. The driver periodically
   2463  * fetches TSF and host time mapping from the firmware with interval configured
   2464  * through the %QCA_WLAN_VENDOR_ATTR_TSF_SYNC_INTERVAL attribute. If the
   2465  * interval value is not provided the driver will use the default value. The
   2466  * userspace can query the TSF and host time mapping via the %QCA_TSF_GET
   2467  * command.
   2468  * @QCA_TSF_SYNC_STOP: Stop periodic TSF sync feature.
   2469  * @QCA_TSF_SYNC_GET_CSA_TIMESTAMP: Get TSF timestamp when AP will move and
   2470  * starts beaconing on a new channel. The driver synchronously responds with the
   2471  * TSF value using attribute %QCA_WLAN_VENDOR_ATTR_TSF_TIMER_VALUE. Userspace
   2472  * gets the valid CSA TSF after receiving %NL80211_CMD_CH_SWITCH_STARTED_NOTIFY
   2473  * on the AP interface. This TSF can be sent via OOB mechanism to connected
   2474  * clients.
   2475  */
   2476 enum qca_tsf_cmd {
   2477 	QCA_TSF_CAPTURE,
   2478 	QCA_TSF_GET,
   2479 	QCA_TSF_SYNC_GET,
   2480 	QCA_TSF_AUTO_REPORT_ENABLE,
   2481 	QCA_TSF_AUTO_REPORT_DISABLE,
   2482 	QCA_TSF_SYNC_START,
   2483 	QCA_TSF_SYNC_STOP,
   2484 	QCA_TSF_SYNC_GET_CSA_TIMESTAMP,
   2485 };
   2486 
   2487 /**
   2488  * enum qca_vendor_attr_wisa_cmd
   2489  * @QCA_WLAN_VENDOR_ATTR_WISA_MODE: WISA mode value (u32)
   2490  * WISA setup vendor commands
   2491  */
   2492 enum qca_vendor_attr_wisa_cmd {
   2493 	QCA_WLAN_VENDOR_ATTR_WISA_INVALID = 0,
   2494 	QCA_WLAN_VENDOR_ATTR_WISA_MODE,
   2495 	QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST,
   2496 	QCA_WLAN_VENDOR_ATTR_WISA_MAX =
   2497 	QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST - 1
   2498 };
   2499 
   2500 /* IEEE 802.11 Vendor Specific elements */
   2501 
   2502 /**
   2503  * enum qca_vendor_element_id - QCA Vendor Specific element types
   2504  *
   2505  * These values are used to identify QCA Vendor Specific elements. The
   2506  * payload of the element starts with the three octet OUI (OUI_QCA) and
   2507  * is followed by a single octet type which is defined by this enum.
   2508  *
   2509  * @QCA_VENDOR_ELEM_P2P_PREF_CHAN_LIST: P2P preferred channel list.
   2510  *	This element can be used to specify preference order for supported
   2511  *	channels. The channels in this list are in preference order (the first
   2512  *	one has the highest preference) and are described as a pair of
   2513  *	(global) Operating Class and Channel Number (each one octet) fields.
   2514  *
   2515  *	This extends the standard P2P functionality by providing option to have
   2516  *	more than one preferred operating channel. When this element is present,
   2517  *	it replaces the preference indicated in the Operating Channel attribute.
   2518  *	For supporting other implementations, the Operating Channel attribute is
   2519  *	expected to be used with the highest preference channel. Similarly, all
   2520  *	the channels included in this Preferred channel list element are
   2521  *	expected to be included in the Channel List attribute.
   2522  *
   2523  *	This vendor element may be included in GO Negotiation Request, P2P
   2524  *	Invitation Request, and Provision Discovery Request frames.
   2525  *
   2526  * @QCA_VENDOR_ELEM_HE_CAPAB: HE Capabilities element.
   2527  *	This element can be used for pre-standard publication testing of HE
   2528  *	before P802.11ax draft assigns the element ID. The payload of this
   2529  *	vendor specific element is defined by the latest P802.11ax draft.
   2530  *	Please note that the draft is still work in progress and this element
   2531  *	payload is subject to change.
   2532  *
   2533  * @QCA_VENDOR_ELEM_HE_OPER: HE Operation element.
   2534  *	This element can be used for pre-standard publication testing of HE
   2535  *	before P802.11ax draft assigns the element ID. The payload of this
   2536  *	vendor specific element is defined by the latest P802.11ax draft.
   2537  *	Please note that the draft is still work in progress and this element
   2538  *	payload is subject to change.
   2539  *
   2540  * @QCA_VENDOR_ELEM_RAPS: RAPS element (OFDMA-based Random Access Parameter Set
   2541  *	element).
   2542  *	This element can be used for pre-standard publication testing of HE
   2543  *	before P802.11ax draft assigns the element ID extension. The payload of
   2544  *	this vendor specific element is defined by the latest P802.11ax draft
   2545  *	(not including the Element ID Extension field). Please note that the
   2546  *	draft is still work in progress and this element payload is subject to
   2547  *	change.
   2548  *
   2549  * @QCA_VENDOR_ELEM_MU_EDCA_PARAMS: MU EDCA Parameter Set element.
   2550  *	This element can be used for pre-standard publication testing of HE
   2551  *	before P802.11ax draft assigns the element ID extension. The payload of
   2552  *	this vendor specific element is defined by the latest P802.11ax draft
   2553  *	(not including the Element ID Extension field). Please note that the
   2554  *	draft is still work in progress and this element payload is subject to
   2555  *	change.
   2556  *
   2557  * @QCA_VENDOR_ELEM_BSS_COLOR_CHANGE: BSS Color Change Announcement element.
   2558  *	This element can be used for pre-standard publication testing of HE
   2559  *	before P802.11ax draft assigns the element ID extension. The payload of
   2560  *	this vendor specific element is defined by the latest P802.11ax draft
   2561  *	(not including the Element ID Extension field). Please note that the
   2562  *	draft is still work in progress and this element payload is subject to
   2563  *	change.
   2564  *
   2565  *  @QCA_VENDOR_ELEM_ALLPLAY: Allplay element
   2566  */
   2567 enum qca_vendor_element_id {
   2568 	QCA_VENDOR_ELEM_P2P_PREF_CHAN_LIST = 0,
   2569 	QCA_VENDOR_ELEM_HE_CAPAB = 1,
   2570 	QCA_VENDOR_ELEM_HE_OPER = 2,
   2571 	QCA_VENDOR_ELEM_RAPS = 3,
   2572 	QCA_VENDOR_ELEM_MU_EDCA_PARAMS = 4,
   2573 	QCA_VENDOR_ELEM_BSS_COLOR_CHANGE = 5,
   2574 	QCA_VENDOR_ELEM_ALLPLAY = 6,
   2575 };
   2576 
   2577 /**
   2578  * enum qca_wlan_vendor_scan_priority - Specifies the valid values that the
   2579  * vendor scan attribute QCA_WLAN_VENDOR_ATTR_SCAN_PRIORITY can take.
   2580  * @QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_LOW: Very low priority
   2581  * @QCA_WLAN_VENDOR_SCAN_PRIORITY_LOW: Low priority
   2582  * @QCA_WLAN_VENDOR_SCAN_PRIORITY_MEDIUM: Medium priority
   2583  * @QCA_WLAN_VENDOR_SCAN_PRIORITY_HIGH: High priority
   2584  * @QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_HIGH: Very high priority
   2585  */
   2586 enum qca_wlan_vendor_scan_priority {
   2587 	QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_LOW = 0,
   2588 	QCA_WLAN_VENDOR_SCAN_PRIORITY_LOW = 1,
   2589 	QCA_WLAN_VENDOR_SCAN_PRIORITY_MEDIUM = 2,
   2590 	QCA_WLAN_VENDOR_SCAN_PRIORITY_HIGH = 3,
   2591 	QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_HIGH = 4,
   2592 };
   2593 
   2594 /**
   2595  * enum qca_wlan_vendor_attr_scan - Specifies vendor scan attributes
   2596  *
   2597  * @QCA_WLAN_VENDOR_ATTR_SCAN_IE: IEs that should be included as part of scan
   2598  * @QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES: Nested unsigned 32-bit attributes
   2599  *	with frequencies to be scanned (in MHz)
   2600  * @QCA_WLAN_VENDOR_ATTR_SCAN_SSIDS: Nested attribute with SSIDs to be scanned
   2601  * @QCA_WLAN_VENDOR_ATTR_SCAN_SUPP_RATES: Nested array attribute of supported
   2602  *	rates to be included
   2603  * @QCA_WLAN_VENDOR_ATTR_SCAN_TX_NO_CCK_RATE: flag used to send probe requests
   2604  *	at non CCK rate in 2GHz band
   2605  * @QCA_WLAN_VENDOR_ATTR_SCAN_FLAGS: Unsigned 32-bit scan flags
   2606  * @QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE: Unsigned 64-bit cookie provided by the
   2607  *	driver for the specific scan request
   2608  * @QCA_WLAN_VENDOR_ATTR_SCAN_STATUS: Unsigned 8-bit status of the scan
   2609  *	request decoded as in enum scan_status
   2610  * @QCA_WLAN_VENDOR_ATTR_SCAN_MAC: 6-byte MAC address to use when randomisation
   2611  *	scan flag is set
   2612  * @QCA_WLAN_VENDOR_ATTR_SCAN_MAC_MASK: 6-byte MAC address mask to be used with
   2613  *	randomisation
   2614  * @QCA_WLAN_VENDOR_ATTR_SCAN_BSSID: 6-byte MAC address representing the
   2615  *	specific BSSID to scan for.
   2616  * @QCA_WLAN_VENDOR_ATTR_SCAN_DWELL_TIME: Unsigned 64-bit dwell time in
   2617  *	microseconds. This is a common value which applies across all
   2618  *	frequencies specified by QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES.
   2619  * @QCA_WLAN_VENDOR_ATTR_SCAN_PRIORITY: Priority of vendor scan relative to
   2620  *	other scan requests. It is a u32 attribute and takes values from enum
   2621  *	qca_wlan_vendor_scan_priority. This is an optional attribute.
   2622  *	If this attribute is not configured, the driver shall use
   2623  *	QCA_WLAN_VENDOR_SCAN_PRIORITY_HIGH as the priority of vendor scan.
   2624  * @QCA_WLAN_VENDOR_ATTR_SCAN_PAD: Attribute used for padding for 64-bit
   2625  *	alignment.
   2626  * @QCA_WLAN_VENDOR_ATTR_SCAN_LINK_ID: This u8 attribute is used for OBSS scan
   2627  *	when AP is operating as MLD to specify which link is requesting the
   2628  *	scan or which link the scan result is for. No need of this attribute
   2629  *	in other cases.
   2630  */
   2631 enum qca_wlan_vendor_attr_scan {
   2632 	QCA_WLAN_VENDOR_ATTR_SCAN_INVALID_PARAM = 0,
   2633 	QCA_WLAN_VENDOR_ATTR_SCAN_IE = 1,
   2634 	QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES = 2,
   2635 	QCA_WLAN_VENDOR_ATTR_SCAN_SSIDS = 3,
   2636 	QCA_WLAN_VENDOR_ATTR_SCAN_SUPP_RATES = 4,
   2637 	QCA_WLAN_VENDOR_ATTR_SCAN_TX_NO_CCK_RATE = 5,
   2638 	QCA_WLAN_VENDOR_ATTR_SCAN_FLAGS = 6,
   2639 	QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE = 7,
   2640 	QCA_WLAN_VENDOR_ATTR_SCAN_STATUS = 8,
   2641 	QCA_WLAN_VENDOR_ATTR_SCAN_MAC = 9,
   2642 	QCA_WLAN_VENDOR_ATTR_SCAN_MAC_MASK = 10,
   2643 	QCA_WLAN_VENDOR_ATTR_SCAN_BSSID = 11,
   2644 	QCA_WLAN_VENDOR_ATTR_SCAN_DWELL_TIME = 12,
   2645 	QCA_WLAN_VENDOR_ATTR_SCAN_PRIORITY = 13,
   2646 	QCA_WLAN_VENDOR_ATTR_SCAN_PAD = 14,
   2647 	QCA_WLAN_VENDOR_ATTR_SCAN_LINK_ID = 15,
   2648 	QCA_WLAN_VENDOR_ATTR_SCAN_AFTER_LAST,
   2649 	QCA_WLAN_VENDOR_ATTR_SCAN_MAX =
   2650 	QCA_WLAN_VENDOR_ATTR_SCAN_AFTER_LAST - 1
   2651 };
   2652 
   2653 /**
   2654  * enum scan_status - Specifies the valid values the vendor scan attribute
   2655  *	QCA_WLAN_VENDOR_ATTR_SCAN_STATUS can take
   2656  *
   2657  * @VENDOR_SCAN_STATUS_NEW_RESULTS: implies the vendor scan is successful with
   2658  *	new scan results
   2659  * @VENDOR_SCAN_STATUS_ABORTED: implies the vendor scan was aborted in-between
   2660  */
   2661 enum scan_status {
   2662 	VENDOR_SCAN_STATUS_NEW_RESULTS,
   2663 	VENDOR_SCAN_STATUS_ABORTED,
   2664 	VENDOR_SCAN_STATUS_MAX,
   2665 };
   2666 
   2667 /**
   2668  * enum qca_vendor_attr_ota_test - Specifies the values for vendor
   2669  *                       command QCA_NL80211_VENDOR_SUBCMD_OTA_TEST
   2670  * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_ENABLE: enable ota test
   2671  */
   2672 enum qca_vendor_attr_ota_test {
   2673 	QCA_WLAN_VENDOR_ATTR_OTA_TEST_INVALID,
   2674 	/* 8-bit unsigned value to indicate if OTA test is enabled */
   2675 	QCA_WLAN_VENDOR_ATTR_OTA_TEST_ENABLE,
   2676 	/* keep last */
   2677 	QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST,
   2678 	QCA_WLAN_VENDOR_ATTR_OTA_TEST_MAX =
   2679 	QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST - 1
   2680 };
   2681 
   2682 /**
   2683  * enum qca_vendor_attr_txpower_scale - vendor sub commands index
   2684  *
   2685  * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE: scaling value
   2686  */
   2687 enum qca_vendor_attr_txpower_scale {
   2688 	QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_INVALID,
   2689 	/* 8-bit unsigned value to indicate the scaling of tx power */
   2690 	QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE,
   2691 	/* keep last */
   2692 	QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST,
   2693 	QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_MAX =
   2694 	QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST - 1
   2695 };
   2696 
   2697 /**
   2698  * enum qca_vendor_attr_txpower_decr_db - Attributes for TX power decrease
   2699  *
   2700  * These attributes are used with QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_DECR_DB.
   2701  */
   2702 enum qca_vendor_attr_txpower_decr_db {
   2703 	QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_INVALID,
   2704 	/* 8-bit unsigned value to indicate the reduction of TX power in dB for
   2705 	 * a virtual interface.
   2706 	 */
   2707 	QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB,
   2708 	/* keep last */
   2709 	QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_AFTER_LAST,
   2710 	QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_MAX =
   2711 	QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_AFTER_LAST - 1
   2712 };
   2713 
   2714 /* Attributes for data used by
   2715  * QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION and
   2716  * QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION subcommands.
   2717  */
   2718 enum qca_wlan_vendor_attr_config {
   2719 	QCA_WLAN_VENDOR_ATTR_CONFIG_INVALID = 0,
   2720 	/* Unsigned 32-bit value to set the DTIM period.
   2721 	 * Whether the wifi chipset wakes at every dtim beacon or a multiple of
   2722 	 * the DTIM period. If DTIM is set to 3, the STA shall wake up every 3
   2723 	 * DTIM beacons.
   2724 	 */
   2725 	QCA_WLAN_VENDOR_ATTR_CONFIG_DYNAMIC_DTIM = 1,
   2726 	/* Unsigned 32-bit value to set the wifi_iface stats averaging factor
   2727 	 * used to calculate statistics like average the TSF offset or average
   2728 	 * number of frame leaked.
   2729 	 * For instance, upon Beacon frame reception:
   2730 	 * current_avg = ((beacon_TSF - TBTT) * factor +
   2731 	 *                previous_avg * (0x10000 - factor)) / 0x10000
   2732 	 * For instance, when evaluating leaky APs:
   2733 	 * current_avg = ((num frame received within guard time) * factor +
   2734 	 *                previous_avg * (0x10000 - factor)) / 0x10000
   2735 	 */
   2736 	QCA_WLAN_VENDOR_ATTR_CONFIG_STATS_AVG_FACTOR = 2,
   2737 	/* Unsigned 32-bit value to configure guard time, i.e., when
   2738 	 * implementing IEEE power management based on frame control PM bit, how
   2739 	 * long the driver waits before shutting down the radio and after
   2740 	 * receiving an ACK frame for a Data frame with PM bit set.
   2741 	 */
   2742 	QCA_WLAN_VENDOR_ATTR_CONFIG_GUARD_TIME = 3,
   2743 	/* Unsigned 32-bit value to change the FTM capability dynamically */
   2744 	QCA_WLAN_VENDOR_ATTR_CONFIG_FINE_TIME_MEASUREMENT = 4,
   2745 	/* Unsigned 16-bit value to configure maximum TX rate dynamically */
   2746 	QCA_WLAN_VENDOR_ATTR_CONF_TX_RATE = 5,
   2747 	/* Unsigned 32-bit value to configure the number of continuous
   2748 	 * Beacon Miss which shall be used by the firmware to penalize
   2749 	 * the RSSI.
   2750 	 */
   2751 	QCA_WLAN_VENDOR_ATTR_CONFIG_PENALIZE_AFTER_NCONS_BEACON_MISS = 6,
   2752 	/* Unsigned 8-bit value to configure the channel avoidance indication
   2753 	 * behavior. Firmware to send only one indication and ignore duplicate
   2754 	 * indications when set to avoid multiple Apps wakeups.
   2755 	 */
   2756 	QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_AVOIDANCE_IND = 7,
   2757 	/* 8-bit unsigned value to configure the maximum TX MPDU for
   2758 	 * aggregation.
   2759 	 */
   2760 	QCA_WLAN_VENDOR_ATTR_CONFIG_TX_MPDU_AGGREGATION = 8,
   2761 	/* 8-bit unsigned value to configure the maximum RX MPDU for
   2762 	 * aggregation.
   2763 	 */
   2764 	QCA_WLAN_VENDOR_ATTR_CONFIG_RX_MPDU_AGGREGATION = 9,
   2765 	/* 8-bit unsigned value to configure the Non aggregrate/11g sw
   2766 	 * retry threshold (0 disable, 31 max).
   2767 	 */
   2768 	QCA_WLAN_VENDOR_ATTR_CONFIG_NON_AGG_RETRY = 10,
   2769 	/* 8-bit unsigned value to configure the aggregrate sw
   2770 	 * retry threshold (0 disable, 31 max).
   2771 	 */
   2772 	QCA_WLAN_VENDOR_ATTR_CONFIG_AGG_RETRY = 11,
   2773 	/* 8-bit unsigned value to configure the MGMT frame
   2774 	 * retry threshold (0 disable, 31 max).
   2775 	 */
   2776 	QCA_WLAN_VENDOR_ATTR_CONFIG_MGMT_RETRY = 12,
   2777 	/* 8-bit unsigned value to configure the CTRL frame
   2778 	 * retry threshold (0 disable, 31 max).
   2779 	 */
   2780 	QCA_WLAN_VENDOR_ATTR_CONFIG_CTRL_RETRY = 13,
   2781 	/* 8-bit unsigned value to configure the propagation delay for
   2782 	 * 2G/5G band (0~63, units in us)
   2783 	 */
   2784 	QCA_WLAN_VENDOR_ATTR_CONFIG_PROPAGATION_DELAY = 14,
   2785 	/* Unsigned 32-bit value to configure the number of unicast TX fail
   2786 	 * packet count. The peer is disconnected once this threshold is
   2787 	 * reached.
   2788 	 */
   2789 	QCA_WLAN_VENDOR_ATTR_CONFIG_TX_FAIL_COUNT = 15,
   2790 	/* Attribute used to set scan default IEs to the driver.
   2791 	 *
   2792 	 * These IEs can be used by scan operations that will be initiated by
   2793 	 * the driver/firmware.
   2794 	 *
   2795 	 * For further scan requests coming to the driver, these IEs should be
   2796 	 * merged with the IEs received along with scan request coming to the
   2797 	 * driver. If a particular IE is present in the scan default IEs but not
   2798 	 * present in the scan request, then that IE should be added to the IEs
   2799 	 * sent in the Probe Request frames for that scan request.
   2800 	 */
   2801 	QCA_WLAN_VENDOR_ATTR_CONFIG_SCAN_DEFAULT_IES = 16,
   2802 	/* Unsigned 32-bit attribute for generic commands */
   2803 	QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_COMMAND = 17,
   2804 	/* Unsigned 32-bit value attribute for generic commands */
   2805 	QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_VALUE = 18,
   2806 	/* Unsigned 32-bit data attribute for generic command response */
   2807 	QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA = 19,
   2808 	/* Unsigned 32-bit length attribute for
   2809 	 * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA
   2810 	 */
   2811 	QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_LENGTH = 20,
   2812 	/* Unsigned 32-bit flags attribute for
   2813 	 * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA
   2814 	 */
   2815 	QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_FLAGS = 21,
   2816 	/* Unsigned 32-bit, defining the access policy.
   2817 	 * See enum qca_access_policy. Used with
   2818 	 * QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE_LIST.
   2819 	 */
   2820 	QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY = 22,
   2821 	/* Sets the list of full set of IEs for which a specific access policy
   2822 	 * has to be applied. Used along with
   2823 	 * QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY to control the access.
   2824 	 * Zero length payload can be used to clear this access constraint.
   2825 	 */
   2826 	QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE_LIST = 23,
   2827 	/* Unsigned 32-bit, specifies the interface index (netdev) for which the
   2828 	 * corresponding configurations are applied. If the interface index is
   2829 	 * not specified, the configurations are attributed to the respective
   2830 	 * wiphy.
   2831 	 */
   2832 	QCA_WLAN_VENDOR_ATTR_CONFIG_IFINDEX = 24,
   2833 	/* 8-bit unsigned value to trigger QPower: 1-Enable, 0-Disable */
   2834 	QCA_WLAN_VENDOR_ATTR_CONFIG_QPOWER = 25,
   2835 	/* 8-bit unsigned value to configure the driver and below layers to
   2836 	 * ignore the assoc disallowed set by APs while connecting
   2837 	 * 1-Ignore, 0-Don't ignore
   2838 	 */
   2839 	QCA_WLAN_VENDOR_ATTR_CONFIG_IGNORE_ASSOC_DISALLOWED = 26,
   2840 	/* 32-bit unsigned value to trigger antenna diversity features:
   2841 	 * 1-Enable, 0-Disable
   2842 	 */
   2843 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_ENA = 27,
   2844 	/* 32-bit unsigned value to configure specific chain antenna */
   2845 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_CHAIN = 28,
   2846 	/* 32-bit unsigned value to trigger cycle selftest
   2847 	 * 1-Enable, 0-Disable
   2848 	 */
   2849 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SELFTEST = 29,
   2850 	/* 32-bit unsigned to configure the cycle time of selftest
   2851 	 * the unit is micro-second
   2852 	 */
   2853 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SELFTEST_INTVL = 30,
   2854 	/* 32-bit unsigned value to set reorder timeout for AC_VO */
   2855 	QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_VOICE = 31,
   2856 	/* 32-bit unsigned value to set reorder timeout for AC_VI */
   2857 	QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_VIDEO = 32,
   2858 	/* 32-bit unsigned value to set reorder timeout for AC_BE */
   2859 	QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_BESTEFFORT = 33,
   2860 	/* 32-bit unsigned value to set reorder timeout for AC_BK */
   2861 	QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_BACKGROUND = 34,
   2862 	/* 6-byte MAC address to point out the specific peer */
   2863 	QCA_WLAN_VENDOR_ATTR_CONFIG_PEER_MAC = 35,
   2864 	/* Backward compatibility with the original name */
   2865 	QCA_WLAN_VENDOR_ATTR_CONFIG_RX_BLOCKSIZE_PEER_MAC =
   2866 	QCA_WLAN_VENDOR_ATTR_CONFIG_PEER_MAC,
   2867 	/* 32-bit unsigned value to set window size for specific peer */
   2868 	QCA_WLAN_VENDOR_ATTR_CONFIG_RX_BLOCKSIZE_WINLIMIT = 36,
   2869 	/* 8-bit unsigned value to set the beacon miss threshold in 2.4 GHz */
   2870 	QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_MISS_THRESHOLD_24 = 37,
   2871 	/* 8-bit unsigned value to set the beacon miss threshold in 5 GHz */
   2872 	QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_MISS_THRESHOLD_5 = 38,
   2873 	/* 32-bit unsigned value to configure 5 or 10 MHz channel width for
   2874 	 * station device while in disconnect state. The attribute use the
   2875 	 * value of enum nl80211_chan_width: NL80211_CHAN_WIDTH_5 means 5 MHz,
   2876 	 * NL80211_CHAN_WIDTH_10 means 10 MHz. If set, the device work in 5 or
   2877 	 * 10 MHz channel width, the station will not connect to a BSS using 20
   2878 	 * MHz or higher bandwidth. Set to NL80211_CHAN_WIDTH_20_NOHT to
   2879 	 * clear this constraint.
   2880 	 */
   2881 	QCA_WLAN_VENDOR_ATTR_CONFIG_SUB20_CHAN_WIDTH = 39,
   2882 	/* 32-bit unsigned value to configure the propagation absolute delay
   2883 	 * for 2G/5G band (units in us)
   2884 	 */
   2885 	QCA_WLAN_VENDOR_ATTR_CONFIG_PROPAGATION_ABS_DELAY = 40,
   2886 	/* 32-bit unsigned value to set probe period */
   2887 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_PROBE_PERIOD = 41,
   2888 	/* 32-bit unsigned value to set stay period */
   2889 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_STAY_PERIOD = 42,
   2890 	/* 32-bit unsigned value to set snr diff */
   2891 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SNR_DIFF = 43,
   2892 	/* 32-bit unsigned value to set probe dwell time */
   2893 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_PROBE_DWELL_TIME = 44,
   2894 	/* 32-bit unsigned value to set mgmt snr weight */
   2895 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_MGMT_SNR_WEIGHT = 45,
   2896 	/* 32-bit unsigned value to set data snr weight */
   2897 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_DATA_SNR_WEIGHT = 46,
   2898 	/* 32-bit unsigned value to set ack snr weight */
   2899 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_ACK_SNR_WEIGHT = 47,
   2900 	/* 32-bit unsigned value to configure the listen interval.
   2901 	 * This is in units of beacon intervals. This configuration alters
   2902 	 * the negotiated listen interval with the AP during the connection.
   2903 	 * It is highly recommended to configure a value less than or equal to
   2904 	 * the one negotiated during the association. Configuring any greater
   2905 	 * value can have adverse effects (frame loss, AP disassociating STA,
   2906 	 * etc.).
   2907 	 */
   2908 	QCA_WLAN_VENDOR_ATTR_CONFIG_LISTEN_INTERVAL = 48,
   2909 	/*
   2910 	 * 8 bit unsigned value that is set on an AP/GO virtual interface to
   2911 	 * disable operations that would cause the AP/GO to leave its operating
   2912 	 * channel.
   2913 	 *
   2914 	 * This will restrict the scans to the AP/GO operating channel and the
   2915 	 * channels of the other band, if DBS is supported.A STA/CLI interface
   2916 	 * brought up after this setting is enabled, will be restricted to
   2917 	 * connecting to devices only on the AP/GO interface's operating channel
   2918 	 * or on the other band in DBS case. P2P supported channel list is
   2919 	 * modified, to only include AP interface's operating-channel and the
   2920 	 * channels of the other band if DBS is supported.
   2921 	 *
   2922 	 * These restrictions are only applicable as long as the AP/GO interface
   2923 	 * is alive. If the AP/GO interface is brought down then this
   2924 	 * setting/restriction is forgotten.
   2925 	 *
   2926 	 * If this variable is set on an AP/GO interface while a multi-channel
   2927 	 * concurrent session is active, it has no effect on the operation of
   2928 	 * the current interfaces, other than restricting the scan to the AP/GO
   2929 	 * operating channel and the other band channels if DBS is supported.
   2930 	 * However, if the STA is brought down and restarted then the new STA
   2931 	 * connection will either be formed on the AP/GO channel or on the
   2932 	 * other band in a DBS case. This is because of the scan being
   2933 	 * restricted on these channels as mentioned above.
   2934 	 *
   2935 	 * 1-Restrict / 0-Don't restrict offchannel operations.
   2936 	 */
   2937 	QCA_WLAN_VENDOR_ATTR_CONFIG_RESTRICT_OFFCHANNEL = 49,
   2938 	/*
   2939 	 * 8 bit unsigned value to enable/disable LRO (Large Receive Offload)
   2940 	 * on an interface.
   2941 	 * 1 - Enable, 0 - Disable.
   2942 	 */
   2943 	QCA_WLAN_VENDOR_ATTR_CONFIG_LRO = 50,
   2944 
   2945 	/*
   2946 	 * 8 bit unsigned value to globally enable/disable scan
   2947 	 * 1 - Enable, 0 - Disable.
   2948 	 */
   2949 	QCA_WLAN_VENDOR_ATTR_CONFIG_SCAN_ENABLE = 51,
   2950 
   2951 	/* 8-bit unsigned value to set the total beacon miss count
   2952 	 * This parameter will set the total beacon miss count.
   2953 	 */
   2954 	QCA_WLAN_VENDOR_ATTR_CONFIG_TOTAL_BEACON_MISS_COUNT = 52,
   2955 
   2956 	/* Unsigned 32-bit value to configure the number of continuous
   2957 	 * Beacon Miss which shall be used by the firmware to penalize
   2958 	 * the RSSI for BTC.
   2959 	 */
   2960 	QCA_WLAN_VENDOR_ATTR_CONFIG_PENALIZE_AFTER_NCONS_BEACON_MISS_BTC = 53,
   2961 
   2962 	/* 8-bit unsigned value to configure the driver and below layers to
   2963 	 * enable/disable all FILS features.
   2964 	 * 0-enable, 1-disable
   2965 	 */
   2966 	QCA_WLAN_VENDOR_ATTR_CONFIG_DISABLE_FILS = 54,
   2967 
   2968 	/* 16-bit unsigned value to configure the level of WLAN latency
   2969 	 * module. See enum qca_wlan_vendor_attr_config_latency_level.
   2970 	 */
   2971 	QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL = 55,
   2972 
   2973 	/* 8-bit unsigned value indicating the driver to use the RSNE as-is from
   2974 	 * the connect interface. Exclusively used for the scenarios where the
   2975 	 * device is used as a test bed device with special functionality and
   2976 	 * not recommended for production. This helps driver to not validate the
   2977 	 * RSNE passed from user space and thus allow arbitrary IE data to be
   2978 	 * used for testing purposes.
   2979 	 * 1-enable, 0-disable.
   2980 	 * Applications set/reset this configuration. If not reset, this
   2981 	 * parameter remains in use until the driver is unloaded.
   2982 	 */
   2983 	QCA_WLAN_VENDOR_ATTR_CONFIG_RSN_IE = 56,
   2984 
   2985 	/* 8-bit unsigned value to trigger green Tx power saving.
   2986 	 * 1-Enable, 0-Disable
   2987 	 */
   2988 	QCA_WLAN_VENDOR_ATTR_CONFIG_GTX = 57,
   2989 
   2990 	/* Attribute to configure disconnect IEs to the driver.
   2991 	 * This carries an array of unsigned 8-bit characters.
   2992 	 *
   2993 	 * If this is configured, driver shall fill the IEs in disassoc/deauth
   2994 	 * frame.
   2995 	 * These IEs are expected to be considered only for the next
   2996 	 * immediate disconnection (disassoc/deauth frame) originated by
   2997 	 * the DUT, irrespective of the entity (user space/driver/firmware)
   2998 	 * triggering the disconnection.
   2999 	 * The host drivers are not expected to use the IEs set through
   3000 	 * this interface for further disconnections after the first immediate
   3001 	 * disconnection initiated post the configuration.
   3002 	 * If the IEs are also updated through cfg80211 interface (after the
   3003 	 * enhancement to cfg80211_disconnect), host driver is expected to
   3004 	 * take the union of IEs from both of these interfaces and send in
   3005 	 * further disassoc/deauth frames.
   3006 	 */
   3007 	QCA_WLAN_VENDOR_ATTR_CONFIG_DISCONNECT_IES = 58,
   3008 
   3009 	/* 8-bit unsigned value for ELNA bypass.
   3010 	 * 0 - Disable eLNA bypass.
   3011 	 * 1 - Enable eLNA bypass.
   3012 	 * 2 - Reset eLNA bypass configuration, the driver should
   3013 	 *	revert to the default configuration of eLNA bypass.
   3014 	 */
   3015 	QCA_WLAN_VENDOR_ATTR_CONFIG_ELNA_BYPASS = 59,
   3016 
   3017 	/* 8-bit unsigned value. This attribute enables/disables the host driver
   3018 	 * to send the Beacon Report Response with failure reason for the
   3019 	 * scenarios where STA cannot honor the Beacon Report Request from AP.
   3020 	 * 1-Enable, 0-Disable.
   3021 	 */
   3022 	QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_REPORT_FAIL = 60,
   3023 
   3024 	/* 8-bit unsigned value. This attribute enables/disables the host driver
   3025 	 * to send roam reason information in the Reassociation Request frame to
   3026 	 * the target AP when roaming within the same ESS.
   3027 	 * 1-Enable, 0-Disable.
   3028 	 */
   3029 	QCA_WLAN_VENDOR_ATTR_CONFIG_ROAM_REASON = 61,
   3030 
   3031 	/* 32-bit unsigned value to configure different PHY modes to the
   3032 	 * driver/firmware. The possible values are defined in
   3033 	 * enum qca_wlan_vendor_phy_mode. The configuration will be reset to
   3034 	 * default value, i.e., QCA_WLAN_VENDOR_PHY_MODE_AUTO upon restarting
   3035 	 * the driver.
   3036 	 */
   3037 	QCA_WLAN_VENDOR_ATTR_CONFIG_PHY_MODE = 62,
   3038 
   3039 	/* 8-bit unsigned value to configure the maximum supported channel width
   3040 	 * for STA mode. If this value is configured when STA is in connected
   3041 	 * state, it should not exceed the negotiated channel width. If it is
   3042 	 * configured when STA is in disconnected state, the configured value
   3043 	 * will take effect for the next immediate connection.
   3044 	 * This configuration can be sent inside
   3045 	 * %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINKS to specify the maximum
   3046 	 * supported channel width per-MLO link.
   3047 	 *
   3048 	 * This uses values defined in enum nl80211_chan_width.
   3049 	 */
   3050 	QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_WIDTH = 63,
   3051 
   3052 	/* 8-bit unsigned value to enable/disable dynamic bandwidth adjustment.
   3053 	 * This attribute is only applicable for STA mode. When dynamic
   3054 	 * bandwidth adjustment is disabled, STA will use static channel width
   3055 	 * the value of which is negotiated during connection.
   3056 	 * 1-enable (default), 0-disable
   3057 	 */
   3058 	QCA_WLAN_VENDOR_ATTR_CONFIG_DYNAMIC_BW = 64,
   3059 
   3060 	/* 8-bit unsigned value to configure the maximum number of subframes of
   3061 	 * TX MSDU for aggregation. Possible values are 0-31. When set to 0,
   3062 	 * it is decided by the hardware.
   3063 	 */
   3064 	QCA_WLAN_VENDOR_ATTR_CONFIG_TX_MSDU_AGGREGATION = 65,
   3065 
   3066 	/* 8-bit unsigned value to configure the maximum number of subframes of
   3067 	 * RX MSDU for aggregation. Possible values are 0-31. When set to 0,
   3068 	 * it is decided by the hardware.
   3069 	 */
   3070 	QCA_WLAN_VENDOR_ATTR_CONFIG_RX_MSDU_AGGREGATION = 66,
   3071 
   3072 	/* 8-bit unsigned value. This attribute is used to dynamically
   3073 	 * enable/disable the LDPC capability of the device. When configured in
   3074 	 * the disconnected state, the updated configuration will be considered
   3075 	 * for the immediately following connection attempt. If this
   3076 	 * configuration is modified while the device is in the connected state,
   3077 	 * the LDPC TX will be updated with this configuration immediately,
   3078 	 * while the LDPC RX configuration update will take place starting from
   3079 	 * the subsequent association attempt.
   3080 	 * 1-Enable, 0-Disable.
   3081 	 */
   3082 	QCA_WLAN_VENDOR_ATTR_CONFIG_LDPC = 67,
   3083 
   3084 	/* 8-bit unsigned value. This attribute is used to dynamically
   3085 	 * enable/disable the TX STBC capability of the device. When configured
   3086 	 * in the disconnected state, the updated configuration will be
   3087 	 * considered for the immediately following connection attempt. If the
   3088 	 * connection is formed with TX STBC enabled and if this configuration
   3089 	 * is disabled during that association, the TX will be impacted
   3090 	 * immediately. Further connection attempts will disable TX STBC.
   3091 	 * However, enabling the TX STBC for a connected session with disabled
   3092 	 * capability is not allowed and will fail.
   3093 	 * 1-Enable, 0-Disable.
   3094 	 */
   3095 	QCA_WLAN_VENDOR_ATTR_CONFIG_TX_STBC = 68,
   3096 
   3097 	/* 8-bit unsigned value. This attribute is used to dynamically
   3098 	 * enable/disable the RX STBC capability of the device. When configured
   3099 	 * in the disconnected state, the updated configuration will be
   3100 	 * considered for the immediately following connection attempt. If the
   3101 	 * configuration is modified in the connected state, there will be no
   3102 	 * impact for the current association, but further connection attempts
   3103 	 * will use the updated configuration.
   3104 	 * 1-Enable, 0-Disable.
   3105 	 */
   3106 	QCA_WLAN_VENDOR_ATTR_CONFIG_RX_STBC = 69,
   3107 
   3108 	/* 8-bit unsigned value. Refer to TX/RX NSS and chain configurations */
   3109 	QCA_WLAN_VENDOR_ATTR_CONFIG_NSS = 70,
   3110 
   3111 	/* 8-bit unsigned value to configure Optimized Power Management mode:
   3112 	 * Modes are defined by enum qca_wlan_vendor_opm_mode.
   3113 	 *
   3114 	 * This attribute shall be configured along with
   3115 	 * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_ITO and
   3116 	 * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_SPEC_WAKE_INTERVAL attributes
   3117 	 * when its value is set to %QCA_WLAN_VENDOR_OPM_MODE_USER_DEFINED.
   3118 	 */
   3119 	QCA_WLAN_VENDOR_ATTR_CONFIG_OPTIMIZED_POWER_MANAGEMENT = 71,
   3120 
   3121 	/* 8-bit unsigned value. This attribute takes the QoS/access category
   3122 	 * value represented by the enum qca_wlan_ac_type and expects the driver
   3123 	 * to upgrade the UDP frames to this access category. The value of
   3124 	 * QCA_WLAN_AC_ALL is invalid for this attribute. This will override the
   3125 	 * DSCP value configured in the frame with the intention to only upgrade
   3126 	 * the access category. That said, it is not intended to downgrade the
   3127 	 * access category for the frames.
   3128 	 * Set the value to QCA_WLAN_AC_BK if the QoS upgrade needs to be
   3129 	 * disabled, as BK is of the lowest priority and an upgrade to it does
   3130 	 * not result in any changes for the frames.
   3131 	 *
   3132 	 * If only UDP frames of BE or BK access category needs to be upgraded
   3133 	 * without changing the access category of VO or VI UDP frames, refer to
   3134 	 * attribute QCA_WLAN_VENDOR_ATTR_CONFIG_UDP_QOS_UPGRADE_FOR_BE_BK.
   3135 	 *
   3136 	 * This attribute is not recommended to be used as it blindly forces all
   3137 	 * UDP packets to a higher access category which could impact the
   3138 	 * traffic pattern of all apps using UDP and can cause unknown behavior.
   3139 	 */
   3140 	QCA_WLAN_VENDOR_ATTR_CONFIG_UDP_QOS_UPGRADE = 72,
   3141 
   3142 	/* 8-bit unsigned value. Refer to TX/RX NSS and chain configurations */
   3143 	QCA_WLAN_VENDOR_ATTR_CONFIG_NUM_TX_CHAINS = 73,
   3144 
   3145 	/* 8-bit unsigned value. Refer to TX/RX NSS and chain configurations */
   3146 	QCA_WLAN_VENDOR_ATTR_CONFIG_NUM_RX_CHAINS = 74,
   3147 
   3148 	/* 8-bit unsigned value to configure ANI setting type.
   3149 	 * See &enum qca_wlan_ani_setting for possible values.
   3150 	 */
   3151 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANI_SETTING = 75,
   3152 	/* 32-bit signed value to configure ANI level. This is used when
   3153 	 * ANI settings type is &QCA_WLAN_ANI_SETTING_FIXED.
   3154 	 * The set and get of ANI level with &QCA_WLAN_ANI_SETTING_AUTO
   3155 	 * is invalid, the driver will return a failure.
   3156 	 */
   3157 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANI_LEVEL = 76,
   3158 
   3159 	/* 8-bit unsigned value. This attribute is used to dynamically configure
   3160 	 * the number of spatial streams used for transmitting the data. When
   3161 	 * configured in the disconnected state, the configured value will
   3162 	 * be considered for the following connection attempt.
   3163 	 * If the NSS is updated after the connection, the updated NSS value
   3164 	 * is notified to the peer using the Operating Mode Notification/Spatial
   3165 	 * Multiplexing Power Save frame.
   3166 	 * The TX NSS value configured after the connection shall not be greater
   3167 	 * than the value negotiated during the connection. Any such higher
   3168 	 * value configuration shall be treated as invalid configuration by
   3169 	 * the driver. This attribute shall be configured along with
   3170 	 * QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS attribute to define the symmetric
   3171 	 * configuration (such as 2X2 or 1X1) or the asymmetric
   3172 	 * configuration (such as 1X2).
   3173 	 * If QCA_WLAN_VENDOR_ATTR_CONFIG_NSS attribute is also provided along
   3174 	 * with this QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS attribute the driver
   3175 	 * will update the TX NSS based on QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS.
   3176 	 */
   3177 	QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS = 77,
   3178 
   3179 	/* 8-bit unsigned value. This attribute is used to dynamically configure
   3180 	 * the number of spatial streams used for receiving the data. When
   3181 	 * configured in the disconnected state, the configured value will
   3182 	 * be considered for the following connection attempt.
   3183 	 * If the NSS is updated after the connection, the updated NSS value
   3184 	 * is notified to the peer using the Operating Mode Notification/Spatial
   3185 	 * Multiplexing Power Save frame.
   3186 	 * The RX NSS value configured after the connection shall not be greater
   3187 	 * than the value negotiated during the connection. Any such higher
   3188 	 * value configuration shall be treated as invalid configuration by
   3189 	 * the driver. This attribute shall be configured along with
   3190 	 * QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS attribute to define the symmetric
   3191 	 * configuration (such as 2X2 or 1X1) or the asymmetric
   3192 	 * configuration (such as 1X2).
   3193 	 * If QCA_WLAN_VENDOR_ATTR_CONFIG_NSS attribute is also provided along
   3194 	 * with this QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS attribute the driver
   3195 	 * will update the RX NSS based on QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS.
   3196 	 */
   3197 	QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS = 78,
   3198 
   3199 	/*
   3200 	 * 8-bit unsigned value. This attribute, when set, indicates whether the
   3201 	 * specified interface is the primary STA interface when there are more
   3202 	 * than one STA interfaces concurrently active.
   3203 	 *
   3204 	 * This configuration helps the firmware/hardware to support certain
   3205 	 * features (e.g., roaming) on this primary interface, if the same
   3206 	 * cannot be supported on the concurrent STA interfaces simultaneously.
   3207 	 *
   3208 	 * This configuration is only applicable for a single STA interface on
   3209 	 * a device and gives the priority for it only over other concurrent STA
   3210 	 * interfaces.
   3211 	 *
   3212 	 * If the device is a multi wiphy/soc, this configuration applies to a
   3213 	 * single STA interface across the wiphys.
   3214 	 *
   3215 	 * 1-Enable (is the primary STA), 0-Disable (is not the primary STA)
   3216 	 */
   3217 	QCA_WLAN_VENDOR_ATTR_CONFIG_CONCURRENT_STA_PRIMARY = 79,
   3218 
   3219 	/*
   3220 	 * 8-bit unsigned value. This attribute can be used to configure the
   3221 	 * driver to enable/disable FT-over-DS feature. Possible values for
   3222 	 * this attribute are 1-Enable and 0-Disable.
   3223 	 */
   3224 	QCA_WLAN_VENDOR_ATTR_CONFIG_FT_OVER_DS = 80,
   3225 
   3226 	/*
   3227 	 * 8-bit unsigned value. This attribute can be used to configure the
   3228 	 * firmware to enable/disable ARP/NS offload feature. Possible values
   3229 	 * for this attribute are 0-Disable and 1-Enable.
   3230 	 *
   3231 	 * This attribute is only applicable for STA/P2P-Client interface,
   3232 	 * and is optional, default behavior is ARP/NS offload enabled.
   3233 	 *
   3234 	 * This attribute can be set in disconnected and connected state, and
   3235 	 * will restore to the default behavior if the interface is closed.
   3236 	 */
   3237 	QCA_WLAN_VENDOR_ATTR_CONFIG_ARP_NS_OFFLOAD = 81,
   3238 
   3239 	/*
   3240 	 * 8-bit unsigned value. This attribute can be used to configure the
   3241 	 * data path mode to be followed for audio traffic. Possible values
   3242 	 * are defined in enum qca_wlan_audio_data_path.
   3243 	 *
   3244 	 * This attribute is used only when the driver advertises support for
   3245 	 * QCA_WLAN_VENDOR_FEATURE_ENHANCED_AUDIO_EXPERIENCE_OVER_WLAN.
   3246 	 */
   3247 	QCA_WLAN_VENDOR_ATTR_CONFIG_AUDIO_DATA_PATH = 82,
   3248 
   3249 	/*
   3250 	 * 8-bit unsigned value. This attribute can be used to configure the
   3251 	 * Dedicated Bluetooth Antenna Mode (DBAM) feature. Possible values for
   3252 	 * this attribute are defined in the enum qca_wlan_dbam_config.
   3253 	 */
   3254 	QCA_WLAN_VENDOR_ATTR_CONFIG_DBAM = 83,
   3255 
   3256 	/* 8-bit unsigned value. This attribute takes the QoS/access category
   3257 	 * value represented by the enum qca_wlan_ac_type and expects the driver
   3258 	 * to upgrade the UDP frames of BE or BK access category to this access
   3259 	 * category. This attribute will not modify UDP frames of VO or VI
   3260 	 * access category. The value of QCA_WLAN_AC_ALL is invalid for this
   3261 	 * attribute.
   3262 	 *
   3263 	 * This will override the DSCP value configured in the frame with the
   3264 	 * intention to only upgrade the access category. That said, it is not
   3265 	 * intended to downgrade the access category for the frames.
   3266 	 * Set the value to QCA_WLAN_AC_BK if the QoS upgrade needs to be
   3267 	 * disabled, as BK is of the lowest priority and an upgrade to it does
   3268 	 * not result in any changes for the frames.
   3269 	 *
   3270 	 * This attribute behavior is similar to
   3271 	 * QCA_WLAN_VENDOR_ATTR_CONFIG_UDP_QOS_UPGRADE with the difference that
   3272 	 * only UDP frames of BE or BK access category are upgraded and not
   3273 	 * UDP frames of VI or VO access category.
   3274 	 *
   3275 	 * This attribute is not recommended to be used as it blindly forces all
   3276 	 * UDP packets of BE or BK access category to a higher access category
   3277 	 * which could impact the traffic pattern of all apps using UDP and can
   3278 	 * cause unknown behavior.
   3279 	 */
   3280 	QCA_WLAN_VENDOR_ATTR_CONFIG_UDP_QOS_UPGRADE_FOR_BE_BK = 84,
   3281 
   3282 	/* 8-bit unsigned value to configure the driver to enable/disable the
   3283 	 * periodic sounding for Tx beamformer functionality. The default
   3284 	 * behavior uses algorithm to do sounding based on packet stats.
   3285 	 *
   3286 	 * 0 - Default behavior.
   3287 	 * 1 - Enable the periodic sounding for Tx beamformer.
   3288 	 */
   3289 	QCA_WLAN_VENDOR_ATTR_CONFIG_BEAMFORMER_PERIODIC_SOUNDING = 85,
   3290 
   3291 	/* 8-bit unsigned value, whenever wifi calling (wfc) begins or ends,
   3292 	 * userspace sends this information to the driver/firmware to configure
   3293 	 * wfc state. The driver/firmware uses this information to
   3294 	 * optimize power savings, rate adaption, roaming, etc.
   3295 	 *
   3296 	 * 1 - wfc is on.
   3297 	 * 0 - wfc is off.
   3298 	 */
   3299 	QCA_WLAN_VENDOR_ATTR_CONFIG_WFC_STATE = 86,
   3300 
   3301 	/* 8-bit unsigned value to configure the driver to enable/disable the
   3302 	 * EHT EML capability in management frame EHT capabilities.
   3303 	 * 1 - Enable, 0 - Disable.
   3304 	 */
   3305 	QCA_WLAN_VENDOR_ATTR_CONFIG_EHT_EML_CAPABILITY = 87,
   3306 
   3307 	/* 8-bit unsigned value to configure the driver with EHT MLO max
   3308 	 * simultaneous links to be used for MLO connection.
   3309 	 * The range of the value is 0 to 14.
   3310 	 */
   3311 	QCA_WLAN_VENDOR_ATTR_CONFIG_EHT_MLO_MAX_SIMULTANEOUS_LINKS = 88,
   3312 
   3313 	/* 8-bit unsigned value to configure the driver with EHT MLO maximum
   3314 	 * number of links to be used for MLO connection. Value 0 restores the
   3315 	 * default value of the maximum MLO links capability of the device.
   3316 	 * The range of the value is 0 to 15.
   3317 	 *
   3318 	 * 0 - Restore default device limit.
   3319 	 * 1 to 15 - Set the maximum number of links to be used for an MLO
   3320 	 * connection.
   3321 	 */
   3322 	QCA_WLAN_VENDOR_ATTR_CONFIG_EHT_MLO_MAX_NUM_LINKS = 89,
   3323 
   3324 	/* 8-bit unsigned value to configure the driver with EHT MLO mode.
   3325 	 * Uses enum qca_wlan_eht_mlo_mode values.
   3326 	 */
   3327 	QCA_WLAN_VENDOR_ATTR_CONFIG_EHT_MLO_MODE = 90,
   3328 
   3329 	/* Nested attribute with frequencies in u32 attributes to configure a
   3330 	 * list of allowed 20 MHz channel center frequencies in MHz for AP
   3331 	 * operation. Whenever performing a channel selection operation, the
   3332 	 * driver shall generate a new list based on this provided list by
   3333 	 * filtering out channels that cannot be used at that time due to
   3334 	 * regulatory or other constraints. The resulting list is used as the
   3335 	 * list of all allowed channels, i.e., operation on any channel that is
   3336 	 * not included is not allowed, whenever performing operations like ACS
   3337 	 * and DFS.
   3338 	 *
   3339 	 * Userspace shall configure this before starting the AP and the
   3340 	 * configuration is valid only from the next BSS start and until the
   3341 	 * BSS is stopped. The driver shall clear this configuration when the
   3342 	 * AP is stopped and fall back to the default behavior for subsequent
   3343 	 * AP operation.
   3344 	 *
   3345 	 * The default behavior when this configuration is not applicable is the
   3346 	 * driver can choose any of the channels supported by the hardware
   3347 	 * except the channels that cannot be used due to regulatory or other
   3348 	 * constraints.
   3349 	 *
   3350 	 * The driver shall reject this configuration if done after the AP is
   3351 	 * started. This attribute can be used to specify user's choice of
   3352 	 * frequencies and static puncture channel list, etc.
   3353 	 */
   3354 	QCA_WLAN_VENDOR_ATTR_CONFIG_AP_ALLOWED_FREQ_LIST = 91,
   3355 
   3356 	/* Nested attribute to indicate EHT MLO links to be forced active.
   3357 	 * It contains link MAC address attributes. These nested attributes are
   3358 	 * of the type NL80211_ATTR_MAC and are used to force enabling of the
   3359 	 * MLO links corresponding to the indicated link MAC addresses.
   3360 	 * Subsequently, the links corresponding to the link MAC addresses that
   3361 	 * are not indicated are forced inactive.
   3362 	 */
   3363 	QCA_WLAN_VENDOR_ATTR_CONFIG_EHT_MLO_ACTIVE_LINKS = 92,
   3364 
   3365 	/* 8-bit unsigned value to configure EMLSR mode entry or exit.
   3366 	 * Uses enum qca_wlan_emlsr_mode values.
   3367 	 */
   3368 	QCA_WLAN_VENDOR_ATTR_CONFIG_EMLSR_MODE_SWITCH = 93,
   3369 
   3370 	/* 8-bit unsigned value to configure the channel bandwidth
   3371 	 * for CTS frame transmission during the dymamic bandwidth
   3372 	 * signaling CTS procedure referred in IEEE Std 802.11-2020,
   3373 	 * 10.3.2.9 CTS and DMG CTS procedure.
   3374 	 * This configuration is used for testing purposes.
   3375 	 *
   3376 	 * This uses values defined in enum nl80211_chan_width.
   3377 	 */
   3378 	QCA_WLAN_VENDOR_ATTR_CONFIG_CTS_CHANNEL_WIDTH = 94,
   3379 
   3380 	/* 8-bit unsigned value. This attribute is used to dynamically
   3381 	 * enable/suspend trigger based UL MU transmission.
   3382 	 * This is supported in STA mode and the device sends Operating
   3383 	 * Mode Indication to inform the change as described in
   3384 	 * IEEE Std 802.11ax-2021, 26.9.
   3385 	 *
   3386 	 * This attribute can be configured when the STA is associated
   3387 	 * to an AP and the configuration is maintained until the current
   3388 	 * association terminates.
   3389 	 *
   3390 	 * By default all UL MU transmissions are enabled.
   3391 	 *
   3392 	 * Uses enum qca_ul_mu_config values.
   3393 	 */
   3394 	QCA_WLAN_VENDOR_ATTR_CONFIG_UL_MU_CONFIG = 95,
   3395 
   3396 	/* 8-bit unsigned value. Optionally specified along with
   3397 	 * %QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_WIDTH when STA is in connected
   3398 	 * state. This configuration is applicable only for the current
   3399 	 * connection. This configuration not allowed in disconnected state.
   3400 	 * This configuration can be sent inside
   3401 	 * %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINKS to specify the maximum
   3402 	 * supported channel width update type per-MLO link.
   3403 	 *
   3404 	 * Uses enum qca_chan_width_update_type values.
   3405 	 */
   3406 	QCA_WLAN_VENDOR_ATTR_CONFIG_CHAN_WIDTH_UPDATE_TYPE = 96,
   3407 
   3408 	/* 8-bit unsigned value to set EPCS (Emergency Preparedness
   3409 	 * Communications Service) feature capability
   3410 	 * 1 - Enable, 0 - Disable.
   3411 	 *
   3412 	 * This configuration is used for testing purposes.
   3413 	 */
   3414 	QCA_WLAN_VENDOR_ATTR_CONFIG_EPCS_CAPABILITY = 97,
   3415 
   3416 	/* 8-bit unsigned value to enable/disable EPCS priority access
   3417 	 * 1 - Enable, 0 - Disable.
   3418 	 * The EPCS priority access shall be enabled only when EPCS feature
   3419 	 * capability is also enabled (see
   3420 	 * QCA_WLAN_VENDOR_ATTR_CONFIG_EPCS_CAPABILITY).
   3421 	 *
   3422 	 * This configuration is used for testing purposes.
   3423 	 */
   3424 	QCA_WLAN_VENDOR_ATTR_CONFIG_EPCS_FUNCTION = 98,
   3425 
   3426 	/* 8-bit unsigned value. Used to specify the MLO link ID of a link
   3427 	 * that is being configured. This attribute must be included in each
   3428 	 * record nested inside %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINKS, and
   3429 	 * may be included without nesting to indicate the link that is the
   3430 	 * target of other configuration attributes.
   3431 	 */
   3432 	QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINK_ID = 99,
   3433 
   3434 	/* Array of nested links each identified by
   3435 	 * %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINK_ID. This uses values defined in
   3436 	 * enum qca_wlan_vendor_attr_config, explicit documentation shall be
   3437 	 * added for the attributes in enum qca_wlan_vendor_attr_config to
   3438 	 * support per-MLO link configuration through
   3439 	 * %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINKS.
   3440 	 *
   3441 	 * Userspace can configure a single link or multiple links with this
   3442 	 * attribute by nesting the corresponding configuration attributes and
   3443 	 * %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINK_ID for each link.
   3444 	 *
   3445 	 * Userspace can fetch the configuration attribute values for a single
   3446 	 * link or multiple links with this attribute by nesting the
   3447 	 * corresponding configuration attributes and
   3448 	 * %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINK_ID for each link.
   3449 	 *
   3450 	 * For STA interface, this attribute is applicable only in connected
   3451 	 * state when the current connection is MLO capable. The valid values of
   3452 	 * %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINK_ID are the link IDs of the
   3453 	 * connected AP MLD links.
   3454 	 *
   3455 	 * For AP interface, this configuration applicable only after adding
   3456 	 * MLO links to the AP interface with %NL80211_CMD_ADD_LINK and the
   3457 	 * valid values of %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINK_ID are the link
   3458 	 * IDs specified in %NL80211_CMD_ADD_LINK while adding the MLO links to
   3459 	 * the AP interface.
   3460 	 */
   3461 	QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINKS = 100,
   3462 
   3463 	/* 16-bit unsigned value to configure power save inactivity timeout in
   3464 	 * milliseconds.
   3465 	 *
   3466 	 * STA enters into power save mode (PM=1) after TX/RX inactivity of time
   3467 	 * duration specified by %QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_ITO.
   3468 	 *
   3469 	 * This attribute shall be configured along with
   3470 	 * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_SPEC_WAKE_INTERVAL when
   3471 	 * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPTIMIZED_POWER_MANAGEMENT
   3472 	 * is set to %QCA_WLAN_VENDOR_OPM_MODE_USER_DEFINED mode.
   3473 	 */
   3474 	QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_ITO = 101,
   3475 
   3476 	/* 16-bit unsigned value to configure speculative wake interval in
   3477 	 * milliseconds.
   3478 	 *
   3479 	 * STA speculatively wakes up to look for buffered data by AP at
   3480 	 * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_SPEC_WAKE_INTERVAL interval after
   3481 	 * entering into power save. If configured zero, STA wakes up at
   3482 	 * upcoming DTIM beacon.
   3483 	 *
   3484 	 * This attribute shall be configured along with
   3485 	 * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_ITO and
   3486 	 * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPTIMIZED_POWER_MANAGEMENT
   3487 	 * to %QCA_WLAN_VENDOR_OPM_MODE_USER_DEFINED mode.
   3488 	 */
   3489 	QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_SPEC_WAKE_INTERVAL = 102,
   3490 
   3491 	/*
   3492 	 * 16-bit unsigned value to configure TX max A-MPDU count.
   3493 	 *
   3494 	 * For STA interface, this attribute is applicable only in connected
   3495 	 * state, peer MAC address is not required to be provided.
   3496 	 *
   3497 	 * For AP interface, this attribute is applicable only in started
   3498 	 * state and one of the associated peer STAs must be specified with
   3499 	 * QCA_WLAN_VENDOR_ATTR_CONFIG_PEER_MAC. If this is for an ML
   3500 	 * association, the peer MAC address provided is the link address of
   3501 	 * the non-AP MLD.
   3502 	 *
   3503 	 * This attribute runtime configures the TX maximum aggregation size.
   3504 	 * The value must be in range of 1 to BA window size for the specific
   3505 	 * peer.
   3506 	 */
   3507 	QCA_WLAN_VENDOR_ATTR_CONFIG_PEER_AMPDU_CNT = 103,
   3508 
   3509 	/*
   3510 	 * 8-bit unsigned value to configure TID-to-link mapping negotiation
   3511 	 * type.
   3512 	 * Uses enum qca_wlan_ttlm_negotiation_support values.
   3513 	 *
   3514 	 * This value applies to the complete AP/non-AP MLD interface, and the
   3515 	 * MLD advertises it within the Basic Multi-Link element in the
   3516 	 * association frames. If a new value is configured during an active
   3517 	 * connection, it will take effect in the subsequent associations and
   3518 	 * is not reset during disconnection.
   3519 	 *
   3520 	 * This attribute is used for testing purposes.
   3521 	 */
   3522 	QCA_WLAN_VENDOR_ATTR_CONFIG_TTLM_NEGOTIATION_SUPPORT = 104,
   3523 
   3524 	/* 8-bit unsigned value.
   3525 	 *
   3526 	 * This attribute configures a traffic shaping mode
   3527 	 * applied during coex scenarios.
   3528 	 * By default all coex traffic shaping modes are enabled,
   3529 	 * i.e., shape WLAN traffic based on coex traffic pattern and priority.
   3530 	 * To shape traffic, STA may enter in power save mode
   3531 	 * and AP may send CTS-to-self frame.
   3532 	 *
   3533 	 * Uses enum qca_coex_traffic_shaping_mode values.
   3534 	 */
   3535 	QCA_WLAN_VENDOR_ATTR_CONFIG_COEX_TRAFFIC_SHAPING_MODE = 105,
   3536 
   3537 	/* 8-bit unsigned value.
   3538 	 *
   3539 	 * This attribute is used to specify whether an associated peer is a QCA
   3540 	 * device. The associated peer is specified with
   3541 	 * QCA_WLAN_VENDOR_ATTR_CONFIG_PEER_MAC. For MLO cases, the MLD MAC
   3542 	 * address of the peer is used.
   3543 	 * 1 - QCA device, 0 - non-QCA device.
   3544 	 */
   3545 	QCA_WLAN_VENDOR_ATTR_CONFIG_QCA_PEER = 106,
   3546 
   3547 	/* 8-bit unsigned value to configure BTM support.
   3548 	 *
   3549 	 * The attribute is applicable only for STA interface. Uses enum
   3550 	 * qca_wlan_btm_support values. This configuration is not allowed in
   3551 	 * connected state.
   3552 	 */
   3553 	QCA_WLAN_VENDOR_ATTR_CONFIG_BTM_SUPPORT = 107,
   3554 
   3555 	/* 16-bit unsigned value to configure client's keep-alive interval in
   3556 	 * seconds. The driver will reduce the keep-alive interval to this
   3557 	 * configured value if the AP advertises BSS maximum idle period and if
   3558 	 * that BSS max idle period is larger than this configured value. If the
   3559 	 * AP does not advertise a maximum value, the configured value will be
   3560 	 * used as a keep-alive period for unprotected frames.
   3561 	 *
   3562 	 * This configuration is applicable only during the STA's current
   3563 	 * association.
   3564 	 */
   3565 	QCA_WLAN_VENDOR_ATTR_CONFIG_KEEP_ALIVE_INTERVAL = 108,
   3566 
   3567 	/* 8-bit unsigned value to configure reduced power scan mode.
   3568 	 *
   3569 	 * This attribute is used to configure the driver to optimize power
   3570 	 * during scan. For example, the driver can switch to 1x1 from 2x2 mode
   3571 	 * for additional power save.
   3572 	 *
   3573 	 * 1 - Enable reduced power scan mode.
   3574 	 * 0 - Disable reduced power scan mode.
   3575 	 */
   3576 	QCA_WLAN_VENDOR_ATTR_CONFIG_REDUCED_POWER_SCAN_MODE = 109,
   3577 
   3578 	/* 8-bit unsigned value. Refer to TX/RX NSS and chain configurations */
   3579 	QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS_2GHZ = 110,
   3580 
   3581 	/* 8-bit unsigned value. Refer to TX/RX NSS and chain configurations */
   3582 	QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS_2GHZ = 111,
   3583 
   3584 	/* 8-bit unsigned value. Refer to TX/RX NSS and chain configurations */
   3585 	QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS_5GHZ = 112,
   3586 
   3587 	/* 8-bit unsigned value. Refer to TX/RX NSS and chain configurations */
   3588 	QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS_5GHZ = 113,
   3589 
   3590 	/* 8-bit unsigned value. Refer to TX/RX NSS and chain configurations */
   3591 	QCA_WLAN_VENDOR_ATTR_CONFIG_NUM_TX_CHAINS_2GHZ = 114,
   3592 
   3593 	/* 8-bit unsigned value. Refer to TX/RX NSS and chain configurations */
   3594 	QCA_WLAN_VENDOR_ATTR_CONFIG_NUM_RX_CHAINS_2GHZ = 115,
   3595 
   3596 	/* 8-bit unsigned value. Refer to TX/RX NSS and chain configurations */
   3597 	QCA_WLAN_VENDOR_ATTR_CONFIG_NUM_TX_CHAINS_5GHZ = 116,
   3598 
   3599 	/* 8-bit unsigned value. Refer to TX/RX NSS and chain configurations */
   3600 	QCA_WLAN_VENDOR_ATTR_CONFIG_NUM_RX_CHAINS_5GHZ = 117,
   3601 
   3602 	/* 16-bit unsigned value. This attribute is used to dynamically
   3603 	 * configure the time duration of data stall detection. Unit is
   3604 	 * milliseconds. Valid value range is 0 or 10 ms to 10000 ms. If the
   3605 	 * value is 0, the previously configured value is cleared. The driver
   3606 	 * rejects this configuration if the value is out of range. This
   3607 	 * configuration is effective for all connections on the chip. If the
   3608 	 * duration is greater than this configuration and consecutive TX no ack
   3609 	 * count is greater than
   3610 	 * QCA_WLAN_VENDOR_ATTR_CONFIG_CONSECUTIVE_TX_NO_ACK_THRESHOLD,
   3611 	 * data stall event is sent to userspace.
   3612 	 */
   3613 	QCA_WLAN_VENDOR_ATTR_CONFIG_CONSECUTIVE_TX_NO_ACK_DURATION = 118,
   3614 
   3615 	/* 16-bit unsigned value. This attribute is used to dynamically
   3616 	 * configure the threshold of data stall detection. Valid value is 0 or
   3617 	 * greater than 10. if the value is 0, the previously configured value
   3618 	 * is cleared. The driver rejects this configuration if the value is out
   3619 	 * of range. This configuration is effective for all connections on the
   3620 	 * chip. If consecutive TX no ack count is greater than this
   3621 	 * configuration and duration is greater than
   3622 	 * QCA_WLAN_VENDOR_ATTR_CONFIG_CONSECUTIVE_TX_NO_ACK_DURATION,
   3623 	 * data stall event is sent to userspace.
   3624 	 */
   3625 	QCA_WLAN_VENDOR_ATTR_CONFIG_CONSECUTIVE_TX_NO_ACK_THRESHOLD = 119,
   3626 
   3627 	/* 8-bit unsigned value to configure the interface offload type
   3628 	 *
   3629 	 * This attribute is used to configure the interface offload capability.
   3630 	 * User can configure software based acceleration, hardware based
   3631 	 * acceleration, or a combination of both using this option. More
   3632 	 * details on each option is described under the enum definition below.
   3633 	 * Uses enum qca_wlan_intf_offload_type for values.
   3634 	 */
   3635 	QCA_WLAN_VENDOR_ATTR_CONFIG_INTF_OFFLOAD_TYPE = 120,
   3636 
   3637 	/* 8-bit unsigned integer to configure the driver to follow AP's
   3638 	 * preference values to select a roam candidate from BTM request.
   3639 	 *
   3640 	 * This attribute is used to configure the driver to select the roam
   3641 	 * candidate based on AP advertised preference values. If not set,
   3642 	 * the driver uses its internal scoring algorithm to do the same.
   3643 	 *
   3644 	 * 1 - STA follows AP's preference values to select a roam candidate
   3645 	 * 0 - STA uses internal scoring algorithm to select a roam candidate
   3646 	 */
   3647 	QCA_WLAN_VENDOR_ATTR_CONFIG_FOLLOW_AP_PREFERENCE_FOR_CNDS_SELECT = 121,
   3648 
   3649 	/* keep last */
   3650 	QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST,
   3651 	QCA_WLAN_VENDOR_ATTR_CONFIG_MAX =
   3652 	QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST - 1,
   3653 };
   3654 
   3655 /* Compatibility defines for previously used incorrect enum
   3656  * qca_wlan_vendor_attr_config names. These values should not be used in any
   3657  * new implementation. */
   3658 #define QCA_WLAN_VENDOR_ATTR_DISCONNECT_IES \
   3659 	QCA_WLAN_VENDOR_ATTR_CONFIG_DISCONNECT_IES
   3660 #define QCA_WLAN_VENDOR_ATTR_BEACON_REPORT_FAIL \
   3661 	QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_REPORT_FAIL
   3662 
   3663 /**
   3664  * enum qca_ul_mu_config - UL MU configuration
   3665  * @QCA_UL_MU_SUSPEND - All trigger based UL MU transmission is suspended
   3666  * @QCA_UL_MU_ENABLE - All trigger based UL MU transmission is enabled
   3667  */
   3668 enum qca_ul_mu_config {
   3669 	QCA_UL_MU_SUSPEND = 0,
   3670 	QCA_UL_MU_ENABLE = 1,
   3671 };
   3672 
   3673 /**
   3674  * enum qca_dbam_config - Specifies DBAM config mode
   3675  * @QCA_DBAM_DISABLE: Firmware disables DBAM
   3676  * @QCA_DBAM_ENABLE: Firmware enables DBAM opportunistically when
   3677  * internal criteria are met.
   3678  * @QCA_DBAM_FORCE_ENABLE: Firmware enables DBAM forcefully.
   3679  */
   3680 enum qca_dbam_config {
   3681 	QCA_DBAM_DISABLE = 0,
   3682 	QCA_DBAM_ENABLE = 1,
   3683 	QCA_DBAM_FORCE_ENABLE = 2,
   3684 };
   3685 
   3686 /**
   3687  * enum qca_wlan_ani_setting - ANI setting type
   3688  * @QCA_WLAN_ANI_SETTING_AUTO: Automatically determine ANI level
   3689  * @QCA_WLAN_ANI_SETTING_FIXED: Fix ANI level to the dBm parameter
   3690  */
   3691 enum qca_wlan_ani_setting {
   3692 	QCA_WLAN_ANI_SETTING_AUTO = 0,
   3693 	QCA_WLAN_ANI_SETTING_FIXED = 1,
   3694 };
   3695 
   3696 /**
   3697  * enum qca_wlan_vendor_attr_sap_config - Parameters for AP configuration
   3698  *
   3699  * @QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL: Optional (u8)
   3700  * Channel number on which Access Point should restart.
   3701  * Note: If both the driver and user space application supports the 6 GHz band,
   3702  * this attribute is deprecated and QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY
   3703  * should be used.
   3704  * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL
   3705  * is still used if either of the driver or user space application doesn't
   3706  * support the 6 GHz band.
   3707  *
   3708  * @QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY: Optional (u32)
   3709  * Channel center frequency (MHz) on which the access point should restart.
   3710  */
   3711 enum qca_wlan_vendor_attr_sap_config {
   3712 	QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_INVALID = 0,
   3713 	QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL = 1,
   3714 
   3715 	/* List of frequencies on which AP is expected to operate.
   3716 	 * This is irrespective of ACS configuration. This list is a priority
   3717 	 * based one and is looked for before the AP is created to ensure the
   3718 	 * best concurrency sessions (avoid MCC and use DBS/SCC) co-exist in
   3719 	 * the system.
   3720 	 */
   3721 	QCA_WLAN_VENDOR_ATTR_SAP_MANDATORY_FREQUENCY_LIST = 2,
   3722 	QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY = 3,
   3723 
   3724 	QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_AFTER_LAST,
   3725 	QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_MAX =
   3726 	QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_AFTER_LAST - 1,
   3727 };
   3728 
   3729 /**
   3730  * enum qca_wlan_vendor_attr_sap_conditional_chan_switch - Parameters for AP
   3731  *					conditional channel switch
   3732  */
   3733 enum qca_wlan_vendor_attr_sap_conditional_chan_switch {
   3734 	QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_INVALID = 0,
   3735 	/* Priority based frequency list (an array of u32 values in host byte
   3736 	 * order)
   3737 	 */
   3738 	QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST = 1,
   3739 	/* Status of the conditional switch (u32).
   3740 	 * 0: Success, Non-zero: Failure
   3741 	 */
   3742 	QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS = 2,
   3743 
   3744 	QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST,
   3745 	QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_MAX =
   3746 	QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST - 1,
   3747 };
   3748 
   3749 /**
   3750  * enum qca_wlan_gpio_attr - Parameters for GPIO configuration
   3751  *
   3752  * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND: Required (u32)
   3753  * value to specify the GPIO command. Please refer to enum qca_gpio_cmd_type
   3754  * for the available values.
   3755  *
   3756  * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM: Required (u32)
   3757  * value to specify the GPIO number.
   3758  * This is required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
   3759  * %QCA_WLAN_VENDOR_GPIO_CONFIG or %QCA_WLAN_VENDOR_GPIO_OUTPUT.
   3760  *
   3761  * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_VALUE: Required (u32)
   3762  * value to specify the GPIO output level. Please refer to enum qca_gpio_value
   3763  * for the available values.
   3764  * This is required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
   3765  * %QCA_WLAN_VENDOR_GPIO_OUTPUT.
   3766  *
   3767  * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PULL_TYPE: Optional (u32)
   3768  * value to specify the GPIO pull type. Please refer to enum qca_gpio_pull_type
   3769  * for the available values.
   3770  * This is required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
   3771  * %QCA_WLAN_VENDOR_GPIO_CONFIG and
   3772  * %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG attribute is not present.
   3773  * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG
   3774  * attribute is present.
   3775  *
   3776  * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTR_MODE: Optional (u32)
   3777  * value to specify the GPIO interrupt mode. Please refer to enum
   3778  * qca_gpio_interrupt_mode for the available values.
   3779  * This is required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
   3780  * %QCA_WLAN_VENDOR_GPIO_CONFIG and
   3781  * %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG attribute is not present.
   3782  * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG
   3783  * attribute is present.
   3784  *
   3785  * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DIR: Optional (u32)
   3786  * value to specify the GPIO direction. Please refer to enum qca_gpio_direction
   3787  * for the available values.
   3788  * This is required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
   3789  * %QCA_WLAN_VENDOR_GPIO_CONFIG and
   3790  * %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG attribute is not present.
   3791  * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG
   3792  * attribute is present.
   3793  *
   3794  * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MUX_CONFIG: Optional (u32)
   3795  * Value to specify the mux config. Meaning of a given value is dependent
   3796  * on the target chipset and GPIO pin. Must be of the range 0-15.
   3797  * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
   3798  * %QCA_WLAN_VENDOR_GPIO_CONFIG. Defaults to 0.
   3799  *
   3800  * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DRIVE: Optional (u32)
   3801  * Value to specify the drive, refer to enum qca_gpio_drive.
   3802  * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
   3803  * %QCA_WLAN_VENDOR_GPIO_CONFIG. Defaults to QCA_WLAN_GPIO_DRIVE_2MA(0).
   3804  *
   3805  * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG: Optional (flag)
   3806  * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
   3807  * %QCA_WLAN_VENDOR_GPIO_CONFIG. When present this attribute signals that all
   3808  * other parameters for the given GPIO will be obtained from internal
   3809  * configuration. Only %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM must be
   3810  * specified to indicate the GPIO pin being configured.
   3811  */
   3812 enum qca_wlan_gpio_attr {
   3813 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INVALID = 0,
   3814 	/* Unsigned 32-bit attribute for GPIO command */
   3815 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND = 1,
   3816 	/* Unsigned 32-bit attribute for GPIO PIN number to configure */
   3817 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM = 2,
   3818 	/* Unsigned 32-bit attribute for GPIO value to configure */
   3819 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_VALUE = 3,
   3820 	/* Unsigned 32-bit attribute for GPIO pull type */
   3821 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PULL_TYPE = 4,
   3822 	/* Unsigned 32-bit attribute for GPIO interrupt mode */
   3823 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTR_MODE = 5,
   3824 	/* Unsigned 32-bit attribute for GPIO direction to configure */
   3825 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DIR = 6,
   3826 	/* Unsigned 32-bit attribute for GPIO mux config */
   3827 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MUX_CONFIG = 7,
   3828 	/* Unsigned 32-bit attribute for GPIO drive */
   3829 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DRIVE = 8,
   3830 	/* Flag attribute for using internal GPIO configuration */
   3831 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG = 9,
   3832 
   3833 	/* keep last */
   3834 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_LAST,
   3835 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MAX =
   3836 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_LAST - 1
   3837 };
   3838 
   3839 /**
   3840  * enum gpio_cmd_type - GPIO configuration command type
   3841  * @QCA_WLAN_VENDOR_GPIO_CONFIG: Set GPIO configuration info
   3842  * @QCA_WLAN_VENDOR_GPIO_OUTPUT: Set GPIO output level
   3843  */
   3844 enum qca_gpio_cmd_type {
   3845 	QCA_WLAN_VENDOR_GPIO_CONFIG = 0,
   3846 	QCA_WLAN_VENDOR_GPIO_OUTPUT = 1,
   3847 };
   3848 
   3849 /**
   3850  * enum qca_gpio_pull_type - GPIO pull type
   3851  * @QCA_WLAN_GPIO_PULL_NONE: Set GPIO pull type to none
   3852  * @QCA_WLAN_GPIO_PULL_UP: Set GPIO pull up
   3853  * @QCA_WLAN_GPIO_PULL_DOWN: Set GPIO pull down
   3854  */
   3855 enum qca_gpio_pull_type {
   3856 	QCA_WLAN_GPIO_PULL_NONE = 0,
   3857 	QCA_WLAN_GPIO_PULL_UP = 1,
   3858 	QCA_WLAN_GPIO_PULL_DOWN = 2,
   3859 	QCA_WLAN_GPIO_PULL_MAX,
   3860 };
   3861 
   3862 /**
   3863  * enum qca_gpio_direction - GPIO direction
   3864  * @QCA_WLAN_GPIO_INPUT: Set GPIO as input mode
   3865  * @QCA_WLAN_GPIO_OUTPUT: Set GPIO as output mode
   3866  * @QCA_WLAN_GPIO_VALUE_MAX: Invalid value
   3867  */
   3868 enum qca_gpio_direction {
   3869 	QCA_WLAN_GPIO_INPUT = 0,
   3870 	QCA_WLAN_GPIO_OUTPUT = 1,
   3871 	QCA_WLAN_GPIO_DIR_MAX,
   3872 };
   3873 
   3874 /**
   3875  * enum qca_gpio_value - GPIO Value
   3876  * @QCA_WLAN_GPIO_LEVEL_LOW: set gpio output level to low
   3877  * @QCA_WLAN_GPIO_LEVEL_HIGH: set gpio output level to high
   3878  * @QCA_WLAN_GPIO_LEVEL_MAX: Invalid value
   3879  */
   3880 enum qca_gpio_value {
   3881 	QCA_WLAN_GPIO_LEVEL_LOW = 0,
   3882 	QCA_WLAN_GPIO_LEVEL_HIGH = 1,
   3883 	QCA_WLAN_GPIO_LEVEL_MAX,
   3884 };
   3885 
   3886 /**
   3887  * enum gpio_interrupt_mode - GPIO interrupt mode
   3888  * @QCA_WLAN_GPIO_INTMODE_DISABLE: Disable interrupt trigger
   3889  * @QCA_WLAN_GPIO_INTMODE_RISING_EDGE: Interrupt with GPIO rising edge trigger
   3890  * @QCA_WLAN_GPIO_INTMODE_FALLING_EDGE: Interrupt with GPIO falling edge trigger
   3891  * @QCA_WLAN_GPIO_INTMODE_BOTH_EDGE: Interrupt with GPIO both edge trigger
   3892  * @QCA_WLAN_GPIO_INTMODE_LEVEL_LOW: Interrupt with GPIO level low trigger
   3893  * @QCA_WLAN_GPIO_INTMODE_LEVEL_HIGH: Interrupt with GPIO level high trigger
   3894  * @QCA_WLAN_GPIO_INTMODE_MAX: Invalid value
   3895  */
   3896 enum qca_gpio_interrupt_mode {
   3897 	QCA_WLAN_GPIO_INTMODE_DISABLE = 0,
   3898 	QCA_WLAN_GPIO_INTMODE_RISING_EDGE = 1,
   3899 	QCA_WLAN_GPIO_INTMODE_FALLING_EDGE = 2,
   3900 	QCA_WLAN_GPIO_INTMODE_BOTH_EDGE = 3,
   3901 	QCA_WLAN_GPIO_INTMODE_LEVEL_LOW = 4,
   3902 	QCA_WLAN_GPIO_INTMODE_LEVEL_HIGH = 5,
   3903 	QCA_WLAN_GPIO_INTMODE_MAX,
   3904 };
   3905 
   3906 /**
   3907  * enum qca_gpio_drive - GPIO drive
   3908  * @QCA_WLAN_GPIO_DRIVE_2MA: drive 2MA
   3909  * @QCA_WLAN_GPIO_DRIVE_4MA: drive 4MA
   3910  * @QCA_WLAN_GPIO_DRIVE_6MA: drive 6MA
   3911  * @QCA_WLAN_GPIO_DRIVE_8MA: drive 8MA
   3912  * @QCA_WLAN_GPIO_DRIVE_10MA: drive 10MA
   3913  * @QCA_WLAN_GPIO_DRIVE_12MA: drive 12MA
   3914  * @QCA_WLAN_GPIO_DRIVE_14MA: drive 14MA
   3915  * @QCA_WLAN_GPIO_DRIVE_16MA: drive 16MA
   3916  * @QCA_WLAN_GPIO_DRIVE_MAX: invalid GPIO drive
   3917  */
   3918 enum qca_gpio_drive {
   3919 	QCA_WLAN_GPIO_DRIVE_2MA = 0,
   3920 	QCA_WLAN_GPIO_DRIVE_4MA = 1,
   3921 	QCA_WLAN_GPIO_DRIVE_6MA = 2,
   3922 	QCA_WLAN_GPIO_DRIVE_8MA = 3,
   3923 	QCA_WLAN_GPIO_DRIVE_10MA = 4,
   3924 	QCA_WLAN_GPIO_DRIVE_12MA = 5,
   3925 	QCA_WLAN_GPIO_DRIVE_14MA = 6,
   3926 	QCA_WLAN_GPIO_DRIVE_16MA = 7,
   3927 	QCA_WLAN_GPIO_DRIVE_MAX,
   3928 };
   3929 
   3930 /**
   3931  * qca_wlan_set_qdepth_thresh_attr - Parameters for setting
   3932  * MSDUQ depth threshold per peer per tid in the target
   3933  *
   3934  * Associated Vendor Command:
   3935  * QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH
   3936  */
   3937 enum qca_wlan_set_qdepth_thresh_attr {
   3938 	QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_INVALID = 0,
   3939 	/* 6-byte MAC address */
   3940 	QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_MAC_ADDR,
   3941 	/* Unsigned 32-bit attribute for holding the TID */
   3942 	QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_TID,
   3943 	/* Unsigned 32-bit attribute for holding the update mask
   3944 	 * bit 0 - Update high priority msdu qdepth threshold
   3945 	 * bit 1 - Update low priority msdu qdepth threshold
   3946 	 * bit 2 - Update UDP msdu qdepth threshold
   3947 	 * bit 3 - Update Non UDP msdu qdepth threshold
   3948 	 * rest of bits are reserved
   3949 	 */
   3950 	QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_UPDATE_MASK,
   3951 	/* Unsigned 32-bit attribute for holding the threshold value */
   3952 	QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_VALUE,
   3953 
   3954 	/* keep last */
   3955 	QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_LAST,
   3956 	QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_MAX =
   3957 		QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_LAST - 1,
   3958 };
   3959 
   3960 /**
   3961  * enum qca_acs_dfs_mode - Defines different types of DFS channel
   3962  * configurations for ACS operation.
   3963  *
   3964  * @QCA_ACS_DFS_MODE_NONE: Refer to invalid DFS mode
   3965  * @QCA_ACS_DFS_MODE_ENABLE: Consider DFS channels in ACS operation
   3966  * @QCA_ACS_DFS_MODE_DISABLE: Do not consider DFS channels in ACS operation
   3967  * @QCA_ACS_DFS_MODE_DEPRIORITIZE: Deprioritize DFS channels in ACS operation
   3968  */
   3969 enum qca_acs_dfs_mode {
   3970 	QCA_ACS_DFS_MODE_NONE = 0,
   3971 	QCA_ACS_DFS_MODE_ENABLE = 1,
   3972 	QCA_ACS_DFS_MODE_DISABLE = 2,
   3973 	QCA_ACS_DFS_MODE_DEPRIORITIZE = 3,
   3974 };
   3975 
   3976 /**
   3977  * enum qca_wlan_vendor_attr_acs_config - Defines Configuration attributes
   3978  * used by the vendor command QCA_NL80211_VENDOR_SUBCMD_ACS_POLICY.
   3979  *
   3980  * @QCA_WLAN_VENDOR_ATTR_ACS_DFS_MODE: Required (u8)
   3981  * DFS mode for ACS operation from enum qca_acs_dfs_mode.
   3982  *
   3983  * @QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT: Required (u8)
   3984  * channel number hint for ACS operation, if valid channel is specified then
   3985  * ACS operation gives priority to this channel.
   3986  * Note: If both the driver and user space application supports the 6 GHz band,
   3987  * this attribute is deprecated and QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT
   3988  * should be used.
   3989  * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT
   3990  * is still used if either of the driver or user space application doesn't
   3991  * support the 6 GHz band.
   3992  *
   3993  * @QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT: Required (u32).
   3994  * Channel center frequency (MHz) hint for ACS operation, if a valid center
   3995  * frequency is specified, ACS operation gives priority to this channel.
   3996  */
   3997 enum qca_wlan_vendor_attr_acs_config {
   3998 	QCA_WLAN_VENDOR_ATTR_ACS_MODE_INVALID = 0,
   3999 	QCA_WLAN_VENDOR_ATTR_ACS_DFS_MODE = 1,
   4000 	QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT = 2,
   4001 	QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT = 3,
   4002 
   4003 	QCA_WLAN_VENDOR_ATTR_ACS_DFS_AFTER_LAST,
   4004 	QCA_WLAN_VENDOR_ATTR_ACS_DFS_MAX =
   4005 		QCA_WLAN_VENDOR_ATTR_ACS_DFS_AFTER_LAST - 1,
   4006 };
   4007 
   4008 /**
   4009  * enum qca_wlan_vendor_attr_get_hw_capability - Wi-Fi hardware capability
   4010  */
   4011 enum qca_wlan_vendor_attr_get_hw_capability {
   4012 	QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_INVALID,
   4013 	/* Antenna isolation
   4014 	 * An attribute used in the response.
   4015 	 * The content of this attribute is encoded in a byte array. Each byte
   4016 	 * value is an antenna isolation value. The array length is the number
   4017 	 * of antennas.
   4018 	 */
   4019 	QCA_WLAN_VENDOR_ATTR_ANTENNA_ISOLATION,
   4020 	/* Request HW capability
   4021 	 * An attribute used in the request.
   4022 	 * The content of this attribute is a u32 array for one or more of
   4023 	 * hardware capabilities (attribute IDs) that are being requested. Each
   4024 	 * u32 value has a value from this
   4025 	 * enum qca_wlan_vendor_attr_get_hw_capability
   4026 	 * identifying which capabilities are requested.
   4027 	 */
   4028 	QCA_WLAN_VENDOR_ATTR_GET_HW_CAPABILITY,
   4029 
   4030 	/* keep last */
   4031 	QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_AFTER_LAST,
   4032 	QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_MAX =
   4033 	QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_AFTER_LAST - 1,
   4034 };
   4035 
   4036 /**
   4037  * enum qca_wlan_vendor_attr_ll_stats_ext - Attributes for MAC layer monitoring
   4038  *    offload which is an extension for LL_STATS.
   4039  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_PERIOD: Monitoring period. Unit in ms.
   4040  *    If MAC counters do not exceed the threshold, FW will report monitored
   4041  *    link layer counters periodically as this setting. The first report is
   4042  *    always triggered by this timer.
   4043  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_THRESHOLD: It is a percentage (1-99).
   4044  *    For each MAC layer counter, FW holds two copies. One is the current value.
   4045  *    The other is the last report. Once a current counter's increment is larger
   4046  *    than the threshold, FW will indicate that counter to host even if the
   4047  *    monitoring timer does not expire.
   4048  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_CHG: Peer STA power state change
   4049  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TID: TID of MSDU
   4050  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NUM_MSDU: Count of MSDU with the same
   4051  *    failure code.
   4052  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_STATUS: TX failure code
   4053  *    1: TX packet discarded
   4054  *    2: No ACK
   4055  *    3: Postpone
   4056  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_MAC_ADDRESS: peer MAC address
   4057  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_STATE: Peer STA current state
   4058  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_GLOBAL: Global threshold.
   4059  *    Threshold for all monitored parameters. If per counter dedicated threshold
   4060  *    is not enabled, this threshold will take effect.
   4061  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_EVENT_MODE: Indicate what triggers this
   4062  *    event, PERORID_TIMEOUT == 1, THRESH_EXCEED == 0.
   4063  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_ID: interface ID
   4064  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ID: peer ID
   4065  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BITMAP: bitmap for TX counters
   4066  *    Bit0: TX counter unit in MSDU
   4067  *    Bit1: TX counter unit in MPDU
   4068  *    Bit2: TX counter unit in PPDU
   4069  *    Bit3: TX counter unit in byte
   4070  *    Bit4: Dropped MSDUs
   4071  *    Bit5: Dropped Bytes
   4072  *    Bit6: MPDU retry counter
   4073  *    Bit7: MPDU failure counter
   4074  *    Bit8: PPDU failure counter
   4075  *    Bit9: MPDU aggregation counter
   4076  *    Bit10: MCS counter for ACKed MPDUs
   4077  *    Bit11: MCS counter for Failed MPDUs
   4078  *    Bit12: TX Delay counter
   4079  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BITMAP: bitmap for RX counters
   4080  *    Bit0: MAC RX counter unit in MPDU
   4081  *    Bit1: MAC RX counter unit in byte
   4082  *    Bit2: PHY RX counter unit in PPDU
   4083  *    Bit3: PHY RX counter unit in byte
   4084  *    Bit4: Disorder counter
   4085  *    Bit5: Retry counter
   4086  *    Bit6: Duplication counter
   4087  *    Bit7: Discard counter
   4088  *    Bit8: MPDU aggregation size counter
   4089  *    Bit9: MCS counter
   4090  *    Bit10: Peer STA power state change (wake to sleep) counter
   4091  *    Bit11: Peer STA power save counter, total time in PS mode
   4092  *    Bit12: Probe request counter
   4093  *    Bit13: Other management frames counter
   4094  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS_BITMAP: bitmap for CCA
   4095  *    Bit0: Idle time
   4096  *    Bit1: TX time
   4097  *    Bit2: time RX in current bss
   4098  *    Bit3: Out of current bss time
   4099  *    Bit4: Wireless medium busy time
   4100  *    Bit5: RX in bad condition time
   4101  *    Bit6: TX in bad condition time
   4102  *    Bit7: time wlan card not available
   4103  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_SIGNAL_BITMAP: bitmap for signal
   4104  *    Bit0: Per channel SNR counter
   4105  *    Bit1: Per channel noise floor counter
   4106  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_NUM: number of peers
   4107  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CHANNEL_NUM: number of channels
   4108  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_AC_RX_NUM: number of RX stats
   4109  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS: per channel BSS CCA stats
   4110  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER: container for per PEER stats
   4111  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MSDU: Number of total TX MSDUs
   4112  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MPDU: Number of total TX MPDUs
   4113  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_PPDU: Number of total TX PPDUs
   4114  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BYTES: bytes of TX data
   4115  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP: Number of dropped TX packets
   4116  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP_BYTES: Bytes dropped
   4117  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_RETRY: waiting time without an ACK
   4118  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_ACK: number of MPDU not-ACKed
   4119  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_BACK: number of PPDU not-ACKed
   4120  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR_NUM:
   4121  *    aggregation stats buffer length
   4122  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS_NUM: length of mcs stats
   4123  *    buffer for ACKed MPDUs.
   4124  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS_NUM: length of mcs stats
   4125  *    buffer for failed MPDUs.
   4126  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_DELAY_ARRAY_SIZE:
   4127  *    length of delay stats array.
   4128  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR: TX aggregation stats
   4129  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS: MCS stats for ACKed MPDUs
   4130  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS: MCS stats for failed MPDUs
   4131  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DELAY: tx delay stats
   4132  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU: MPDUs received
   4133  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_BYTES: bytes received
   4134  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU: PPDU received
   4135  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU_BYTES: PPDU bytes received
   4136  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_LOST: packets lost
   4137  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_RETRY: number of RX packets
   4138  *    flagged as retransmissions
   4139  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DUP: number of RX packets
   4140  *    flagged as duplicated
   4141  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DISCARD: number of RX
   4142  *    packets discarded
   4143  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR_NUM: length of RX aggregation
   4144  *    stats buffer.
   4145  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS_NUM: length of RX mcs
   4146  *    stats buffer.
   4147  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS: RX mcs stats buffer
   4148  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR: aggregation stats buffer
   4149  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_TIMES: times STAs go to sleep
   4150  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_DURATION: STAs' total sleep time
   4151  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PROBE_REQ: number of probe
   4152  *    requests received
   4153  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MGMT: number of other mgmt
   4154  *    frames received
   4155  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IDLE_TIME: Percentage of idle time
   4156  *    there is no TX, nor RX, nor interference.
   4157  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_TIME: percentage of time
   4158  *    transmitting packets.
   4159  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_TIME: percentage of time
   4160  *    for receiving.
   4161  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BUSY: percentage of time
   4162  *    interference detected.
   4163  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BAD: percentage of time
   4164  *    receiving packets with errors.
   4165  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BAD: percentage of time
   4166  *    TX no-ACK.
   4167  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NO_AVAIL: percentage of time
   4168  *    the chip is unable to work in normal conditions.
   4169  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IN_BSS_TIME: percentage of time
   4170  *    receiving packets in current BSS.
   4171  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_OUT_BSS_TIME: percentage of time
   4172  *    receiving packets not in current BSS.
   4173  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ANT_NUM: number of antennas
   4174  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_SIGNAL:
   4175  *    This is a container for per antenna signal stats.
   4176  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_SNR: per antenna SNR value
   4177  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_NF: per antenna NF value
   4178  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_RSSI_BEACON: RSSI of beacon
   4179  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_SNR_BEACON: SNR of beacon
   4180  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_REPORT_TIME: u64
   4181  *    Absolute timestamp from 1970/1/1, unit in ms. After receiving the
   4182  *    message, user layer APP could call gettimeofday to get another
   4183  *    timestamp and calculate transfer delay for the message.
   4184  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_MEASUREMENT_TIME: u32
   4185  *    Real period for this measurement, unit in us.
   4186  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PAD: Attribute used for padding for
   4187  *    64-bit alignment.
   4188  */
   4189 enum qca_wlan_vendor_attr_ll_stats_ext {
   4190 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_INVALID = 0,
   4191 
   4192 	/* Attributes for configurations */
   4193 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_PERIOD,
   4194 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_THRESHOLD,
   4195 
   4196 	/* Peer STA power state change */
   4197 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_CHG,
   4198 
   4199 	/* TX failure event */
   4200 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TID,
   4201 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NUM_MSDU,
   4202 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_STATUS,
   4203 
   4204 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_STATE,
   4205 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_MAC_ADDRESS,
   4206 
   4207 	/* MAC counters */
   4208 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_GLOBAL,
   4209 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_EVENT_MODE,
   4210 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_ID,
   4211 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ID,
   4212 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BITMAP,
   4213 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BITMAP,
   4214 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS_BITMAP,
   4215 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_SIGNAL_BITMAP,
   4216 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_NUM,
   4217 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CHANNEL_NUM,
   4218 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS,
   4219 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER,
   4220 
   4221 	/* Sub-attributes for PEER_AC_TX */
   4222 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MSDU,
   4223 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MPDU,
   4224 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_PPDU,
   4225 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BYTES,
   4226 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP,
   4227 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP_BYTES,
   4228 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_RETRY,
   4229 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_ACK,
   4230 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_BACK,
   4231 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR_NUM,
   4232 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS_NUM,
   4233 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS_NUM,
   4234 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR,
   4235 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS,
   4236 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS,
   4237 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_DELAY_ARRAY_SIZE,
   4238 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DELAY,
   4239 
   4240 	/* Sub-attributes for PEER_AC_RX */
   4241 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU,
   4242 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_BYTES,
   4243 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU,
   4244 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU_BYTES,
   4245 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_LOST,
   4246 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_RETRY,
   4247 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DUP,
   4248 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DISCARD,
   4249 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR_NUM,
   4250 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS_NUM,
   4251 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS,
   4252 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR,
   4253 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_TIMES,
   4254 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_DURATION,
   4255 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PROBE_REQ,
   4256 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MGMT,
   4257 
   4258 	/* Sub-attributes for CCA_BSS */
   4259 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IDLE_TIME,
   4260 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_TIME,
   4261 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_TIME,
   4262 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BUSY,
   4263 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BAD,
   4264 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BAD,
   4265 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NO_AVAIL,
   4266 
   4267 	/* sub-attribute for BSS_RX_TIME */
   4268 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IN_BSS_TIME,
   4269 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_OUT_BSS_TIME,
   4270 
   4271 	/* Sub-attributes for PEER_SIGNAL */
   4272 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ANT_NUM,
   4273 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_SIGNAL,
   4274 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_SNR,
   4275 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_NF,
   4276 
   4277 	/* Sub-attributes for IFACE_BSS */
   4278 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_RSSI_BEACON,
   4279 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_SNR_BEACON,
   4280 
   4281 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_REPORT_TIME,
   4282 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_MEASUREMENT_TIME,
   4283 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PAD,
   4284 
   4285 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_LAST,
   4286 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_MAX =
   4287 		QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_LAST - 1
   4288 };
   4289 
   4290 /* Attributes for FTM commands and events */
   4291 
   4292 /**
   4293  * enum qca_wlan_vendor_attr_loc_capa - Indoor location capabilities
   4294  *
   4295  * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAGS: Various flags. See
   4296  *	enum qca_wlan_vendor_attr_loc_capa_flags.
   4297  * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_SESSIONS: Maximum number
   4298  *	of measurement sessions that can run concurrently.
   4299  *	Default is one session (no session concurrency).
   4300  * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_PEERS: The total number of unique
   4301  *	peers that are supported in running sessions. For example,
   4302  *	if the value is 8 and maximum number of sessions is 2, you can
   4303  *	have one session with 8 unique peers, or 2 sessions with 4 unique
   4304  *	peers each, and so on.
   4305  * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_BURSTS_EXP: Maximum number
   4306  *	of bursts per peer, as an exponent (2^value). Default is 0,
   4307  *	meaning no multi-burst support.
   4308  * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_MEAS_PER_BURST: Maximum number
   4309  *	of measurement exchanges allowed in a single burst.
   4310  * @QCA_WLAN_VENDOR_ATTR_AOA_CAPA_SUPPORTED_TYPES: Supported AOA measurement
   4311  *	types. A bit mask (unsigned 32 bit value), each bit corresponds
   4312  *	to an AOA type as defined by enum qca_vendor_attr_aoa_type.
   4313  */
   4314 enum qca_wlan_vendor_attr_loc_capa {
   4315 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA_INVALID,
   4316 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAGS,
   4317 	QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_SESSIONS,
   4318 	QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_PEERS,
   4319 	QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_BURSTS_EXP,
   4320 	QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_MEAS_PER_BURST,
   4321 	QCA_WLAN_VENDOR_ATTR_AOA_CAPA_SUPPORTED_TYPES,
   4322 	/* keep last */
   4323 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA_AFTER_LAST,
   4324 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA_MAX =
   4325 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA_AFTER_LAST - 1,
   4326 };
   4327 
   4328 /**
   4329  * enum qca_wlan_vendor_attr_loc_capa_flags: Indoor location capability flags
   4330  *
   4331  * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_RESPONDER: Set if driver
   4332  *	can be configured as an FTM responder (for example, an AP that
   4333  *	services FTM requests). QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
   4334  *	will be supported if set.
   4335  * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_INITIATOR: Set if driver
   4336  *	can run FTM sessions. QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION
   4337  *	will be supported if set.
   4338  * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_ASAP: Set if FTM responder
   4339  *	supports immediate (ASAP) response.
   4340  * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA: Set if driver supports standalone
   4341  *	AOA measurement using QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS.
   4342  * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA_IN_FTM: Set if driver supports
   4343  *	requesting AOA measurements as part of an FTM session.
   4344  */
   4345 enum qca_wlan_vendor_attr_loc_capa_flags {
   4346 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_RESPONDER = 1 << 0,
   4347 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_INITIATOR = 1 << 1,
   4348 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_ASAP = 1 << 2,
   4349 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA = 1 << 3,
   4350 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA_IN_FTM = 1 << 4,
   4351 };
   4352 
   4353 /**
   4354  * enum qca_wlan_vendor_attr_ftm_peer_info: Information about
   4355  *	a single peer in a measurement session.
   4356  *
   4357  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAC_ADDR: The MAC address of the peer.
   4358  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAGS: Various flags related
   4359  *	to measurement. See enum qca_wlan_vendor_attr_ftm_peer_meas_flags.
   4360  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_PARAMS: Nested attribute of
   4361  *	FTM measurement parameters, as specified by IEEE P802.11-REVmc/D7.0
   4362  *	9.4.2.167. See enum qca_wlan_vendor_attr_ftm_meas_param for
   4363  *	list of supported attributes.
   4364  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID: Initial token ID for
   4365  *	secure measurement.
   4366  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_AOA_BURST_PERIOD: Request AOA
   4367  *	measurement every <value> bursts. If 0 or not specified,
   4368  *	AOA measurements will be disabled for this peer.
   4369  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_FREQ: Frequency in MHz where
   4370  *	the measurement frames are exchanged. Optional; if not
   4371  *	specified, try to locate the peer in the kernel scan
   4372  *	results cache and use frequency from there.
   4373  */
   4374 enum qca_wlan_vendor_attr_ftm_peer_info {
   4375 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_INVALID,
   4376 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAC_ADDR,
   4377 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAGS,
   4378 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_PARAMS,
   4379 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID,
   4380 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_AOA_BURST_PERIOD,
   4381 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_FREQ,
   4382 	/* keep last */
   4383 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_AFTER_LAST,
   4384 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAX =
   4385 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_AFTER_LAST - 1,
   4386 };
   4387 
   4388 /**
   4389  * enum qca_wlan_vendor_attr_ftm_peer_meas_flags: Measurement request flags,
   4390  *	per-peer
   4391  *
   4392  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_ASAP: If set, request
   4393  *	immediate (ASAP) response from peer.
   4394  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCI: If set, request
   4395  *	LCI report from peer. The LCI report includes the absolute
   4396  *	location of the peer in "official" coordinates (similar to GPS).
   4397  *	See IEEE P802.11-REVmc/D7.0, 11.24.6.7 for more information.
   4398  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCR: If set, request
   4399  *	Location civic report from peer. The LCR includes the location
   4400  *	of the peer in free-form format. See IEEE P802.11-REVmc/D7.0,
   4401  *	11.24.6.7 for more information.
   4402  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_SECURE: If set,
   4403  *	request a secure measurement.
   4404  *	QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID must also be provided.
   4405  */
   4406 enum qca_wlan_vendor_attr_ftm_peer_meas_flags {
   4407 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_ASAP	= 1 << 0,
   4408 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCI	= 1 << 1,
   4409 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCR	= 1 << 2,
   4410 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_SECURE	= 1 << 3,
   4411 };
   4412 
   4413 /**
   4414  * enum qca_wlan_vendor_attr_ftm_meas_param: Measurement parameters
   4415  *
   4416  * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MEAS_PER_BURST: Number of measurements
   4417  *	to perform in a single burst.
   4418  * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_NUM_BURSTS_EXP: Number of bursts to
   4419  *	perform, specified as an exponent (2^value).
   4420  * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION: Duration of burst
   4421  *	instance, as specified in IEEE P802.11-REVmc/D7.0, 9.4.2.167.
   4422  * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_PERIOD: Time between bursts,
   4423  *	as specified in IEEE P802.11-REVmc/D7.0, 9.4.2.167. Must
   4424  *	be larger than QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION.
   4425  */
   4426 enum qca_wlan_vendor_attr_ftm_meas_param {
   4427 	QCA_WLAN_VENDOR_ATTR_FTM_PARAM_INVALID,
   4428 	QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MEAS_PER_BURST,
   4429 	QCA_WLAN_VENDOR_ATTR_FTM_PARAM_NUM_BURSTS_EXP,
   4430 	QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION,
   4431 	QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_PERIOD,
   4432 	/* keep last */
   4433 	QCA_WLAN_VENDOR_ATTR_FTM_PARAM_AFTER_LAST,
   4434 	QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MAX =
   4435 	QCA_WLAN_VENDOR_ATTR_FTM_PARAM_AFTER_LAST - 1,
   4436 };
   4437 
   4438 /**
   4439  * enum qca_wlan_vendor_attr_ftm_peer_result: Per-peer results
   4440  *
   4441  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAC_ADDR: MAC address of the reported
   4442  *	 peer.
   4443  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS: Status of measurement
   4444  *	request for this peer.
   4445  *	See enum qca_wlan_vendor_attr_ftm_peer_result_status.
   4446  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAGS: Various flags related
   4447  *	to measurement results for this peer.
   4448  *	See enum qca_wlan_vendor_attr_ftm_peer_result_flags.
   4449  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS: Specified when
   4450  *	request failed and peer requested not to send an additional request
   4451  *	for this number of seconds.
   4452  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCI: LCI report when received
   4453  *	from peer. In the format specified by IEEE P802.11-REVmc/D7.0,
   4454  *	9.4.2.22.10.
   4455  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCR: Location civic report when
   4456  *	received from peer. In the format specified by IEEE P802.11-REVmc/D7.0,
   4457  *	9.4.2.22.13.
   4458  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAMS: Reported when peer
   4459  *	overridden some measurement request parameters. See
   4460  *	enum qca_wlan_vendor_attr_ftm_meas_param.
   4461  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AOA_MEAS: AOA measurement
   4462  *	for this peer. Same contents as @QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT.
   4463  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS: Array of measurement
   4464  *	results. Each entry is a nested attribute defined
   4465  *	by enum qca_wlan_vendor_attr_ftm_meas.
   4466  */
   4467 enum qca_wlan_vendor_attr_ftm_peer_result {
   4468 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_INVALID,
   4469 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAC_ADDR,
   4470 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS,
   4471 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAGS,
   4472 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS,
   4473 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCI,
   4474 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCR,
   4475 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAMS,
   4476 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AOA_MEAS,
   4477 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS,
   4478 	/* keep last */
   4479 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AFTER_LAST,
   4480 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAX =
   4481 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AFTER_LAST - 1,
   4482 };
   4483 
   4484 /**
   4485  * enum qca_wlan_vendor_attr_ftm_peer_result_status
   4486  *
   4487  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_OK: Request sent ok and results
   4488  *	will be provided. Peer may have overridden some measurement parameters,
   4489  *	in which case overridden parameters will be report by
   4490  *	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAM attribute.
   4491  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INCAPABLE: Peer is incapable
   4492  *	of performing the measurement request. No more results will be sent
   4493  *	for this peer in this session.
   4494  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_FAILED: Peer reported request
   4495  *	failed, and requested not to send an additional request for number
   4496  *	of seconds specified by QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS
   4497  *	attribute.
   4498  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INVALID: Request validation
   4499  *	failed. Request was not sent over the air.
   4500  */
   4501 enum qca_wlan_vendor_attr_ftm_peer_result_status {
   4502 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_OK,
   4503 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INCAPABLE,
   4504 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_FAILED,
   4505 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INVALID,
   4506 };
   4507 
   4508 /**
   4509  * enum qca_wlan_vendor_attr_ftm_peer_result_flags: Various flags
   4510  *  for measurement result, per-peer
   4511  *
   4512  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAG_DONE: If set,
   4513  *	measurement completed for this peer. No more results will be reported
   4514  *	for this peer in this session.
   4515  */
   4516 enum qca_wlan_vendor_attr_ftm_peer_result_flags {
   4517 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAG_DONE = 1 << 0,
   4518 };
   4519 
   4520 /**
   4521  * enum qca_vendor_attr_loc_session_status: Session completion status code
   4522  *
   4523  * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_OK: Session completed
   4524  *	successfully.
   4525  * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_ABORTED: Session aborted
   4526  *	by request.
   4527  * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_INVALID: Session request
   4528  *	was invalid and was not started.
   4529  * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_FAILED: Session had an error
   4530  *	and did not complete normally (for example out of resources).
   4531  */
   4532 enum qca_vendor_attr_loc_session_status {
   4533 	QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_OK,
   4534 	QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_ABORTED,
   4535 	QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_INVALID,
   4536 	QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_FAILED,
   4537 };
   4538 
   4539 /**
   4540  * enum qca_wlan_vendor_attr_ftm_meas: Single measurement data
   4541  *
   4542  * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T1: Time of departure (TOD) of FTM packet as
   4543  *	recorded by responder, in picoseconds.
   4544  *	See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
   4545  * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T2: Time of arrival (TOA) of FTM packet at
   4546  *	initiator, in picoseconds.
   4547  *	See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
   4548  * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T3: TOD of ACK packet as recorded by
   4549  *	initiator, in picoseconds.
   4550  *	See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
   4551  * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T4: TOA of ACK packet at
   4552  *	responder, in picoseconds.
   4553  *	See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
   4554  * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_RSSI: RSSI (signal level) as recorded
   4555  *	during this measurement exchange. Optional and will be provided if
   4556  *	the hardware can measure it.
   4557  * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOD_ERR: TOD error reported by
   4558  *	responder. Not always provided.
   4559  *	See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
   4560  * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOA_ERR: TOA error reported by
   4561  *	responder. Not always provided.
   4562  *	See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
   4563  * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOD_ERR: TOD error measured by
   4564  *	initiator. Not always provided.
   4565  *	See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
   4566  * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOA_ERR: TOA error measured by
   4567  *	initiator. Not always provided.
   4568  *	See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
   4569  * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PAD: Attribute used for padding for 64-bit
   4570  *	alignment.
   4571  */
   4572 enum qca_wlan_vendor_attr_ftm_meas {
   4573 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INVALID,
   4574 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T1,
   4575 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T2,
   4576 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T3,
   4577 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T4,
   4578 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_RSSI,
   4579 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOD_ERR,
   4580 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOA_ERR,
   4581 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOD_ERR,
   4582 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOA_ERR,
   4583 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PAD,
   4584 	/* keep last */
   4585 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_AFTER_LAST,
   4586 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_MAX =
   4587 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_AFTER_LAST - 1,
   4588 };
   4589 
   4590 /**
   4591  * enum qca_wlan_vendor_attr_aoa_type - AOA measurement type
   4592  *
   4593  * @QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE: Phase of the strongest
   4594  *	CIR (channel impulse response) path for each antenna.
   4595  * @QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP: Phase and amplitude
   4596  *	of the strongest CIR path for each antenna.
   4597  */
   4598 enum qca_wlan_vendor_attr_aoa_type {
   4599 	QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE,
   4600 	QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP,
   4601 	QCA_WLAN_VENDOR_ATTR_AOA_TYPE_MAX
   4602 };
   4603 
   4604 /**
   4605  * enum qca_wlan_vendor_attr_encryption_test - Attributes to
   4606  * validate encryption engine
   4607  *
   4608  * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_NEEDS_DECRYPTION: Flag attribute.
   4609  *	This will be included if the request is for decryption; if not included,
   4610  *	the request is treated as a request for encryption by default.
   4611  * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_CIPHER: Unsigned 32-bit value
   4612  *	indicating the key cipher suite. Takes same values as
   4613  *	NL80211_ATTR_KEY_CIPHER.
   4614  * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_KEYID: Unsigned 8-bit value
   4615  *	Key Id to be used for encryption
   4616  * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_TK: Array of 8-bit values.
   4617  *	Key (TK) to be used for encryption/decryption
   4618  * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_PN: Array of 8-bit values.
   4619  *	Packet number to be specified for encryption/decryption
   4620  *	6 bytes for TKIP/CCMP/GCMP.
   4621  * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_DATA: Array of 8-bit values
   4622  *	representing the 802.11 packet (header + payload + FCS) that
   4623  *	needs to be encrypted/decrypted.
   4624  *	Encrypted/decrypted response from the driver will also be sent
   4625  *	to userspace with the same attribute.
   4626  */
   4627 enum qca_wlan_vendor_attr_encryption_test {
   4628 	QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_INVALID = 0,
   4629 	QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_NEEDS_DECRYPTION,
   4630 	QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_CIPHER,
   4631 	QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_KEYID,
   4632 	QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_TK,
   4633 	QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_PN,
   4634 	QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_DATA,
   4635 
   4636 	/* keep last */
   4637 	QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_AFTER_LAST,
   4638 	QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_MAX =
   4639 	QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_AFTER_LAST - 1
   4640 };
   4641 
   4642 /**
   4643  * enum qca_wlan_vendor_attr_dmg_rf_sector_type - Type of
   4644  * sector for DMG RF sector operations.
   4645  *
   4646  * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_RX: RX sector
   4647  * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_TX: TX sector
   4648  */
   4649 enum qca_wlan_vendor_attr_dmg_rf_sector_type {
   4650 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_RX,
   4651 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_TX,
   4652 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_MAX
   4653 };
   4654 
   4655 /**
   4656  * enum qca_wlan_vendor_attr_fw_state - State of firmware
   4657  *
   4658  * @QCA_WLAN_VENDOR_ATTR_FW_STATE_ERROR: FW is in bad state
   4659  * @QCA_WLAN_VENDOR_ATTR_FW_STATE_ACTIVE: FW is active
   4660  */
   4661 enum qca_wlan_vendor_attr_fw_state {
   4662 	QCA_WLAN_VENDOR_ATTR_FW_STATE_ERROR,
   4663 	QCA_WLAN_VENDOR_ATTR_FW_STATE_ACTIVE,
   4664 	QCA_WLAN_VENDOR_ATTR_FW_STATE_MAX
   4665 };
   4666 
   4667 /**
   4668  * BRP antenna limit mode
   4669  *
   4670  * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_DISABLE: Disable BRP force
   4671  *	antenna limit, BRP will be performed as usual.
   4672  * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_EFFECTIVE: Define maximal
   4673  *	antennas limit. the hardware may use less antennas than the
   4674  *	maximum limit.
   4675  * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_FORCE: The hardware will
   4676  *	use exactly the specified number of antennas for BRP.
   4677  */
   4678 enum qca_wlan_vendor_attr_brp_ant_limit_mode {
   4679 	QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_DISABLE,
   4680 	QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_EFFECTIVE,
   4681 	QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_FORCE,
   4682 	QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_MAX
   4683 };
   4684 
   4685 /**
   4686  * enum qca_wlan_vendor_attr_dmg_rf_sector_cfg - Attributes for
   4687  * DMG RF sector configuration for a single RF module.
   4688  * The values are defined in a compact way which closely matches
   4689  * the way it is stored in HW registers.
   4690  * The configuration provides values for 32 antennas and 8 distribution
   4691  * amplifiers, and together describes the characteristics of the RF
   4692  * sector - such as a beam in some direction with some gain.
   4693  *
   4694  * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MODULE_INDEX: Index
   4695  *	of RF module for this configuration.
   4696  * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE0: Bit 0 of edge
   4697  *	amplifier gain index. Unsigned 32 bit number containing
   4698  *	bits for all 32 antennas.
   4699  * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE1: Bit 1 of edge
   4700  *	amplifier gain index. Unsigned 32 bit number containing
   4701  *	bits for all 32 antennas.
   4702  * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE2: Bit 2 of edge
   4703  *	amplifier gain index. Unsigned 32 bit number containing
   4704  *	bits for all 32 antennas.
   4705  * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_HI: Phase values
   4706  *	for first 16 antennas, 2 bits per antenna.
   4707  * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_LO: Phase values
   4708  *	for last 16 antennas, 2 bits per antenna.
   4709  * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_DTYPE_X16: Contains
   4710  *	DTYPE values (3 bits) for each distribution amplifier, followed
   4711  *	by X16 switch bits for each distribution amplifier. There are
   4712  *	total of 8 distribution amplifiers.
   4713  */
   4714 enum qca_wlan_vendor_attr_dmg_rf_sector_cfg {
   4715 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_INVALID = 0,
   4716 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MODULE_INDEX = 1,
   4717 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE0 = 2,
   4718 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE1 = 3,
   4719 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE2 = 4,
   4720 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_HI = 5,
   4721 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_LO = 6,
   4722 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_DTYPE_X16 = 7,
   4723 
   4724 	/* keep last */
   4725 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_AFTER_LAST,
   4726 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MAX =
   4727 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_AFTER_LAST - 1
   4728 };
   4729 
   4730 enum qca_wlan_vendor_attr_ll_stats_set {
   4731 	QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_INVALID = 0,
   4732 	/* Unsigned 32-bit value */
   4733 	QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_MPDU_SIZE_THRESHOLD = 1,
   4734 	QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_AGGRESSIVE_STATS_GATHERING = 2,
   4735 	/* keep last */
   4736 	QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_AFTER_LAST,
   4737 	QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_MAX =
   4738 	QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_AFTER_LAST - 1,
   4739 };
   4740 
   4741 /**
   4742  * qca_wlan_ll_stats_clr_req_bitmap - Represents the bitmap to clear LL STATS
   4743  * values for %QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_REQ_MASK.
   4744  *
   4745  * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO: Clear all radio statistics.
   4746  *
   4747  * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO_CCA: Clear cca_busy_time within
   4748  * radio statistics.
   4749  *
   4750  * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO_CHANNEL: Clear all channel
   4751  * statistics within radio statistics.
   4752  *
   4753  * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_SCAN: Clear all scan statistics within
   4754  * radio statistics.
   4755  *
   4756  * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE: Clear all interface statistics.
   4757  *
   4758  * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_TXRATE: Clear all TX rate statistics
   4759  * within interface statistics.
   4760  *
   4761  * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_AC: Clear all AC statistics within
   4762  * interface statistics.
   4763  *
   4764  * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_CONTENTION: Clear all contention
   4765  * (min, max, avg) statistics within AC statistics.
   4766  *
   4767  * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_ALL_PEER: Clear all peer statistics
   4768  * on this interface.
   4769  *
   4770  * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_PER_PEER: Clear particular peer
   4771  * statistics depending on the peer_mac.
   4772  */
   4773 enum qca_wlan_ll_stats_clr_req_bitmap {
   4774 	QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO =		BIT(0),
   4775 	QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO_CCA =		BIT(1),
   4776 	QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO_CHANNELS =	BIT(2),
   4777 	QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO_SCAN =		BIT(3),
   4778 	QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE =		BIT(4),
   4779 	QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_TXRATE =		BIT(5),
   4780 	QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_AC =		BIT(6),
   4781 	QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_CONTENTION =	BIT(7),
   4782 	QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_ALL_PEER =	BIT(8),
   4783 	QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_PER_PEER =	BIT(9),
   4784 };
   4785 
   4786 enum qca_wlan_vendor_attr_ll_stats_clr {
   4787 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_INVALID = 0,
   4788 	/* Unsigned 32bit bitmap for clearing statistics, specified
   4789 	 * in the enum qca_wlan_ll_stats_clr_req_bitmap.
   4790 	 */
   4791 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_REQ_MASK = 1,
   4792 	/* Unsigned 8 bit value: Request to stop statistics collection */
   4793 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_REQ = 2,
   4794 
   4795 	/* Unsigned 32 bit bitmap: Response from the driver
   4796 	 * for the cleared statistics
   4797 	 */
   4798 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_RSP_MASK = 3,
   4799 	/* Unsigned 8 bit value: Response from driver/firmware
   4800 	 * for the stop request
   4801 	 */
   4802 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_RSP = 4,
   4803 	/* keep last */
   4804 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_AFTER_LAST,
   4805 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_MAX =
   4806 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_AFTER_LAST - 1,
   4807 };
   4808 
   4809 /**
   4810  * qca_wlan_ll_stats_get_req_bitmap - Represents the bitmap to request LL STATS
   4811  * values for %QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_MASK.
   4812  *
   4813  * @QCA_WLAN_LL_STATS_GET_REQ_BITMAP_RADIO: Request all radio statistics.
   4814  *
   4815  * @QCA_WLAN_LL_STATS_GET_REQ_BITMAP_IFACE: Request interface statistics.
   4816  *
   4817  * @QCA_WLAN_LL_STATS_GET_REQ_BITMAP_ALL_PEER: Request all peer statistics.
   4818  *
   4819  * @QCA_WLAN_LL_STATS_GET_REQ_BITMAP_PER_PEER: Request per peer statistics.
   4820  */
   4821 enum qca_wlan_ll_stats_get_req_bitmap {
   4822 	QCA_WLAN_LL_STATS_GET_REQ_BITMAP_RADIO =	BIT(0),
   4823 	QCA_WLAN_LL_STATS_GET_REQ_BITMAP_IFACE =	BIT(1),
   4824 	QCA_WLAN_LL_STATS_GET_REQ_BITMAP_ALL_PEER =	BIT(2),
   4825 	QCA_WLAN_LL_STATS_GET_REQ_BITMAP_PER_PEER =	BIT(3),
   4826 };
   4827 
   4828 enum qca_wlan_vendor_attr_ll_stats_get {
   4829 	QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_INVALID = 0,
   4830 	/* Unsigned 32 bit value provided by the caller issuing the GET stats
   4831 	 * command. When reporting the stats results, the driver uses the same
   4832 	 * value to indicate which GET request the results correspond to.
   4833 	 */
   4834 	QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_ID = 1,
   4835 	/* Unsigned 32 bit value - bit mask to identify what statistics are
   4836 	 * requested for retrieval specified in the enum
   4837 	 * qca_wlan_ll_stats_get_req_bitmap
   4838 	 */
   4839 	QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_MASK = 2,
   4840 	/* keep last */
   4841 	QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_AFTER_LAST,
   4842 	QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_MAX =
   4843 	QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_AFTER_LAST - 1,
   4844 };
   4845 
   4846 enum qca_wlan_vendor_attr_ll_stats_results {
   4847 	QCA_WLAN_VENDOR_ATTR_LL_STATS_INVALID = 0,
   4848 
   4849 	/*
   4850 	 * For Multi Link Operation (MLO) connection, per-link statistics will
   4851 	 * be sent inside of %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and
   4852 	 * cumulative statistics will be sent outside of
   4853 	 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK to maintain backward
   4854 	 * compatibility with legacy user space. Attributes which don't have
   4855 	 * explicit documentation for MLO will be sent only outside of
   4856 	 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK, such attributes values
   4857 	 * don't depend on whether the connection is MLO capable or not, e.g.,
   4858 	 * radio and channel specific attributes.
   4859 	 */
   4860 
   4861 	/* Unsigned 32bit value. Used by the driver; must match the request id
   4862 	 * provided with the QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET command.
   4863 	 */
   4864 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RESULTS_REQ_ID = 1,
   4865 
   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_BEACON_RX = 2,
   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_MGMT_RX = 3,
   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_MGMT_ACTION_RX = 4,
   4884 	/* Unsigned 32 bit value. For an MLO connection, indicates the value of
   4885 	 * the link with the best RSSI outside
   4886 	 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
   4887 	 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
   4888 	 */
   4889 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_ACTION_TX = 5,
   4890 	/* Unsigned 32 bit value. For an MLO connection, indicates the value of
   4891 	 * the link with the best RSSI outside
   4892 	 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
   4893 	 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
   4894 	 */
   4895 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_MGMT = 6,
   4896 	/* Unsigned 32 bit value. For an MLO connection, indicates the value of
   4897 	 * the link with the best RSSI outside
   4898 	 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
   4899 	 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
   4900 	 */
   4901 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_DATA = 7,
   4902 	/* Unsigned 32 bit value. For an MLO connection, indicates the value of
   4903 	 * the link with the best RSSI outside
   4904 	 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
   4905 	 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
   4906 	 */
   4907 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_ACK = 8,
   4908 
   4909 	/* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_* are
   4910 	 * nested within the interface stats.
   4911 	 */
   4912 
   4913 	/* Interface mode, e.g., STA, SOFTAP, IBSS, etc.
   4914 	 * Type = enum wifi_interface_mode.
   4915 	 */
   4916 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_MODE = 9,
   4917 	/* Interface MAC address. An array of 6 Unsigned int8 */
   4918 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_MAC_ADDR = 10,
   4919 	/* Type = enum wifi_connection_state, e.g., DISCONNECTED,
   4920 	 * AUTHENTICATING, etc. valid for STA, CLI only.
   4921 	 */
   4922 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_STATE = 11,
   4923 	/* Type = enum wifi_roam_state. Roaming state, e.g., IDLE or ACTIVE
   4924 	 */
   4925 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_ROAMING = 12,
   4926 	/* Unsigned 32 bit value. WIFI_CAPABILITY_XXX */
   4927 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_CAPABILITIES = 13,
   4928 	/* NULL terminated SSID. An array of 33 Unsigned 8bit values */
   4929 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_SSID = 14,
   4930 	/* For non-MLO connection, BSSID of the AP. For MLO connection, MLD
   4931 	 * address of the AP. An array of 6 unsigned 8 bit values */
   4932 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_BSSID = 15,
   4933 	/* Country string advertised by AP. An array of 3 unsigned 8 bit
   4934 	 * values.
   4935 	 */
   4936 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_AP_COUNTRY_STR = 16,
   4937 	/* Country string for this association. An array of 3 unsigned 8 bit
   4938 	 * values.
   4939 	 */
   4940 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_COUNTRY_STR = 17,
   4941 
   4942 	/* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_* could
   4943 	 * be nested within the interface stats.
   4944 	 * For an MLO connection, all %QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_*
   4945 	 * attributes except %QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_*
   4946 	 * indicate the aggregate of all links outside
   4947 	 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
   4948 	 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_* attributes
   4949 	 * indicate value of the MLO link with the best RSSI outside
   4950 	 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
   4951 	 * These attributes indicate the link specific value inside
   4952 	 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
   4953 	 */
   4954 
   4955 	/* Type = enum wifi_traffic_ac, e.g., V0, VI, BE and BK */
   4956 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_AC = 18,
   4957 	/* Unsigned int 32 value corresponding to respective AC */
   4958 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_MPDU = 19,
   4959 	/* Unsigned int 32 value corresponding to respective AC */
   4960 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_MPDU = 20,
   4961 	/* Unsigned int 32 value corresponding to respective AC */
   4962 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_MCAST = 21,
   4963 	/* Unsigned int 32 value corresponding to respective AC */
   4964 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_MCAST = 22,
   4965 	/* Unsigned int 32 value corresponding to respective AC */
   4966 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_AMPDU = 23,
   4967 	/* Unsigned int 32 value corresponding to respective AC */
   4968 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_AMPDU = 24,
   4969 	/* Unsigned int 32 value corresponding to respective AC */
   4970 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_MPDU_LOST = 25,
   4971 	/* Unsigned int 32 value corresponding to respective AC */
   4972 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES = 26,
   4973 	/* Unsigned int 32 value corresponding to respective AC  */
   4974 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES_SHORT = 27,
   4975 	/* Unsigned int 32 values corresponding to respective AC */
   4976 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES_LONG = 28,
   4977 	/* Unsigned int 32 values corresponding to respective AC */
   4978 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_MIN = 29,
   4979 	/* Unsigned int 32 values corresponding to respective AC */
   4980 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_MAX = 30,
   4981 	/* Unsigned int 32 values corresponding to respective AC */
   4982 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_AVG = 31,
   4983 	/* Unsigned int 32 values corresponding to respective AC */
   4984 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_NUM_SAMPLES = 32,
   4985 	/* Unsigned 32 bit value. Number of peers */
   4986 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_NUM_PEERS = 33,
   4987 
   4988 	/* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_* are
   4989 	 * nested within the interface stats.
   4990 	 */
   4991 
   4992 	/* Type = enum wifi_peer_type. Peer type, e.g., STA, AP, P2P GO etc. */
   4993 	QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_TYPE = 34,
   4994 	/* MAC addr corresponding to respective peer. An array of 6 unsigned
   4995 	 * 8 bit values.
   4996 	 */
   4997 	QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_MAC_ADDRESS = 35,
   4998 	/* Unsigned int 32 bit value representing capabilities corresponding
   4999 	 * to respective peer.
   5000 	 */
   5001 	QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_CAPABILITIES = 36,
   5002 	/* Unsigned 32 bit value. Number of rates */
   5003 	QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_NUM_RATES = 37,
   5004 
   5005 	/* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_*
   5006 	 * are nested within the rate stat.
   5007 	 */
   5008 
   5009 	/* Wi-Fi Rate - separate attributes defined for individual fields */
   5010 
   5011 	/* Unsigned int 8 bit value; 0: OFDM, 1:CCK, 2:HT 3:VHT 4..7 reserved */
   5012 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_PREAMBLE = 38,
   5013 	/* Unsigned int 8 bit value; 0:1x1, 1:2x2, 3:3x3, 4:4x4 */
   5014 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_NSS = 39,
   5015 	/* Unsigned int 8 bit value; 0:20 MHz, 1:40 MHz, 2:80 MHz, 3:160 MHz */
   5016 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_BW = 40,
   5017 	/* Unsigned int 8 bit value; OFDM/CCK rate code would be as per IEEE Std
   5018 	 * in the units of 0.5 Mbps HT/VHT it would be MCS index
   5019 	 */
   5020 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_MCS_INDEX = 41,
   5021 
   5022 	/* Unsigned 32 bit value. Bit rate in units of 100 kbps */
   5023 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_BIT_RATE = 42,
   5024 
   5025 	/* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_STAT_* could be
   5026 	 * nested within the peer info stats.
   5027 	 */
   5028 
   5029 	/* Unsigned int 32 bit value. Number of successfully transmitted data
   5030 	 * packets, i.e., with ACK received corresponding to the respective
   5031 	 * rate.
   5032 	 */
   5033 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_TX_MPDU = 43,
   5034 	/* Unsigned int 32 bit value. Number of received data packets
   5035 	 * corresponding to the respective rate.
   5036 	 */
   5037 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RX_MPDU = 44,
   5038 	/* Unsigned int 32 bit value. Number of data packet losses, i.e., no ACK
   5039 	 * received corresponding to the respective rate.
   5040 	 */
   5041 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_MPDU_LOST = 45,
   5042 	/* Unsigned int 32 bit value. Total number of data packet retries for
   5043 	 * the respective rate.
   5044 	 */
   5045 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES = 46,
   5046 	/* Unsigned int 32 bit value. Total number of short data packet retries
   5047 	 * for the respective rate.
   5048 	 */
   5049 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES_SHORT = 47,
   5050 	/* Unsigned int 32 bit value. Total number of long data packet retries
   5051 	 * for the respective rate.
   5052 	 */
   5053 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES_LONG = 48,
   5054 
   5055 	/* Unsigned 32 bit value. This is used to indicate radio ID of the radio
   5056 	 * statistics when %QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE is
   5057 	 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_RADIO. This is also used
   5058 	 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK to indicate radio ID
   5059 	 * of the MLO link.
   5060 	 */
   5061 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ID = 49,
   5062 	/* Unsigned 32 bit value. Total number of msecs the radio is awake
   5063 	 * accruing over time.
   5064 	 */
   5065 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME = 50,
   5066 	/* Unsigned 32 bit value. Total number of msecs the radio is
   5067 	 * transmitting accruing over time.
   5068 	 */
   5069 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_TX_TIME = 51,
   5070 	/* Unsigned 32 bit value. Total number of msecs the radio is in active
   5071 	 * receive accruing over time.
   5072 	 */
   5073 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_RX_TIME = 52,
   5074 	/* Unsigned 32 bit value. Total number of msecs the radio is awake due
   5075 	 * to all scan accruing over time.
   5076 	 */
   5077 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_SCAN = 53,
   5078 	/* Unsigned 32 bit value. Total number of msecs the radio is awake due
   5079 	 * to NAN accruing over time.
   5080 	 */
   5081 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_NBD = 54,
   5082 	/* Unsigned 32 bit value. Total number of msecs the radio is awake due
   5083 	 * to GSCAN accruing over time.
   5084 	 */
   5085 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_GSCAN = 55,
   5086 	/* Unsigned 32 bit value. Total number of msecs the radio is awake due
   5087 	 * to roam scan accruing over time.
   5088 	 */
   5089 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_ROAM_SCAN = 56,
   5090 	/* Unsigned 32 bit value. Total number of msecs the radio is awake due
   5091 	 * to PNO scan accruing over time.
   5092 	 */
   5093 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_PNO_SCAN = 57,
   5094 	/* Unsigned 32 bit value. Total number of msecs the radio is awake due
   5095 	 * to Hotspot 2.0 scans and GAS exchange accruing over time.
   5096 	 */
   5097 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_HS20 = 58,
   5098 	/* Unsigned 32 bit value. Number of channels. */
   5099 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_NUM_CHANNELS = 59,
   5100 
   5101 	/* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_* could
   5102 	 * be nested within the channel stats.
   5103 	 */
   5104 
   5105 	/* Type = enum wifi_channel_width. Channel width, e.g., 20, 40, 80 */
   5106 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_WIDTH = 60,
   5107 	/* Unsigned 32 bit value. Primary 20 MHz channel. This is used to
   5108 	 * indicate the primary frequency of the channel when
   5109 	 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE is
   5110 	 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_RADIO. This is also used inside
   5111 	 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK to indicate the frequency
   5112 	 * on which the MLO link is operating.
   5113 	 */
   5114 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ = 61,
   5115 	/* Unsigned 32 bit value. Center frequency (MHz) first segment. */
   5116 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ0 = 62,
   5117 	/* Unsigned 32 bit value. Center frequency (MHz) second segment. */
   5118 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ1 = 63,
   5119 
   5120 	/* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_* could be
   5121 	 * nested within the radio stats.
   5122 	 */
   5123 
   5124 	/* Unsigned int 32 bit value representing total number of msecs the
   5125 	 * radio is awake on that channel accruing over time, corresponding to
   5126 	 * the respective channel.
   5127 	 */
   5128 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_ON_TIME = 64,
   5129 	/* Unsigned int 32 bit value representing total number of msecs the CCA
   5130 	 * register is busy accruing over time corresponding to the respective
   5131 	 * channel.
   5132 	 */
   5133 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_CCA_BUSY_TIME = 65,
   5134 
   5135 	QCA_WLAN_VENDOR_ATTR_LL_STATS_NUM_RADIOS = 66,
   5136 
   5137 	/* Signifies the nested list of channel attributes
   5138 	 * QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_*
   5139 	 */
   5140 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO = 67,
   5141 
   5142 	/* Signifies the nested list of peer info attributes
   5143 	 * QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_*. For MLO connection,
   5144 	 * this also contains %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK_ID to
   5145 	 * indicate on which link the peer is connected.
   5146 	 */
   5147 	QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO = 68,
   5148 
   5149 	/* Signifies the nested list of rate info attributes
   5150 	 * QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_*
   5151 	 */
   5152 	QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_RATE_INFO = 69,
   5153 
   5154 	/* Signifies the nested list of wmm info attributes
   5155 	 * QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_*
   5156 	 */
   5157 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_INFO = 70,
   5158 
   5159 	/* Unsigned 8 bit value. Used by the driver; if set to 1, it indicates
   5160 	 * that more stats, e.g., peers or radio, are to follow in the next
   5161 	 * QCA_NL80211_VENDOR_SUBCMD_LL_STATS_*_RESULTS event.
   5162 	 * Otherwise, it is set to 0.
   5163 	 */
   5164 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RESULTS_MORE_DATA = 71,
   5165 
   5166 	/* Unsigned 64 bit value. For an MLO connection, indicates the value of
   5167 	 * the link with the best RSSI outside
   5168 	 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
   5169 	 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
   5170 	 */
   5171 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_AVERAGE_TSF_OFFSET = 72,
   5172 
   5173 	/* Unsigned 32 bit value. For an MLO connection, indicates the value of
   5174 	 * the link with the best RSSI outside
   5175 	 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
   5176 	 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
   5177 	 */
   5178 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_DETECTED = 73,
   5179 
   5180 	/* Unsigned 32 bit value. For an MLO connection, indicates the value of
   5181 	 * the link with the best RSSI outside
   5182 	 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
   5183 	 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
   5184 	 */
   5185 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_AVG_NUM_FRAMES_LEAKED = 74,
   5186 
   5187 	/* Unsigned 32 bit value. For an MLO connection, indicates the value of
   5188 	 * the link with the best RSSI outside
   5189 	 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
   5190 	 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
   5191 	 */
   5192 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_GUARD_TIME = 75,
   5193 
   5194 	/* Unsigned 32 bit value */
   5195 	QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE = 76,
   5196 
   5197 	/* Unsigned 32 bit value */
   5198 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_NUM_TX_LEVELS = 77,
   5199 
   5200 	/* Number of msecs the radio spent in transmitting for each power level
   5201 	 */
   5202 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_TX_TIME_PER_LEVEL = 78,
   5203 
   5204 	/* Unsigned 32 bit value. For an MLO connection, indicates the value of
   5205 	 * the link with the best RSSI outside
   5206 	 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
   5207 	 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
   5208 	 */
   5209 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RTS_SUCC_CNT = 79,
   5210 	/* Unsigned 32 bit value. For an MLO connection, indicates the value of
   5211 	 * the link with the best RSSI outside
   5212 	 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
   5213 	 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
   5214 	 */
   5215 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RTS_FAIL_CNT = 80,
   5216 	/* Unsigned 32 bit value. For an MLO connection, indicates the value of
   5217 	 * the link with the best RSSI outside
   5218 	 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
   5219 	 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
   5220 	 */
   5221 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_PPDU_SUCC_CNT = 81,
   5222 	/* Unsigned 32 bit value. For an MLO connection, indicates the value of
   5223 	 * the link with the best RSSI outside
   5224 	 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
   5225 	 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
   5226 	 */
   5227 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_PPDU_FAIL_CNT = 82,
   5228 
   5229 	/* Unsigned int 32 value.
   5230 	 * Pending MSDUs corresponding to respective AC.
   5231 	 */
   5232 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_PENDING_MSDU = 83,
   5233 
   5234 	/* u32 value representing total time in milliseconds for which the radio
   5235 	 * is transmitting on this channel. This attribute will be nested
   5236 	 * within QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO.
   5237 	 */
   5238 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_TX_TIME = 84,
   5239 	/* u32 value representing total time in milliseconds for which the radio
   5240 	 * is receiving all 802.11 frames intended for this device on this
   5241 	 * channel. This attribute will be nested within
   5242 	 * QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO.
   5243 	 */
   5244 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_RX_TIME = 85,
   5245 	/* u8 value representing the channel load percentage. Possible values
   5246 	 * are 0-100.
   5247 	 */
   5248 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_LOAD_PERCENTAGE = 86,
   5249 	/* u8 value representing the time slicing duty cycle percentage.
   5250 	 * Possible values are 0-100. For an MLO connection, indicates the value
   5251 	 * of the link with the best RSSI outside
   5252 	 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
   5253 	 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
   5254 	 */
   5255 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_TS_DUTY_CYCLE = 87,
   5256 	/* Unsigned 32 bit value. The number of Beacon frames which are received
   5257 	 * from the associated AP and indicate buffered unicast frame(s) for us
   5258 	 * in the TIM element. For an MLO connection, indicates the value of the
   5259 	 * link with the best RSSI outside
   5260 	 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
   5261 	 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
   5262 	 */
   5263 	QCA_WLAN_VENDOR_ATTR_LL_STATS_TIM_BEACON = 88,
   5264 	/* Unsigned 32 bit value. The total number of Beacon frames received
   5265 	 * from the associated AP that have wrongly indicated buffered unicast
   5266 	 * traffic in the TIM element for us.
   5267 	 * Below scenarios will be considered as wrong TIM element beacon:
   5268 	 * 1)	The related TIM element is set in the beacon for STA but STA
   5269 	 *      doesnt receive any unicast data after this beacon.
   5270 	 * 2)	The related TIM element is still set in the beacon for STA
   5271 	 *	after STA has indicated power save exit by QoS Null Data frame.
   5272 	 * For an MLO connection, indicates the value of the link with the best
   5273 	 * RSSI outside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link
   5274 	 * specific value inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
   5275 	 */
   5276 	QCA_WLAN_VENDOR_ATTR_LL_STATS_TIM_BEACON_ERR = 89,
   5277 
   5278 	/* Signed 32 bit value. It represents the noise floor calibration value.
   5279 	 * Possible values are -120~-50 dBm. For an MLO connection, indicates
   5280 	 * the value of the link with the best RSSI outside
   5281 	 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
   5282 	 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
   5283 	 */
   5284 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_NF_CAL_VAL = 90,
   5285 
   5286 	/* Attribute used for padding for 64-bit alignment */
   5287 	QCA_WLAN_VENDOR_ATTR_LL_STATS_PAD = 91,
   5288 
   5289 	/* Unsigned u8 value, link ID of an MLO link. Used inside nested
   5290 	 * attribute %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK to represent the
   5291 	 * link ID of the MLO link for which the statistics are embedded in the
   5292 	 * nested attribute. Used inside nested attribute
   5293 	 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO to represent the connected
   5294 	 * link ID of the peer.
   5295 	 */
   5296 	QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK_ID = 92,
   5297 
   5298 	/* A nested array of attributes for each MLO link, each containing
   5299 	 * per-link statistics of a multi link connection. The attributes used
   5300 	 * inside this nested attribute are defined in enum
   5301 	 * qca_wlan_vendor_attr_ll_stats_results.
   5302 	 *
   5303 	 * For non-MLO connection, this attribute is not present and the
   5304 	 * statistics will be sent outside this attribute (without nesting).
   5305 	 *
   5306 	 * For MLO connection, this attribute is present and also cumulative
   5307 	 * statistics of all the links will be sent outside of this attribute
   5308 	 * to be compatible with legacy user space.
   5309 	 */
   5310 	QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK = 93,
   5311 
   5312 	/* keep last */
   5313 	QCA_WLAN_VENDOR_ATTR_LL_STATS_AFTER_LAST,
   5314 	QCA_WLAN_VENDOR_ATTR_LL_STATS_MAX =
   5315 	QCA_WLAN_VENDOR_ATTR_LL_STATS_AFTER_LAST - 1,
   5316 };
   5317 
   5318 enum qca_wlan_vendor_attr_ll_stats_type {
   5319 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_INVALID = 0,
   5320 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_RADIO = 1,
   5321 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_IFACE = 2,
   5322 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_PEERS = 3,
   5323 
   5324 	/* keep last */
   5325 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_AFTER_LAST,
   5326 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_MAX =
   5327 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_AFTER_LAST - 1,
   5328 };
   5329 
   5330 /**
   5331  * enum qca_wlan_vendor_attr_tdls_configuration - Attributes for
   5332  * TDLS configuration to the host driver.
   5333  *
   5334  * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE: Configure the TDLS trigger
   5335  *	mode in the host driver. enum qca_wlan_vendor_tdls_trigger_mode
   5336  *	represents the different TDLS trigger modes.
   5337  * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD: Duration (u32) within
   5338  *      which QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD number
   5339  *      of packets shall meet the criteria for implicit TDLS setup.
   5340  * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD: Number (u32) of Tx/Rx packets
   5341  *      within a duration QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD
   5342  *      to initiate a TDLS setup.
   5343  * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_DISCOVERY_PERIOD: Time (u32) to initiate
   5344  *      a TDLS Discovery to the peer.
   5345  * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX_DISCOVERY_ATTEMPT: Max number (u32) of
   5346  *      discovery attempts to know the TDLS capability of the peer. A peer is
   5347  *      marked as TDLS not capable if there is no response for all the attempts.
   5348  * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT: Represents a duration (u32)
   5349  *      within which QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD
   5350  *      number of TX / RX frames meet the criteria for TDLS teardown.
   5351  * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD: Minimum number (u32)
   5352  *      of Tx/Rx packets within a duration
   5353  *      QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT to tear down a TDLS link.
   5354  * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_SETUP_RSSI_THRESHOLD: Threshold
   5355  *	corresponding to the RSSI of the peer below which a TDLS setup is
   5356  *	triggered.
   5357  * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TEARDOWN_RSSI_THRESHOLD: Threshold
   5358  *	corresponding to the RSSI of the peer above which a TDLS teardown is
   5359  *	triggered.
   5360  */
   5361 enum qca_wlan_vendor_attr_tdls_configuration {
   5362 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_INVALID = 0,
   5363 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE = 1,
   5364 
   5365 	/* Attributes configuring the TDLS Implicit Trigger */
   5366 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD = 2,
   5367 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD = 3,
   5368 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_DISCOVERY_PERIOD = 4,
   5369 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX_DISCOVERY_ATTEMPT = 5,
   5370 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT = 6,
   5371 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD = 7,
   5372 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_SETUP_RSSI_THRESHOLD = 8,
   5373 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TEARDOWN_RSSI_THRESHOLD = 9,
   5374 
   5375 	/* keep last */
   5376 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_AFTER_LAST,
   5377 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX =
   5378 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_AFTER_LAST - 1
   5379 };
   5380 
   5381 /**
   5382  * enum qca_wlan_vendor_tdls_trigger_mode: Represents the TDLS trigger mode in
   5383  *	the driver
   5384  *
   5385  * The following are the different values for
   5386  *	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE.
   5387  *
   5388  * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXPLICIT: The trigger to initiate/teardown
   5389  *	the TDLS connection to a respective peer comes from the user space.
   5390  *	wpa_supplicant provides the commands TDLS_SETUP, TDLS_TEARDOWN,
   5391  *	TDLS_DISCOVER to do this.
   5392  * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_IMPLICIT: Host driver triggers this TDLS
   5393  *	setup/teardown to the eligible peer once the configured criteria
   5394  *	(such as TX/RX threshold, RSSI) is met. The attributes
   5395  *	in QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IMPLICIT_PARAMS correspond to
   5396  *	the different configuration criteria for the TDLS trigger from the
   5397  *	host driver.
   5398  * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXTERNAL: Enables the driver to trigger
   5399  *	the TDLS setup / teardown through the implicit mode only to the
   5400  *	configured MAC addresses (wpa_supplicant, with tdls_external_control=1,
   5401  *	configures the MAC address through TDLS_SETUP / TDLS_TEARDOWN commands).
   5402  *	External mode works on top of the implicit mode. Thus the host driver
   5403  *	is expected to configure in TDLS Implicit mode too to operate in
   5404  *	External mode.
   5405  *	Configuring External mode alone without	Implicit mode is invalid.
   5406  *
   5407  * All the above implementations work as expected only when the host driver
   5408  * advertises the capability WPA_DRIVER_FLAGS_TDLS_EXTERNAL_SETUP - representing
   5409  * that the TDLS message exchange is not internal to the host driver, but
   5410  * depends on wpa_supplicant to do the message exchange.
   5411  */
   5412 enum qca_wlan_vendor_tdls_trigger_mode {
   5413 	QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXPLICIT = 1 << 0,
   5414 	QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_IMPLICIT = 1 << 1,
   5415 	QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXTERNAL = 1 << 2,
   5416 };
   5417 
   5418 /**
   5419  * enum qca_vendor_attr_sar_limits_selections - Source of SAR power limits
   5420  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF0: Select SAR profile #0
   5421  *	that is hard-coded in the Board Data File (BDF).
   5422  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF1: Select SAR profile #1
   5423  *	that is hard-coded in the Board Data File (BDF).
   5424  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF2: Select SAR profile #2
   5425  *	that is hard-coded in the Board Data File (BDF).
   5426  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF3: Select SAR profile #3
   5427  *	that is hard-coded in the Board Data File (BDF).
   5428  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF4: Select SAR profile #4
   5429  *	that is hard-coded in the Board Data File (BDF).
   5430  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_NONE: Do not select any
   5431  *	source of SAR power limits, thereby disabling the SAR power
   5432  *	limit feature.
   5433  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER: Select the SAR power
   5434  *	limits configured by %QCA_NL80211_VENDOR_SUBCMD_SET_SAR.
   5435  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0: Select the SAR power
   5436  *	limits version 2.0 configured by %QCA_NL80211_VENDOR_SUBCMD_SET_SAR.
   5437  *
   5438  * This enumerates the valid set of values that may be supplied for
   5439  * attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT in an instance of
   5440  * the %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS vendor command or in
   5441  * the response to an instance of the
   5442  * %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS vendor command.
   5443  */
   5444 enum qca_vendor_attr_sar_limits_selections {
   5445 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF0 = 0,
   5446 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF1 = 1,
   5447 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF2 = 2,
   5448 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF3 = 3,
   5449 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF4 = 4,
   5450 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_NONE = 5,
   5451 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER = 6,
   5452 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0 = 7,
   5453 };
   5454 
   5455 /**
   5456  * enum qca_vendor_attr_sar_limits_spec_modulations -
   5457  *	SAR limits specification modulation
   5458  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_CCK -
   5459  *	CCK modulation
   5460  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_OFDM -
   5461  *	OFDM modulation
   5462  *
   5463  * This enumerates the valid set of values that may be supplied for
   5464  * attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION in an
   5465  * instance of attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC in an
   5466  * instance of the %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS vendor
   5467  * command or in the response to an instance of the
   5468  * %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS vendor command.
   5469  */
   5470 enum qca_vendor_attr_sar_limits_spec_modulations {
   5471 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_CCK = 0,
   5472 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_OFDM = 1,
   5473 };
   5474 
   5475 /**
   5476  * enum qca_vendor_attr_sar_limits - Attributes for SAR power limits
   5477  *
   5478  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE: Optional (u32) value to
   5479  *	select which SAR power limit table should be used. Valid
   5480  *	values are enumerated in enum
   5481  *	%qca_vendor_attr_sar_limits_selections. The existing SAR
   5482  *	power limit selection is unchanged if this attribute is not
   5483  *	present.
   5484  *
   5485  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS: Optional (u32) value
   5486  *	which specifies the number of SAR power limit specifications
   5487  *	which will follow.
   5488  *
   5489  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC: Nested array of SAR power
   5490  *	limit specifications. The number of specifications is
   5491  *	specified by @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS. Each
   5492  *	specification contains a set of
   5493  *	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_* attributes. A
   5494  *	specification is uniquely identified by the attributes
   5495  *	%QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND,
   5496  *	%QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN, and
   5497  *	%QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION and always
   5498  *	contains as a payload the attribute
   5499  *	%QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT,
   5500  *	%QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX.
   5501  *	Either %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT or
   5502  *	%QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX is
   5503  *	needed based upon the value of
   5504  *	%QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE.
   5505  *
   5506  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND: Optional (u32) value to
   5507  *	indicate for which band this specification applies. Valid
   5508  *	values are enumerated in enum %nl80211_band (although not all
   5509  *	bands may be supported by a given device). If the attribute is
   5510  *	not supplied then the specification will be applied to all
   5511  *	supported bands.
   5512  *
   5513  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN: Optional (u32) value
   5514  *	to indicate for which antenna chain this specification
   5515  *	applies, i.e. 1 for chain 1, 2 for chain 2, etc. If the
   5516  *	attribute is not supplied then the specification will be
   5517  *	applied to all chains.
   5518  *
   5519  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION: Optional (u32)
   5520  *	value to indicate for which modulation scheme this
   5521  *	specification applies. Valid values are enumerated in enum
   5522  *	%qca_vendor_attr_sar_limits_spec_modulations. If the attribute
   5523  *	is not supplied then the specification will be applied to all
   5524  *	modulation schemes.
   5525  *
   5526  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT: Required (u32)
   5527  *	value to specify the actual power limit value in units of 0.5
   5528  *	dBm (i.e., a value of 11 represents 5.5 dBm).
   5529  *	This is required, when %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT is
   5530  *	%QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER.
   5531  *
   5532  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX: Required (u32)
   5533  *	value to indicate SAR V2 indices (0 - 11) to select SAR V2 profiles.
   5534  *	This is required, when %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT is
   5535  *	%QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0.
   5536  *
   5537  * These attributes are used with %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS
   5538  * and %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS.
   5539  */
   5540 enum qca_vendor_attr_sar_limits {
   5541 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_INVALID = 0,
   5542 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE = 1,
   5543 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS = 2,
   5544 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC = 3,
   5545 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND = 4,
   5546 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN = 5,
   5547 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION = 6,
   5548 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT = 7,
   5549 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX = 8,
   5550 
   5551 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_AFTER_LAST,
   5552 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_MAX =
   5553 		QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_AFTER_LAST - 1
   5554 };
   5555 
   5556 /**
   5557  * enum qca_wlan_vendor_attr_get_wifi_info: Attributes for data used by
   5558  * QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_INFO sub command.
   5559  *
   5560  * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_DRIVER_VERSION: In a request this attribute
   5561  *	should be set to any U8 value to indicate that the driver version
   5562  *	should be returned. When enabled in this manner, in a response this
   5563  *	attribute will contain a string representation of the driver version.
   5564  *
   5565  * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_FIRMWARE_VERSION: In a request this attribute
   5566  *	should be set to any U8 value to indicate that the firmware version
   5567  *	should be returned. When enabled in this manner, in a response this
   5568  *	attribute will contain a string representation of the firmware version.
   5569  *
   5570  * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_RADIO_INDEX: In a request this attribute
   5571  *	should be set to any U32 value to indicate that the current radio
   5572  *	index should be returned. When enabled in this manner, in a response
   5573  *	this attribute will contain a U32 radio index value.
   5574  *
   5575  */
   5576 enum qca_wlan_vendor_attr_get_wifi_info {
   5577 	QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_INVALID = 0,
   5578 	QCA_WLAN_VENDOR_ATTR_WIFI_INFO_DRIVER_VERSION = 1,
   5579 	QCA_WLAN_VENDOR_ATTR_WIFI_INFO_FIRMWARE_VERSION = 2,
   5580 	QCA_WLAN_VENDOR_ATTR_WIFI_INFO_RADIO_INDEX = 3,
   5581 
   5582 	/* keep last */
   5583 	QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST,
   5584 	QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_MAX =
   5585 	QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST - 1,
   5586 };
   5587 
   5588 /*
   5589  * enum qca_wlan_vendor_attr_wifi_logger_start: Attributes for data used by
   5590  * QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_START sub command.
   5591  */
   5592 enum qca_wlan_vendor_attr_wifi_logger_start {
   5593 	QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_INVALID = 0,
   5594 	QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_RING_ID = 1,
   5595 	QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_VERBOSE_LEVEL = 2,
   5596 	QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_FLAGS = 3,
   5597 
   5598 	/* keep last */
   5599 	QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST,
   5600 	QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_GET_MAX =
   5601 	QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST - 1,
   5602 };
   5603 
   5604 enum qca_wlan_vendor_attr_logger_results {
   5605 	QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_INVALID = 0,
   5606 
   5607 	/* Unsigned 32-bit value; must match the request Id supplied by
   5608 	 * Wi-Fi HAL in the corresponding subcmd NL msg.
   5609 	 */
   5610 	QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_REQUEST_ID = 1,
   5611 
   5612 	/* Unsigned 32-bit value; used to indicate the size of memory
   5613 	 * dump to be allocated.
   5614 	 */
   5615 	QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_MEMDUMP_SIZE = 2,
   5616 
   5617 	/* keep last */
   5618 	QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_AFTER_LAST,
   5619 	QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_MAX =
   5620 	QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_AFTER_LAST - 1,
   5621 };
   5622 
   5623 /**
   5624  * enum qca_scan_freq_list_type: Frequency list types
   5625  *
   5626  * @QCA_PREFERRED_SCAN_FREQ_LIST: The driver shall use the scan frequency list
   5627  *	specified with attribute QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST as
   5628  *	a preferred frequency list for roaming.
   5629  *
   5630  * @QCA_SPECIFIC_SCAN_FREQ_LIST: The driver shall use the frequency list
   5631  *	specified with attribute QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST as
   5632  *	a specific frequency list for roaming.
   5633  */
   5634 enum qca_scan_freq_list_type {
   5635 	QCA_PREFERRED_SCAN_FREQ_LIST = 1,
   5636 	QCA_SPECIFIC_SCAN_FREQ_LIST = 2,
   5637 };
   5638 
   5639 /**
   5640  * enum qca_vendor_attr_scan_freq_list_scheme: Frequency list scheme
   5641  *
   5642  * @QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST: Nested attribute of u32 values
   5643  *	List of frequencies in MHz to be considered for a roam scan.
   5644  *
   5645  * @QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_TYPE: Unsigned 32-bit value.
   5646  *	Type of frequency list scheme being configured/gotten as defined by the
   5647  *	enum qca_scan_freq_list_type.
   5648  */
   5649 enum qca_vendor_attr_scan_freq_list_scheme {
   5650 	QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST = 1,
   5651 	QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_TYPE = 2,
   5652 
   5653 	/* keep last */
   5654 	QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_AFTER_LAST,
   5655 	QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_MAX =
   5656 	QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_AFTER_LAST - 1,
   5657 };
   5658 
   5659 /**
   5660  * enum qca_roam_scan_scheme: Scan scheme
   5661  *
   5662  * @QCA_ROAM_SCAN_SCHEME_NO_SCAN: No frequencies specified to scan.
   5663  *     Indicates the driver to not scan on a Roam Trigger scenario, but
   5664  *     disconnect. E.g., on a BTM request from the AP the driver/firmware shall
   5665  *     disconnect from the current connected AP by notifying a failure
   5666  *     code in the BTM response.
   5667  *
   5668  * @QCA_ROAM_SCAN_SCHEME_PARTIAL_SCAN: Indicates the driver/firmware to
   5669  *     trigger partial frequency scans. These frequencies are the ones learned
   5670  *     or maintained by the driver based on the probability of finding the
   5671  *     BSSIDs in the ESS for which the roaming is triggered.
   5672  *
   5673  * @QCA_ROAM_SCAN_SCHEME_FULL_SCAN: Indicates the driver/firmware to
   5674  *     trigger the scan on all the valid frequencies to find better
   5675  *     candidates to roam.
   5676  */
   5677 enum qca_roam_scan_scheme {
   5678 	QCA_ROAM_SCAN_SCHEME_NO_SCAN = 0,
   5679 	QCA_ROAM_SCAN_SCHEME_PARTIAL_SCAN = 1,
   5680 	QCA_ROAM_SCAN_SCHEME_FULL_SCAN = 2,
   5681 };
   5682 
   5683 /*
   5684  * enum qca_vendor_roam_triggers: Bitmap of roaming triggers
   5685  *
   5686  * @QCA_ROAM_TRIGGER_REASON_PER: Set if the roam has to be triggered based on
   5687  *	a bad packet error rates (PER).
   5688  * @QCA_ROAM_TRIGGER_REASON_BEACON_MISS: Set if the roam has to be triggered
   5689  *	based on beacon misses from the connected AP.
   5690  * @QCA_ROAM_TRIGGER_REASON_POOR_RSSI: Set if the roam has to be triggered
   5691  *	due to poor RSSI of the connected AP.
   5692  * @QCA_ROAM_TRIGGER_REASON_BETTER_RSSI: Set if the roam has to be triggered
   5693  *	upon finding a BSSID with a better RSSI than the connected BSSID.
   5694  *	Also, set if the roam has to be triggered due to the high RSSI of the
   5695  *	current connected AP (better than
   5696  *	QCA_ATTR_ROAM_CONTROL_CONNECTED_HIGH_RSSI_OFFSET). Here the RSSI of
   5697  *	the current BSSID need not be poor.
   5698  * @QCA_ROAM_TRIGGER_REASON_PERIODIC: Set if the roam has to be triggered
   5699  *	by triggering a periodic scan to find a better AP to roam.
   5700  * @QCA_ROAM_TRIGGER_REASON_DENSE: Set if the roam has to be triggered
   5701  *	when the connected channel environment is too noisy/congested.
   5702  * @QCA_ROAM_TRIGGER_REASON_BTM: Set if the roam has to be triggered
   5703  *	when BTM Request frame is received from the connected AP.
   5704  * @QCA_ROAM_TRIGGER_REASON_BSS_LOAD: Set if the roam has to be triggered
   5705  *	when the channel utilization is goes above the configured threshold.
   5706  * @QCA_ROAM_TRIGGER_REASON_USER_TRIGGER: Set if the roam has to be triggered
   5707  *	based on the request from the user (space).
   5708  * @QCA_ROAM_TRIGGER_REASON_DEAUTH: Set if the roam has to be triggered when
   5709  *	device receives Deauthentication/Disassociation frame from connected AP.
   5710  * @QCA_ROAM_TRIGGER_REASON_IDLE: Set if the roam has to be triggered when the
   5711  *	device is in idle state (no TX/RX) and suspend mode, if the current RSSI
   5712  *	is determined to be a poor one.
   5713  * @QCA_ROAM_TRIGGER_REASON_TX_FAILURES: Set if the roam has to be triggered
   5714  *	based on continuous TX Data frame failures to the connected AP.
   5715  * @QCA_ROAM_TRIGGER_REASON_EXTERNAL_SCAN: Set if the roam has to be triggered
   5716  *	based on the scan results obtained from an external scan (not triggered
   5717  *	to aim roaming).
   5718  *
   5719  * Set the corresponding roam trigger reason bit to consider it for roam
   5720  * trigger.
   5721  * Userspace can set multiple bits and send to the driver. The driver shall
   5722  * consider all of them to trigger/initiate a roam scan.
   5723  */
   5724 enum qca_vendor_roam_triggers {
   5725 	QCA_ROAM_TRIGGER_REASON_PER		= 1 << 0,
   5726 	QCA_ROAM_TRIGGER_REASON_BEACON_MISS	= 1 << 1,
   5727 	QCA_ROAM_TRIGGER_REASON_POOR_RSSI	= 1 << 2,
   5728 	QCA_ROAM_TRIGGER_REASON_BETTER_RSSI	= 1 << 3,
   5729 	QCA_ROAM_TRIGGER_REASON_PERIODIC	= 1 << 4,
   5730 	QCA_ROAM_TRIGGER_REASON_DENSE		= 1 << 5,
   5731 	QCA_ROAM_TRIGGER_REASON_BTM		= 1 << 6,
   5732 	QCA_ROAM_TRIGGER_REASON_BSS_LOAD	= 1 << 7,
   5733 	QCA_ROAM_TRIGGER_REASON_USER_TRIGGER	= 1 << 8,
   5734 	QCA_ROAM_TRIGGER_REASON_DEAUTH          = 1 << 9,
   5735 	QCA_ROAM_TRIGGER_REASON_IDLE		= 1 << 10,
   5736 	QCA_ROAM_TRIGGER_REASON_TX_FAILURES	= 1 << 11,
   5737 	QCA_ROAM_TRIGGER_REASON_EXTERNAL_SCAN	= 1 << 12,
   5738 };
   5739 
   5740 /*
   5741  * enum qca_vendor_roam_fail_reasons: Defines the various roam
   5742  * fail reasons. This enum value is used in
   5743  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_FAIL_REASON attribute.
   5744  *
   5745  * @QCA_ROAM_FAIL_REASON_SCAN_NOT_ALLOWED: Roam module in the firmware is not
   5746  * able to trigger the scan.
   5747  * @QCA_ROAM_FAIL_REASON_NO_AP_FOUND: No roamable APs found during roam scan.
   5748  * @QCA_ROAM_FAIL_REASON_NO_CAND_AP_FOUND: No candidate APs found during roam
   5749  * scan.
   5750  * @QCA_ROAM_FAIL_REASON_HOST: Roam fail due to disconnect issued from host.
   5751  * @QCA_ROAM_FAIL_REASON_AUTH_SEND: Unable to send Authentication frame.
   5752  * @QCA_ROAM_FAIL_REASON_AUTH_RECV: Received Authentication frame with error
   5753  * status code.
   5754  * @QCA_ROAM_FAIL_REASON_NO_AUTH_RESP: Authentication frame not received.
   5755  * @QCA_ROAM_FAIL_REASON_REASSOC_SEND: Unable to send Reassociation Request
   5756  * frame.
   5757  * @QCA_ROAM_FAIL_REASON_REASSOC_RECV: Received Reassociation Response frame
   5758  * with error status code.
   5759  * @QCA_ROAM_FAIL_REASON_NO_REASSOC_RESP: Reassociation Response frame not
   5760  * received.
   5761  * @QCA_ROAM_FAIL_REASON_SCAN_FAIL: Scan module not able to start scan.
   5762  * @QCA_ROAM_FAIL_REASON_AUTH_NO_ACK: No ACK is received for Authentication
   5763  * frame.
   5764  * @QCA_ROAM_FAIL_REASON_AUTH_INTERNAL_DROP: Authentication frame is dropped
   5765  * internally before transmission.
   5766  * @QCA_ROAM_FAIL_REASON_REASSOC_NO_ACK: No ACK is received for Reassociation
   5767  * Request frame.
   5768  * @QCA_ROAM_FAIL_REASON_REASSOC_INTERNAL_DROP: Reassociation Request frame is
   5769  * dropped internally.
   5770  * @QCA_ROAM_FAIL_REASON_EAPOL_M1_TIMEOUT: EAPOL-Key M1 is not received and
   5771  * times out.
   5772  * @QCA_ROAM_FAIL_REASON_EAPOL_M2_SEND: Unable to send EAPOL-Key M2 frame.
   5773  * @QCA_ROAM_FAIL_REASON_EAPOL_M2_INTERNAL_DROP: EAPOL-Key M2 frame dropped
   5774  * internally.
   5775  * @QCA_ROAM_FAIL_REASON_EAPOL_M2_NO_ACK: No ACK is received for EAPOL-Key
   5776  * M2 frame.
   5777  * @QCA_ROAM_FAIL_REASON_EAPOL_M3_TIMEOUT: EAPOL-Key M3 frame is not received.
   5778  * @QCA_ROAM_FAIL_REASON_EAPOL_M4_SEND: Unable to send EAPOL-Key M4 frame.
   5779  * @QCA_ROAM_FAIL_REASON_EAPOL_M4_INTERNAL_DROP: EAPOL-Key M4 frame dropped
   5780  * internally.
   5781  * @QCA_ROAM_FAIL_REASON_EAPOL_M4_NO_ACK: No ACK is received for EAPOL-Key M4
   5782  * frame.
   5783  * @QCA_ROAM_FAIL_REASON_NO_SCAN_FOR_FINAL_BEACON_MISS: Roam scan is not
   5784  * started for final beacon miss case.
   5785  * @QCA_ROAM_FAIL_REASON_DISCONNECT: Deauthentication or Disassociation frame
   5786  * received from the AP during roaming handoff.
   5787  * @QCA_ROAM_FAIL_REASON_RESUME_ABORT: Firmware roams to the AP when the Apps
   5788  * or host is suspended and gives the indication of the last roamed AP only
   5789  * when the Apps is resumed. If the Apps is resumed while the roaming is in
   5790  * progress, this ongoing roaming is aborted and the last roamed AP is
   5791  * indicated to host.
   5792  * @QCA_ROAM_FAIL_REASON_SAE_INVALID_PMKID: WPA3-SAE invalid PMKID.
   5793  * @QCA_ROAM_FAIL_REASON_SAE_PREAUTH_TIMEOUT: WPA3-SAE pre-authentication times
   5794  * out.
   5795  * @QCA_ROAM_FAIL_REASON_SAE_PREAUTH_FAIL: WPA3-SAE pre-authentication fails.
   5796  * @QCA_ROAM_FAIL_REASON_CURR_AP_STILL_OK: Roam scan did not happen since the
   5797  * current network conditions are fine.
   5798  */
   5799 enum qca_vendor_roam_fail_reasons {
   5800 	QCA_ROAM_FAIL_REASON_NONE = 0,
   5801 	QCA_ROAM_FAIL_REASON_SCAN_NOT_ALLOWED = 1,
   5802 	QCA_ROAM_FAIL_REASON_NO_AP_FOUND = 2,
   5803 	QCA_ROAM_FAIL_REASON_NO_CAND_AP_FOUND = 3,
   5804 	QCA_ROAM_FAIL_REASON_HOST = 4,
   5805 	QCA_ROAM_FAIL_REASON_AUTH_SEND = 5,
   5806 	QCA_ROAM_FAIL_REASON_AUTH_RECV = 6,
   5807 	QCA_ROAM_FAIL_REASON_NO_AUTH_RESP = 7,
   5808 	QCA_ROAM_FAIL_REASON_REASSOC_SEND = 8,
   5809 	QCA_ROAM_FAIL_REASON_REASSOC_RECV = 9,
   5810 	QCA_ROAM_FAIL_REASON_NO_REASSOC_RESP = 10,
   5811 	QCA_ROAM_FAIL_REASON_SCAN_FAIL = 11,
   5812 	QCA_ROAM_FAIL_REASON_AUTH_NO_ACK = 12,
   5813 	QCA_ROAM_FAIL_REASON_AUTH_INTERNAL_DROP = 13,
   5814 	QCA_ROAM_FAIL_REASON_REASSOC_NO_ACK = 14,
   5815 	QCA_ROAM_FAIL_REASON_REASSOC_INTERNAL_DROP = 15,
   5816 	QCA_ROAM_FAIL_REASON_EAPOL_M1_TIMEOUT = 16,
   5817 	QCA_ROAM_FAIL_REASON_EAPOL_M2_SEND = 17,
   5818 	QCA_ROAM_FAIL_REASON_EAPOL_M2_INTERNAL_DROP = 18,
   5819 	QCA_ROAM_FAIL_REASON_EAPOL_M2_NO_ACK = 19,
   5820 	QCA_ROAM_FAIL_REASON_EAPOL_M3_TIMEOUT = 20,
   5821 	QCA_ROAM_FAIL_REASON_EAPOL_M4_SEND = 21,
   5822 	QCA_ROAM_FAIL_REASON_EAPOL_M4_INTERNAL_DROP = 22,
   5823 	QCA_ROAM_FAIL_REASON_EAPOL_M4_NO_ACK = 23,
   5824 	QCA_ROAM_FAIL_REASON_NO_SCAN_FOR_FINAL_BEACON_MISS = 24,
   5825 	QCA_ROAM_FAIL_REASON_DISCONNECT = 25,
   5826 	QCA_ROAM_FAIL_REASON_RESUME_ABORT = 26,
   5827 	QCA_ROAM_FAIL_REASON_SAE_INVALID_PMKID = 27,
   5828 	QCA_ROAM_FAIL_REASON_SAE_PREAUTH_TIMEOUT = 28,
   5829 	QCA_ROAM_FAIL_REASON_SAE_PREAUTH_FAIL = 29,
   5830 	QCA_ROAM_FAIL_REASON_CURR_AP_STILL_OK = 30,
   5831 };
   5832 
   5833 /*
   5834  * enum qca_vendor_roam_invoke_fail_reasons: Defines the various roam
   5835  * invoke fail reasons. This enum value is used in
   5836  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_INVOKE_FAIL_REASON attribute.
   5837  *
   5838  * @QCA_ROAM_INVOKE_STATUS_IFACE_INVALID: Invalid interface ID is passed
   5839  * in roam invoke command.
   5840  * @QCA_ROAM_INVOKE_STATUS_OFFLOAD_DISABLE: Roam offload in firmware is not
   5841  * enabled.
   5842  * @QCA_ROAM_INVOKE_STATUS_AP_SSID_LENGTH_INVALID: Connected AP profile SSID
   5843  * length is invalid.
   5844  * @QCA_ROAM_INVOKE_STATUS_ROAM_DISALLOW: Firmware internal roaming is already
   5845  * in progress.
   5846  * @QCA_ROAM_INVOKE_STATUS_NON_ROAMABLE_AP: Host sends the Beacon/Probe Response
   5847  * of the AP in the roam invoke command to firmware. This reason is sent by the
   5848  * firmware when the given AP is configured to be ignored or SSID/security
   5849  * does not match.
   5850  * @QCA_ROAM_INVOKE_STATUS_ROAM_INTERNAL_FAIL: Roam handoff failed because of
   5851  * firmware internal reasons.
   5852  * @QCA_ROAM_INVOKE_STATUS_DISALLOW: Roam invoke trigger is not enabled.
   5853  * @QCA_ROAM_INVOKE_STATUS_SCAN_FAIL: Scan start fail for roam invoke.
   5854  * @QCA_ROAM_INVOKE_STATUS_START_ROAM_FAIL: Roam handoff start fail.
   5855  * @QCA_ROAM_INVOKE_STATUS_INVALID_PARAMS: Roam invoke parameters are invalid.
   5856  * @QCA_ROAM_INVOKE_STATUS_NO_CAND_AP: No candidate AP found to roam to.
   5857  * @QCA_ROAM_INVOKE_STATUS_ROAM_FAIL: Roam handoff failed.
   5858  */
   5859 enum qca_vendor_roam_invoke_fail_reasons {
   5860 	QCA_ROAM_INVOKE_STATUS_NONE = 0,
   5861 	QCA_ROAM_INVOKE_STATUS_IFACE_INVALID = 1,
   5862 	QCA_ROAM_INVOKE_STATUS_OFFLOAD_DISABLE = 2,
   5863 	QCA_ROAM_INVOKE_STATUS_AP_SSID_LENGTH_INVALID = 3,
   5864 	QCA_ROAM_INVOKE_STATUS_ROAM_DISALLOW = 4,
   5865 	QCA_ROAM_INVOKE_STATUS_NON_ROAMABLE_AP = 5,
   5866 	QCA_ROAM_INVOKE_STATUS_ROAM_INTERNAL_FAIL = 6,
   5867 	QCA_ROAM_INVOKE_STATUS_DISALLOW = 7,
   5868 	QCA_ROAM_INVOKE_STATUS_SCAN_FAIL = 8,
   5869 	QCA_ROAM_INVOKE_STATUS_START_ROAM_FAIL = 9,
   5870 	QCA_ROAM_INVOKE_STATUS_INVALID_PARAMS = 10,
   5871 	QCA_ROAM_INVOKE_STATUS_NO_CAND_AP = 11,
   5872 	QCA_ROAM_INVOKE_STATUS_ROAM_FAIL = 12,
   5873 
   5874 };
   5875 
   5876 /**
   5877  * enum qca_vendor_attr_roam_candidate_selection_criteria:
   5878  *
   5879  * Each attribute carries a weightage in percentage (%).
   5880  *
   5881  * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_RSSI: Unsigned 8-bit value.
   5882  *	Represents the weightage to be given for the RSSI selection
   5883  *	criteria among other parameters.
   5884  *
   5885  * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE: Unsigned 8-bit value.
   5886  *	Represents the weightage to be given for the rate selection
   5887  *	criteria among other parameters.
   5888  *
   5889  * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BW: Unsigned 8-bit value.
   5890  *	Represents the weightage to be given for the band width selection
   5891  *	criteria among other parameters.
   5892  *
   5893  * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BAND: Unsigned 8-bit value.
   5894  *	Represents the weightage to be given for the band selection
   5895  *	criteria among other parameters.
   5896  *
   5897  * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_NSS: Unsigned 8-bit value.
   5898  *	Represents the weightage to be given for the NSS selection
   5899  *	criteria among other parameters.
   5900  *
   5901  * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_CHAN_CONGESTION: Unsigned 8-bit value.
   5902  *	Represents the weightage to be given for the channel congestion
   5903  *	selection criteria among other parameters.
   5904  *
   5905  * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BEAMFORMING: Unsigned 8-bit value.
   5906  *	Represents the weightage to be given for the beamforming selection
   5907  *	criteria among other parameters.
   5908  *
   5909  * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_OCE_WAN: Unsigned 8-bit value.
   5910  *	Represents the weightage to be given for the OCE selection
   5911  *	criteria among other parameters.
   5912  */
   5913 enum qca_vendor_attr_roam_candidate_selection_criteria {
   5914 	QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_RSSI = 1,
   5915 	QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE = 2,
   5916 	QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BW = 3,
   5917 	QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BAND = 4,
   5918 	QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_NSS = 5,
   5919 	QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_CHAN_CONGESTION = 6,
   5920 	QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BEAMFORMING = 7,
   5921 	QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_OCE_WAN = 8,
   5922 
   5923 	/* keep last */
   5924 	QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_AFTER_LAST,
   5925 	QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_MAX =
   5926 	QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_AFTER_LAST - 1,
   5927 };
   5928 
   5929 /**
   5930  * enum qca_vendor_attr_roam_control - Attributes to carry roam configuration
   5931  *	The following attributes are used to set/get/clear the respective
   5932  *	configurations to/from the driver.
   5933  *	For the get, the attribute for the configuration to be queried shall
   5934  *	carry any of its acceptable values to the driver. In return, the driver
   5935  *	shall send the configured values within the same attribute to the user
   5936  *	space.
   5937  *
   5938  * @QCA_ATTR_ROAM_CONTROL_ENABLE: Unsigned 8-bit value.
   5939  *	Signifies to enable/disable roam control in driver.
   5940  *	1-enable, 0-disable
   5941  *	Enable: Mandates the driver to do the further roams using the
   5942  *	configuration parameters set through
   5943  *	QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET.
   5944  *	Disable: Disables the driver/firmware roaming triggered through
   5945  *	QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET. Further roaming is
   5946  *	expected to continue with the default configurations.
   5947  *
   5948  * @QCA_ATTR_ROAM_CONTROL_STATUS: Unsigned 8-bit value.
   5949  *	This is used along with QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET.
   5950  *	Roam control status is obtained through this attribute.
   5951  *
   5952  * @QCA_ATTR_ROAM_CONTROL_CLEAR_ALL: Flag attribute to indicate the
   5953  *	complete config set through QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET
   5954  *	is to be cleared in the driver.
   5955  *	This is used along with QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR
   5956  *	and shall be ignored if used with other sub commands.
   5957  *	If this attribute is specified along with subcmd
   5958  *	QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR, the driver shall ignore
   5959  *	all other attributes, if there are any.
   5960  *	If this attribute is not specified when the subcmd
   5961  *	QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR is sent, the driver shall
   5962  *	clear the data corresponding to the attributes specified.
   5963  *
   5964  * @QCA_ATTR_ROAM_CONTROL_FREQ_LIST_SCHEME: Nested attribute to carry the
   5965  *	list of frequencies and its type, represented by
   5966  *	enum qca_vendor_attr_scan_freq_list_scheme.
   5967  *	Frequency list and its type are mandatory for this attribute to set
   5968  *	the frequencies.
   5969  *	Frequency type is mandatory for this attribute to get the frequencies
   5970  *	and the frequency list is obtained through
   5971  *	QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST.
   5972  *	Frequency list type is mandatory for this attribute to clear the
   5973  *	frequencies.
   5974  *
   5975  * @QCA_ATTR_ROAM_CONTROL_SCAN_PERIOD: Unsigned 32-bit value.
   5976  *	Carries the value of scan period in seconds to set.
   5977  *	The value of scan period is obtained with the same attribute for get.
   5978  *	Clears the scan period in the driver when specified with clear command.
   5979  *	Scan period is the idle time in seconds between each subsequent
   5980  *	channel scans.
   5981  *
   5982  * @QCA_ATTR_ROAM_CONTROL_FULL_SCAN_PERIOD: Unsigned 32-bit value.
   5983  *	Carries the value of full scan period in seconds to set.
   5984  *	The value of full scan period is obtained with the same attribute for
   5985  *	get.
   5986  *	Clears the full scan period in the driver when specified with clear
   5987  *	command. Full scan period is the idle period in seconds between two
   5988  *	successive full channel roam scans.
   5989  *
   5990  * @QCA_ATTR_ROAM_CONTROL_TRIGGERS: Unsigned 32-bit value.
   5991  *	Carries a bitmap of the roam triggers specified in
   5992  *	enum qca_vendor_roam_triggers.
   5993  *	The driver shall enable roaming by enabling corresponding roam triggers
   5994  *	based on the trigger bits sent with this attribute.
   5995  *	If this attribute is not configured, the driver shall proceed with
   5996  *	default behavior.
   5997  *	The bitmap configured is obtained with the same attribute for get.
   5998  *	Clears the bitmap configured in driver when specified with clear
   5999  *	command.
   6000  *
   6001  * @QCA_ATTR_ROAM_CONTROL_SELECTION_CRITERIA: Nested attribute signifying the
   6002  *	weightage in percentage (%) to be given for each selection criteria.
   6003  *	Different roam candidate selection criteria are represented by
   6004  *	enum qca_vendor_attr_roam_candidate_selection_criteria.
   6005  *	The driver shall select the roam candidate based on corresponding
   6006  *	candidate selection scores sent.
   6007  *
   6008  *	An empty nested attribute is used to indicate that no specific
   6009  *	preference score/criteria is configured (i.e., to disable this mechanism
   6010  *	in the set case and to show that the mechanism is disabled in the get
   6011  *	case).
   6012  *
   6013  *	Userspace can send multiple attributes out of this enum to the driver.
   6014  *	Since this attribute represents the weight/percentage of preference for
   6015  *	the respective selection criteria, it is preferred to configure 100%
   6016  *	total weightage. The value in each attribute or cumulative weight of the
   6017  *	values in all the nested attributes should not exceed 100%. The driver
   6018  *	shall reject such configuration.
   6019  *
   6020  *	If the weights configured through this attribute are less than 100%,
   6021  *	the driver shall honor the weights (x%) passed for the corresponding
   6022  *	selection criteria and choose/distribute rest of the weight (100-x)%
   6023  *	for the other selection criteria, based on its internal logic.
   6024  *
   6025  *	The selection criteria configured is obtained with the same
   6026  *	attribute for get.
   6027  *
   6028  *	Clears the selection criteria configured in the driver when specified
   6029  *	with clear command.
   6030  *
   6031  * @QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME: Unsigned 32-bit value.
   6032  *	Represents value of the scan frequency scheme from enum
   6033  *	qca_roam_scan_scheme.
   6034  *	It's an optional attribute. If this attribute is not configured, the
   6035  *	driver shall proceed with default behavior.
   6036  *
   6037  * @QCA_ATTR_ROAM_CONTROL_CONNECTED_RSSI_THRESHOLD: Signed 32-bit value in dBm,
   6038  *	signifying the RSSI threshold of the current connected AP, indicating
   6039  *	the driver to trigger roam only when the current connected AP's RSSI
   6040  *	is less than this threshold. The RSSI threshold through this attribute
   6041  *	is only used by the STA when the connected AP asks it to roam through
   6042  *	a BTM request. Based on this threshold, the STA can either honor or
   6043  *	reject the AP's request to roam, and notify the status to the AP in a
   6044  *	BTM response.
   6045  *
   6046  * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD: Signed 32-bit value in dBm,
   6047  *	signifying the RSSI threshold of the candidate AP, indicating
   6048  *	the driver to trigger roam only to the candidate AP with RSSI
   6049  *	better than this threshold. If RSSI thresholds for candidate APs found
   6050  *	in the 2.4 GHz, 5 GHz, and 6 GHz bands are configured separately using
   6051  *	QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_2P4GHZ,
   6052  *	QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_5GHZ, and/or
   6053  *	QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_6GHZ, those values will
   6054  *	take precedence over the value configured using the
   6055  *	QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute.
   6056  *
   6057  * @QCA_ATTR_ROAM_CONTROL_USER_REASON: Unsigned 32-bit value. Represents the
   6058  *	user defined reason code to be sent to the AP in response to AP's
   6059  *	request to trigger the roam if the roaming cannot be triggered.
   6060  *	Applies to all the scenarios of AP assisted roaming (e.g., BTM).
   6061  *
   6062  * @QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME_TRIGGERS: Unsigned 32-bit value.
   6063  *	Carries a bitmap of the roam triggers specified in
   6064  *	enum qca_vendor_roam_triggers.
   6065  *	Represents the roam triggers for which the specific scan scheme from
   6066  *	enum qca_roam_scan_scheme has to be applied.
   6067  *	It's an optional attribute. If this attribute is not configured, but
   6068  *	QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME is specified, the scan scheme
   6069  *	specified through QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME is applicable for
   6070  *	all the roams.
   6071  *	If both QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME and
   6072  *	QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME_TRIGGERS are not specified, the
   6073  *	driver shall proceed with the default behavior.
   6074  *
   6075  * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_2P4GHZ: Signed 32-bit value
   6076  *	in dBm, signifying the RSSI threshold of the candidate AP found in the
   6077  *	2.4 GHz band. The driver/firmware shall trigger roaming to the candidate
   6078  *	AP found in the 2.4 GHz band only if its RSSI value is better than this
   6079  *	threshold. Optional attribute. If this attribute is not included, the
   6080  *	threshold value specified by the
   6081  *	QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute shall be used.
   6082  *
   6083  * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_5GHZ: Signed 32-bit value in
   6084  *	dBm, signifying the RSSI threshold of the candidate AP found in the 5
   6085  *	GHz band. The driver/firmware shall trigger roaming to the candidate AP
   6086  *	found in the 5 GHz band only if its RSSI value is better than this
   6087  *	threshold. Optional attribute. If this attribute is not included, the
   6088  *	threshold value specified by tge
   6089  *	QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute shall be used.
   6090  *
   6091  * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_6GHZ: Signed 32-bit value in
   6092  *	dBm, signifying the RSSI threshold of the candidate AP found in the 6
   6093  *	GHz band. The driver/firmware shall trigger roaming to the candidate AP
   6094  *	found in the 6 GHz band only if its RSSI value is better than this
   6095  *	threshold. Optional attribute. If this attribute is not included, the
   6096  *	threshold value specified by the
   6097  *	QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute shall be used.
   6098  *
   6099  * @QCA_ATTR_ROAM_CONTROL_BAND_MASK: Unsigned 32-bit value.
   6100  *	Carries bitmask value of bits from &enum qca_set_band and represents
   6101  *	all the bands in which roaming is allowed. The configuration is valid
   6102  *	until next disconnection. If this attribute is not present, the
   6103  *	existing configuration shall be used. By default, roaming is allowed on
   6104  *	all bands supported by the local device. When the value is set to
   6105  *	%QCA_SETBAND_AUTO, all supported bands shall be enabled.
   6106  *
   6107  * @QCA_ATTR_ROAM_CONTROL_ACTIVE_CH_DWELL_TIME: u16 value in milliseconds.
   6108  *	Optional parameter. Scan dwell time for active channels in the 2.4/5 GHz
   6109  *	bands. If this attribute is not configured, the driver shall proceed
   6110  *	with default behavior.
   6111  *
   6112  * @QCA_ATTR_ROAM_CONTROL_PASSIVE_CH_DWELL_TIME: u16 value in milliseconds.
   6113  *	Optional parameter. Scan dwell time for passive channels in the 5 GHz
   6114  *	band. If this attribute is not configured, the driver shall proceed with
   6115  *	default behavior.
   6116  *
   6117  * @QCA_ATTR_ROAM_CONTROL_HOME_CHANNEL_TIME: u16 value in milliseconds.
   6118  *	Optional parameter. The minimum duration to stay on the connected AP
   6119  *	channel during the channel scanning. If this attribute is not
   6120  *	configured, the driver shall proceed with default behavior.
   6121  *
   6122  * @QCA_ATTR_ROAM_CONTROL_MAXIMUM_AWAY_TIME: u16 value in milliseconds.
   6123  *	Optional parameter. The maximum duration for which the radio can scan
   6124  *	foreign channels consecutively without coming back to home channel. If
   6125  *	this attribute is not configured, the driver shall proceed with default
   6126  *	behavior.
   6127  *
   6128  * @QCA_ATTR_ROAM_CONTROL_SCAN_6G_PSC_DWELL_TIME: u16 value in milliseconds.
   6129  *	Optional parameter. Scan dwell time for 6G Preferred Scanning Channels.
   6130  *	If this attribute is not configured, the driver shall proceed with
   6131  *	default behavior.
   6132  *
   6133  * @QCA_ATTR_ROAM_CONTROL_SCAN_6G_NON_PSC_DWELL_TIME: u16 value in milliseconds.
   6134  *	Optional parameter. Scan dwell time for 6G Non Preferred Scanning
   6135  *	Channels. If this attribute is not configured, the driver shall proceed
   6136  *	with default behavior.
   6137  *
   6138  * @QCA_ATTR_ROAM_CONTROL_RX_LINKSPEED_THRESHOLD: u16 value in Mbps.
   6139  *	Optional parameter. RX link speed threshold to disable roaming.
   6140  *	If the current RX link speed is above the threshold, roaming is not
   6141  *	needed. If this attribute is not configured, or if it is set to 0, the
   6142  *	driver will not consider the RX link speed in the roaming decision.
   6143  *
   6144  * @QCA_ATTR_ROAM_CONTROL_HO_DELAY_FOR_RX: u16 value in milliseconds.
   6145  *	Optional parameter. This configuration delays hand-off by the
   6146  *	specified duration to receive pending RX frames from the current BSS.
   6147  *
   6148  * @QCA_ATTR_ROAM_CONTROL_FULL_SCAN_NO_REUSE_PARTIAL_SCAN_FREQ: Unsigned 8-bit
   6149  *	value.
   6150  *	During the roam scan, if there are no desired APs found in the partial
   6151  *	frequency list, an immediate full scan on all the supported frequencies
   6152  *	is initiated as a fallback. This flag controls the frequency list
   6153  *	creation for the full scan on the following lines.
   6154  *	1 - Full scan to exclude the frequencies that were already scanned by
   6155  *	    the previous partial scan.
   6156  *	0 - Full scan to include all the supported frequencies irrespective of
   6157  *	    the ones part of the earlier partial scan.
   6158  *	If this flag is not specified, a full scan shall include all the
   6159  *	supported frequencies irrespective of the ones part of an earlier
   6160  *	partial scan.
   6161  *
   6162  * @QCA_ATTR_ROAM_CONTROL_FULL_SCAN_6GHZ_ONLY_ON_PRIOR_DISCOVERY: Unsigned 8-bit
   6163  *	value.
   6164  *	During the roam scan, if there are no desired APs found in the partial
   6165  *	frequency list, an immediate full scan on all the supported frequencies
   6166  *	is initiated as a fallback. This full scan would add the 2.4/5/6 GHz
   6167  *	frequencies, including all PSC frequencies by default. This attribute
   6168  *	controls the inclusion of the 6 GHz PSC frequencies for the full scan
   6169  *	as following.
   6170  *	1 - Full scan to include the supported 6 GHz PSC frequencies only on the
   6171  *	   prior discovery of any 6 GHz frequency support in the environment.
   6172  *	   This discovery can happen through a prior RNR, 11k neighbor
   6173  *	request, 11v BTM request, host scan, etc.
   6174  *	0 - Default behavior. Full scan to include all the supported 6 GHz
   6175  *	   PSC frequencies regardless of whether 6 GHz BSSs have been
   6176  *	   discovered.
   6177  *	The default behavior if this flag is not specified is to include all
   6178  *	the supported 6 GHz PSC frequencies in the roam full scan.
   6179  *
   6180  * @QCA_ATTR_ROAM_CONTROL_CONNECTED_LOW_RSSI_THRESHOLD: Signed 32-bit value
   6181  *	in dBm.
   6182  *	This attribute configures the low RSSI threshold of the connected AP,
   6183  *	based on which the STA can start looking for the neighbor APs and
   6184  *	trigger the roam eventually. STA keeps monitoring for the connected
   6185  *	AP's RSSI and will start scanning for neighboring APs once the RSSI
   6186  *	falls below this threshold. This attribute differs from
   6187  *	QCA_ATTR_ROAM_CONTROL_CONNECTED_RSSI_THRESHOLD where the configured
   6188  *	threshold is used only when the connected AP asks the STA to roam
   6189  *	through a BTM request.
   6190  *
   6191  * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_ROAM_RSSI_DIFF: Unsigned 8-bit value.
   6192  *	This attribute signifies the RSSI difference threshold between the
   6193  *	connected AP and the new candidate AP. This parameter influences the
   6194  *	STA to roam to the new candidate only when its RSSI is better than
   6195  *	the current connected one by this threshold.
   6196  *	This parameter configures the roam behavior among the 2.4/5/6 GHz bands.
   6197  *
   6198  * @QCA_ATTR_ROAM_CONTROL_6GHZ_CANDIDATE_ROAM_RSSI_DIFF: Unsigned 8-bit value.
   6199  *	This attribute signifies the RSSI difference threshold between the
   6200  *	connected AP in the 2.4/5 GHz bands and the new candidate AP in the
   6201  *	6 GHz band. This parameter influences the STA to roam to the new 6 GHz
   6202  *	candidate only when its RSSI is better than the current connected one
   6203  *	by this threshold. This threshold overrides
   6204  *	QCA_ATTR_ROAM_CONTROL_CANDIDATE_ROAM_RSSI_DIFF for the roam from 2.4/5
   6205  *	GHz to 6 GHz alone with the intention to have a different value to roam
   6206  *	to the preferred 6 GHz band.
   6207  *
   6208  * @QCA_ATTR_ROAM_CONTROL_CONNECTED_HIGH_RSSI_OFFSET: Unsigned 8-bit value.
   6209  *	This attribute signifies the RSSI offset that is added to low RSSI
   6210  *	threshold (QCA_ATTR_ROAM_CONTROL_CONNECTED_LOW_RSSI_THRESHOLD) to imply
   6211  *	high RSSI threshold. STA is expected to trigger roam if the current
   6212  *	connected AP's RSSI gets above this high RSSI threshold. STA's roam
   6213  *	attempt on high RSSI threshold aims to find candidates from other
   6214  *	better Wi-Fi bands. E.g., STA would initially connect to a 2.4 GHz BSSID
   6215  *	and would migrate to 5/6 GHz when it comes closer to the AP (high RSSI
   6216  *	for 2.4 GHz BSS).
   6217  */
   6218 enum qca_vendor_attr_roam_control {
   6219 	QCA_ATTR_ROAM_CONTROL_ENABLE = 1,
   6220 	QCA_ATTR_ROAM_CONTROL_STATUS = 2,
   6221 	QCA_ATTR_ROAM_CONTROL_CLEAR_ALL = 3,
   6222 	QCA_ATTR_ROAM_CONTROL_FREQ_LIST_SCHEME = 4,
   6223 	QCA_ATTR_ROAM_CONTROL_SCAN_PERIOD = 5,
   6224 	QCA_ATTR_ROAM_CONTROL_FULL_SCAN_PERIOD = 6,
   6225 	QCA_ATTR_ROAM_CONTROL_TRIGGERS = 7,
   6226 	QCA_ATTR_ROAM_CONTROL_SELECTION_CRITERIA = 8,
   6227 	QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME = 9,
   6228 	QCA_ATTR_ROAM_CONTROL_CONNECTED_RSSI_THRESHOLD = 10,
   6229 	QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD = 11,
   6230 	QCA_ATTR_ROAM_CONTROL_USER_REASON = 12,
   6231 	QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME_TRIGGERS = 13,
   6232 	QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_2P4GHZ = 14,
   6233 	QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_5GHZ = 15,
   6234 	QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_6GHZ = 16,
   6235 	QCA_ATTR_ROAM_CONTROL_BAND_MASK = 17,
   6236 	QCA_ATTR_ROAM_CONTROL_ACTIVE_CH_DWELL_TIME = 18,
   6237 	QCA_ATTR_ROAM_CONTROL_PASSIVE_CH_DWELL_TIME = 19,
   6238 	QCA_ATTR_ROAM_CONTROL_HOME_CHANNEL_TIME = 20,
   6239 	QCA_ATTR_ROAM_CONTROL_MAXIMUM_AWAY_TIME = 21,
   6240 	QCA_ATTR_ROAM_CONTROL_SCAN_6G_PSC_DWELL_TIME = 22,
   6241 	QCA_ATTR_ROAM_CONTROL_SCAN_6G_NON_PSC_DWELL_TIME = 23,
   6242 	QCA_ATTR_ROAM_CONTROL_LINKSPEED_THRESHOLD = 24,
   6243 	QCA_ATTR_ROAM_CONTROL_HO_DELAY_FOR_RX = 25,
   6244 	QCA_ATTR_ROAM_CONTROL_FULL_SCAN_NO_REUSE_PARTIAL_SCAN_FREQ = 26,
   6245 	QCA_ATTR_ROAM_CONTROL_FULL_SCAN_6GHZ_ONLY_ON_PRIOR_DISCOVERY = 27,
   6246 	QCA_ATTR_ROAM_CONTROL_CONNECTED_LOW_RSSI_THRESHOLD = 28,
   6247 	QCA_ATTR_ROAM_CONTROL_CANDIDATE_ROAM_RSSI_DIFF = 29,
   6248 	QCA_ATTR_ROAM_CONTROL_6GHZ_CANDIDATE_ROAM_RSSI_DIFF = 30,
   6249 	QCA_ATTR_ROAM_CONTROL_CONNECTED_HIGH_RSSI_OFFSET = 31,
   6250 
   6251 	/* keep last */
   6252 	QCA_ATTR_ROAM_CONTROL_AFTER_LAST,
   6253 	QCA_ATTR_ROAM_CONTROL_MAX =
   6254 	QCA_ATTR_ROAM_CONTROL_AFTER_LAST - 1,
   6255 };
   6256 
   6257 /*
   6258  * enum qca_wlan_vendor_attr_roaming_config_params: Attributes for data used by
   6259  * QCA_NL80211_VENDOR_SUBCMD_ROAM sub command.
   6260  *
   6261  * @QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD: Unsigned 32-bit value.
   6262  *	Represents the different roam sub commands referred by
   6263  *	enum qca_wlan_vendor_roaming_subcmd.
   6264  *
   6265  * @QCA_WLAN_VENDOR_ATTR_ROAMING_REQ_ID: Unsigned 32-bit value.
   6266  *	Represents the Request ID for the specific set of commands.
   6267  *	This also helps to map specific set of commands to the respective
   6268  *	ID / client. e.g., helps to identify the user entity configuring the
   6269  *	ignored BSSIDs and accordingly clear the respective ones with the
   6270  *	matching ID.
   6271  *
   6272  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID_NUM_NETWORKS: Unsigned
   6273  *	32-bit value. Represents the number of allowlist SSIDs configured.
   6274  *
   6275  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID_LIST: Nested attribute
   6276  *	to carry the list of allowlist SSIDs.
   6277  *
   6278  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID: SSID (binary attribute,
   6279  *	0..32 octets). Represents the allow list SSID. Allowlist SSIDs
   6280  *	represent the list of SSIDs to which the firmware/driver can consider
   6281  *	to roam to.
   6282  *
   6283  * The following PARAM_A_BAND_XX attributes are applied to 5GHz BSSIDs when
   6284  * comparing with a 2.4GHz BSSID. They are not applied when comparing two
   6285  * 5GHz BSSIDs.The following attributes are set through the Roaming SUBCMD -
   6286  * QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_GSCAN_ROAM_PARAMS.
   6287  *
   6288  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_THRESHOLD: Signed 32-bit
   6289  *	value, RSSI threshold above which 5GHz RSSI is favored.
   6290  *
   6291  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_THRESHOLD: Signed 32-bit
   6292  *	value, RSSI threshold below which 5GHz RSSI is penalized.
   6293  *
   6294  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_FACTOR: Unsigned 32-bit
   6295  *	value, factor by which 5GHz RSSI is boosted.
   6296  *	boost=(RSSI_measured-5GHz_boost_threshold)*5GHz_boost_factor
   6297  *
   6298  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_FACTOR: Unsigned 32-bit
   6299  *	value, factor by which 5GHz RSSI is penalized.
   6300  *	penalty=(5GHz_penalty_threshold-RSSI_measured)*5GHz_penalty_factor
   6301  *
   6302  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_MAX_BOOST: Unsigned 32-bit
   6303  *	value, maximum boost that can be applied to a 5GHz RSSI.
   6304  *
   6305  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_LAZY_ROAM_HISTERESYS: Unsigned 32-bit
   6306  *	value, boost applied to current BSSID to ensure the currently
   6307  *	associated BSSID is favored so as to prevent ping-pong situations.
   6308  *
   6309  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALERT_ROAM_RSSI_TRIGGER: Signed 32-bit
   6310  *	value, RSSI below which "Alert" roam is enabled.
   6311  *	"Alert" mode roaming - firmware is "urgently" hunting for another BSSID
   6312  *	because the RSSI is low, or because many successive beacons have been
   6313  *	lost or other bad link conditions.
   6314  *
   6315  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE: Unsigned 32-bit
   6316  *	value. 1-Enable, 0-Disable. Represents "Lazy" mode, where
   6317  *	firmware is hunting for a better BSSID or allow listed SSID even though
   6318  *	the RSSI of the link is good. The parameters enabling the roaming are
   6319  *	configured through the PARAM_A_BAND_XX attrbutes.
   6320  *
   6321  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS: Nested attribute,
   6322  *	represents the BSSIDs preferred over others while evaluating them
   6323  *	for the roaming.
   6324  *
   6325  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_NUM_BSSID: Unsigned
   6326  *	32-bit value. Represents the number of preferred BSSIDs set.
   6327  *
   6328  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_BSSID: 6-byte MAC
   6329  *	address representing the BSSID to be preferred.
   6330  *
   6331  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_RSSI_MODIFIER: Signed
   6332  *	32-bit value, representing the modifier to be applied to the RSSI of
   6333  *	the BSSID for the purpose of comparing it with other roam candidate.
   6334  *
   6335  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS: Nested attribute,
   6336  *	represents the BSSIDs to get ignored for roaming.
   6337  *
   6338  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_NUM_BSSID: Unsigned
   6339  *	32-bit value, represents the number of ignored BSSIDs.
   6340  *
   6341  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_BSSID: 6-byte MAC
   6342  *	address representing the ignored BSSID.
   6343  *
   6344  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_HINT: Flag attribute,
   6345  *	indicates this request to ignore the BSSID as a hint to the driver. The
   6346  *	driver can select this BSSID in the worst case (when no other BSSIDs are
   6347  *	better).
   6348  *
   6349  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL: Nested attribute to
   6350  *	set/get/clear the roam control config as
   6351  *	defined @enum qca_vendor_attr_roam_control.
   6352  */
   6353 enum qca_wlan_vendor_attr_roaming_config_params {
   6354 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_INVALID = 0,
   6355 
   6356 	QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD = 1,
   6357 	QCA_WLAN_VENDOR_ATTR_ROAMING_REQ_ID = 2,
   6358 
   6359 	/* Attributes for wifi_set_ssid_allow_list */
   6360 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID_NUM_NETWORKS = 3,
   6361 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID_LIST = 4,
   6362 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID = 5,
   6363 
   6364 	/* Attributes for set_roam_params */
   6365 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_THRESHOLD = 6,
   6366 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_THRESHOLD = 7,
   6367 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_FACTOR = 8,
   6368 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_FACTOR = 9,
   6369 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_MAX_BOOST = 10,
   6370 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_LAZY_ROAM_HISTERESYS = 11,
   6371 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALERT_ROAM_RSSI_TRIGGER = 12,
   6372 
   6373 	/* Attribute for set_lazy_roam */
   6374 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE = 13,
   6375 
   6376 	/* Attribute for set_lazy_roam with preferences */
   6377 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS = 14,
   6378 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_NUM_BSSID = 15,
   6379 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_BSSID = 16,
   6380 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_RSSI_MODIFIER = 17,
   6381 
   6382 	/* Attribute for setting ignored BSSID parameters */
   6383 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS = 18,
   6384 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_NUM_BSSID = 19,
   6385 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_BSSID = 20,
   6386 	/* Flag attribute indicates this entry as a hint */
   6387 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_HINT = 21,
   6388 
   6389 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL = 22,
   6390 
   6391 	/* keep last */
   6392 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST,
   6393 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_MAX =
   6394 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST - 1,
   6395 };
   6396 
   6397 /* old names for API compatibility */
   6398 #define QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_NUM_NETWORKS \
   6399 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID_NUM_NETWORKS
   6400 #define QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_LIST \
   6401 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID_LIST
   6402 #define QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID \
   6403 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID
   6404 
   6405 /*
   6406  * enum qca_wlan_vendor_roaming_subcmd: Referred by
   6407  * QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD.
   6408  *
   6409  * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SSID_ALLOW_LIST: Sub command to
   6410  *	configure the allow list SSIDs. These are configured through
   6411  *	the following attributes.
   6412  *	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID_NUM_NETWORKS,
   6413  *	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID_LIST,
   6414  *	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID
   6415  *
   6416  * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_GSCAN_ROAM_PARAMS: Sub command to
   6417  *	configure the Roam params. These parameters are evaluated on the GScan
   6418  *	results. Refers the attributes PARAM_A_BAND_XX above to configure the
   6419  *	params.
   6420  *
   6421  * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_LAZY_ROAM: Sets the Lazy roam. Uses
   6422  *	the attribute QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE
   6423  *	to enable/disable Lazy roam.
   6424  *
   6425  * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PREFS: Sets the BSSID
   6426  *	preference. Contains the attribute
   6427  *	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS to set the BSSID
   6428  *	preference.
   6429  *
   6430  * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_DENYLIST_BSSID: Sets the list of BSSIDs
   6431  *	to ignore in roaming decision. Uses
   6432  *	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS to set the list.
   6433  *
   6434  * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET: Command to set the
   6435  *	roam control config to the driver with the attribute
   6436  *	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL.
   6437  *
   6438  * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET: Command to obtain the
   6439  *	roam control config from driver with the attribute
   6440  *	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL.
   6441  *	For the get, the attribute for the configuration to be queried shall
   6442  *	carry any of its acceptable value to the driver. In return, the driver
   6443  *	shall send the configured values within the same attribute to the user
   6444  *	space.
   6445  *
   6446  * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR: Command to clear the
   6447  *	roam control config in the driver with the attribute
   6448  *	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL.
   6449  *	The driver shall continue with its default roaming behavior when data
   6450  *	corresponding to an attribute is cleared.
   6451  */
   6452 enum qca_wlan_vendor_roaming_subcmd {
   6453 	QCA_WLAN_VENDOR_ROAMING_SUBCMD_INVALID = 0,
   6454 	QCA_WLAN_VENDOR_ROAMING_SUBCMD_SSID_ALLOW_LIST = 1,
   6455 	QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_GSCAN_ROAM_PARAMS = 2,
   6456 	QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_LAZY_ROAM = 3,
   6457 	QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PREFS = 4,
   6458 	QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PARAMS = 5,
   6459 	QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_DENYLIST_BSSID = 6,
   6460 	QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET = 7,
   6461 	QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET = 8,
   6462 	QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR = 9,
   6463 };
   6464 
   6465 /* old names for API compatibility */
   6466 #define QCA_WLAN_VENDOR_ROAMING_SUBCMD_SSID_WHITE_LIST \
   6467 	QCA_WLAN_VENDOR_ROAMING_SUBCMD_SSID_ALLOW_LIST
   6468 #define QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BLACKLIST_BSSID \
   6469 	QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_DENYLIST_BSSID
   6470 
   6471 enum qca_wlan_vendor_attr_gscan_config_params {
   6472 	QCA_WLAN_VENDOR_ATTR_GSCAN_SUBCMD_CONFIG_PARAM_INVALID = 0,
   6473 
   6474 	/* Unsigned 32-bit value */
   6475 	QCA_WLAN_VENDOR_ATTR_GSCAN_SUBCMD_CONFIG_PARAM_REQUEST_ID = 1,
   6476 
   6477 	/* Attributes for data used by
   6478 	 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_VALID_CHANNELS sub command.
   6479 	 */
   6480 	/* Unsigned 32-bit value */
   6481 	QCA_WLAN_VENDOR_ATTR_GSCAN_GET_VALID_CHANNELS_CONFIG_PARAM_WIFI_BAND
   6482 	= 2,
   6483 	/* Unsigned 32-bit value */
   6484 	QCA_WLAN_VENDOR_ATTR_GSCAN_GET_VALID_CHANNELS_CONFIG_PARAM_MAX_CHANNELS
   6485 	= 3,
   6486 
   6487 	/* Attributes for input params used by
   6488 	 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_START sub command.
   6489 	 */
   6490 
   6491 	/* Unsigned 32-bit value; channel frequency */
   6492 	QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC_CHANNEL = 4,
   6493 	/* Unsigned 32-bit value; dwell time in ms. */
   6494 	QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC_DWELL_TIME = 5,
   6495 	/* Unsigned 8-bit value; 0: active; 1: passive; N/A for DFS */
   6496 	QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC_PASSIVE = 6,
   6497 	/* Unsigned 8-bit value; channel class */
   6498 	QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC_CLASS = 7,
   6499 
   6500 	/* Unsigned 8-bit value; bucket index, 0 based */
   6501 	QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_INDEX = 8,
   6502 	/* Unsigned 8-bit value; band. */
   6503 	QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_BAND = 9,
   6504 	/* Unsigned 32-bit value; desired period, in ms. */
   6505 	QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_PERIOD = 10,
   6506 	/* Unsigned 8-bit value; report events semantics. */
   6507 	QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_REPORT_EVENTS = 11,
   6508 	/* Unsigned 32-bit value. Followed by a nested array of
   6509 	 * GSCAN_CHANNEL_SPEC_* attributes.
   6510 	 */
   6511 	QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS = 12,
   6512 
   6513 	/* Array of QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC_* attributes.
   6514 	 * Array size: QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS
   6515 	 */
   6516 	QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC = 13,
   6517 
   6518 	/* Unsigned 32-bit value; base timer period in ms. */
   6519 	QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_BASE_PERIOD = 14,
   6520 	/* Unsigned 32-bit value; number of APs to store in each scan in the
   6521 	 * BSSID/RSSI history buffer (keep the highest RSSI APs).
   6522 	 */
   6523 	QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_MAX_AP_PER_SCAN = 15,
   6524 	/* Unsigned 8-bit value; in %, when scan buffer is this much full, wake
   6525 	 * up AP.
   6526 	 */
   6527 	QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_REPORT_THRESHOLD_PERCENT
   6528 	= 16,
   6529 
   6530 	/* Unsigned 8-bit value; number of scan bucket specs; followed by a
   6531 	 * nested array of_GSCAN_BUCKET_SPEC_* attributes and values. The size
   6532 	 * of the array is determined by NUM_BUCKETS.
   6533 	 */
   6534 	QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_NUM_BUCKETS = 17,
   6535 
   6536 	/* Array of QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_* attributes.
   6537 	 * Array size: QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_NUM_BUCKETS
   6538 	 */
   6539 	QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC = 18,
   6540 
   6541 	/* Unsigned 8-bit value */
   6542 	QCA_WLAN_VENDOR_ATTR_GSCAN_GET_CACHED_SCAN_RESULTS_CONFIG_PARAM_FLUSH
   6543 	= 19,
   6544 	/* Unsigned 32-bit value; maximum number of results to be returned. */
   6545 	QCA_WLAN_VENDOR_ATTR_GSCAN_GET_CACHED_SCAN_RESULTS_CONFIG_PARAM_MAX
   6546 	= 20,
   6547 
   6548 	/* An array of 6 x unsigned 8-bit value */
   6549 	QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM_BSSID = 21,
   6550 	/* Signed 32-bit value */
   6551 	QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM_RSSI_LOW = 22,
   6552 	/* Signed 32-bit value */
   6553 	QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM_RSSI_HIGH = 23,
   6554 	/* Unsigned 32-bit value */
   6555 	QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM_CHANNEL = 24,
   6556 
   6557 	/* Number of hotlist APs as unsigned 32-bit value, followed by a nested
   6558 	 * array of AP_THRESHOLD_PARAM attributes and values. The size of the
   6559 	 * array is determined by NUM_AP.
   6560 	 */
   6561 	QCA_WLAN_VENDOR_ATTR_GSCAN_BSSID_HOTLIST_PARAMS_NUM_AP = 25,
   6562 
   6563 	/* Array of QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM_* attributes.
   6564 	 * Array size: QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS
   6565 	 */
   6566 	QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM = 26,
   6567 
   6568 	/* Unsigned 32-bit value; number of samples for averaging RSSI. */
   6569 	QCA_WLAN_VENDOR_ATTR_GSCAN_SIGNIFICANT_CHANGE_PARAMS_RSSI_SAMPLE_SIZE
   6570 	= 27,
   6571 	/* Unsigned 32-bit value; number of samples to confirm AP loss. */
   6572 	QCA_WLAN_VENDOR_ATTR_GSCAN_SIGNIFICANT_CHANGE_PARAMS_LOST_AP_SAMPLE_SIZE
   6573 	= 28,
   6574 	/* Unsigned 32-bit value; number of APs breaching threshold. */
   6575 	QCA_WLAN_VENDOR_ATTR_GSCAN_SIGNIFICANT_CHANGE_PARAMS_MIN_BREACHING = 29,
   6576 	/* Unsigned 32-bit value; number of APs. Followed by an array of
   6577 	 * AP_THRESHOLD_PARAM attributes. Size of the array is NUM_AP.
   6578 	 */
   6579 	QCA_WLAN_VENDOR_ATTR_GSCAN_SIGNIFICANT_CHANGE_PARAMS_NUM_AP = 30,
   6580 	/* Unsigned 32-bit value; number of samples to confirm AP loss. */
   6581 	QCA_WLAN_VENDOR_ATTR_GSCAN_BSSID_HOTLIST_PARAMS_LOST_AP_SAMPLE_SIZE
   6582 	= 31,
   6583 	/* Unsigned 32-bit value. If max_period is non zero or different than
   6584 	 * period, then this bucket is an exponential backoff bucket.
   6585 	 */
   6586 	QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_MAX_PERIOD = 32,
   6587 	/* Unsigned 32-bit value. */
   6588 	QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_BASE = 33,
   6589 	/* Unsigned 32-bit value. For exponential back off bucket, number of
   6590 	 * scans to perform for a given period.
   6591 	 */
   6592 	QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_STEP_COUNT = 34,
   6593 	/* Unsigned 8-bit value; in number of scans, wake up AP after these
   6594 	 * many scans.
   6595 	 */
   6596 	QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_REPORT_THRESHOLD_NUM_SCANS
   6597 	= 35,
   6598 
   6599 	/* Attributes for data used by
   6600 	 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_SET_SSID_HOTLIST sub command.
   6601 	 */
   6602 	/* Unsigned 3-2bit value; number of samples to confirm SSID loss. */
   6603 	QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_HOTLIST_PARAMS_LOST_SSID_SAMPLE_SIZE
   6604 	= 36,
   6605 	/* Number of hotlist SSIDs as unsigned 32-bit value, followed by a
   6606 	 * nested array of SSID_THRESHOLD_PARAM_* attributes and values. The
   6607 	 * size of the array is determined by NUM_SSID.
   6608 	 */
   6609 	QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_HOTLIST_PARAMS_NUM_SSID = 37,
   6610 	/* Array of QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM_*
   6611 	 * attributes.
   6612 	 * Array size: QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_HOTLIST_PARAMS_NUM_SSID
   6613 	 */
   6614 	QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM = 38,
   6615 
   6616 	/* An array of 33 x unsigned 8-bit value; NULL terminated SSID */
   6617 	QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM_SSID = 39,
   6618 	/* Unsigned 8-bit value */
   6619 	QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM_BAND = 40,
   6620 	/* Signed 32-bit value */
   6621 	QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM_RSSI_LOW = 41,
   6622 	/* Signed 32-bit value */
   6623 	QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM_RSSI_HIGH = 42,
   6624 	/* Unsigned 32-bit value; a bitmask with additional gscan config flag.
   6625 	 */
   6626 	QCA_WLAN_VENDOR_ATTR_GSCAN_CONFIGURATION_FLAGS = 43,
   6627 
   6628 	/* keep last */
   6629 	QCA_WLAN_VENDOR_ATTR_GSCAN_SUBCMD_CONFIG_PARAM_AFTER_LAST,
   6630 	QCA_WLAN_VENDOR_ATTR_GSCAN_SUBCMD_CONFIG_PARAM_MAX =
   6631 	QCA_WLAN_VENDOR_ATTR_GSCAN_SUBCMD_CONFIG_PARAM_AFTER_LAST - 1,
   6632 };
   6633 
   6634 enum qca_wlan_vendor_attr_gscan_results {
   6635 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_INVALID = 0,
   6636 
   6637 	/* Unsigned 32-bit value; must match the request Id supplied by
   6638 	 * Wi-Fi HAL in the corresponding subcmd NL msg.
   6639 	 */
   6640 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_REQUEST_ID = 1,
   6641 
   6642 	/* Unsigned 32-bit value; used to indicate the status response from
   6643 	 * firmware/driver for the vendor sub-command.
   6644 	 */
   6645 	QCA_WLAN_VENDOR_ATTR_GSCAN_STATUS = 2,
   6646 
   6647 	/* GSCAN Valid Channels attributes */
   6648 	/* Unsigned 32bit value; followed by a nested array of CHANNELS. */
   6649 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_CHANNELS = 3,
   6650 	/* An array of NUM_CHANNELS x unsigned 32-bit value integers
   6651 	 * representing channel numbers.
   6652 	 */
   6653 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CHANNELS = 4,
   6654 
   6655 	/* GSCAN Capabilities attributes */
   6656 	/* Unsigned 32-bit value */
   6657 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_SCAN_CACHE_SIZE = 5,
   6658 	/* Unsigned 32-bit value */
   6659 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_SCAN_BUCKETS = 6,
   6660 	/* Unsigned 32-bit value */
   6661 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_AP_CACHE_PER_SCAN
   6662 	= 7,
   6663 	/* Unsigned 32-bit value */
   6664 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_RSSI_SAMPLE_SIZE
   6665 	= 8,
   6666 	/* Signed 32-bit value */
   6667 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_SCAN_REPORTING_THRESHOLD
   6668 	= 9,
   6669 	/* Unsigned 32-bit value */
   6670 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_HOTLIST_BSSIDS = 10,
   6671 	/* Unsigned 32-bit value */
   6672 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_SIGNIFICANT_WIFI_CHANGE_APS
   6673 	= 11,
   6674 	/* Unsigned 32-bit value */
   6675 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_BSSID_HISTORY_ENTRIES
   6676 	= 12,
   6677 
   6678 	/* GSCAN Attributes used with
   6679 	 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_SCAN_RESULTS_AVAILABLE sub-command.
   6680 	 */
   6681 
   6682 	/* Unsigned 32-bit value */
   6683 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE = 13,
   6684 
   6685 	/* GSCAN attributes used with
   6686 	 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_FULL_SCAN_RESULT sub-command.
   6687 	 */
   6688 
   6689 	/* An array of NUM_RESULTS_AVAILABLE x
   6690 	 * QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_*
   6691 	 */
   6692 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_LIST = 14,
   6693 
   6694 	/* Unsigned 64-bit value; age of sample at the time of retrieval */
   6695 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_TIME_STAMP = 15,
   6696 	/* 33 x unsigned 8-bit value; NULL terminated SSID */
   6697 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_SSID = 16,
   6698 	/* An array of 6 x unsigned 8-bit value */
   6699 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_BSSID = 17,
   6700 	/* Unsigned 32-bit value; channel frequency in MHz */
   6701 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_CHANNEL = 18,
   6702 	/* Signed 32-bit value */
   6703 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_RSSI = 19,
   6704 	/* Unsigned 32-bit value */
   6705 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_RTT = 20,
   6706 	/* Unsigned 32-bit value */
   6707 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_RTT_SD = 21,
   6708 	/* Unsigned 16-bit value */
   6709 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_BEACON_PERIOD = 22,
   6710 	/* Unsigned 16-bit value */
   6711 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_CAPABILITY = 23,
   6712 	/* Unsigned 32-bit value; size of the IE DATA blob */
   6713 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_IE_LENGTH = 24,
   6714 	/* An array of IE_LENGTH x unsigned 8-bit value; blob of all the
   6715 	 * information elements found in the beacon; this data should be a
   6716 	 * packed list of wifi_information_element objects, one after the
   6717 	 * other.
   6718 	 */
   6719 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_IE_DATA = 25,
   6720 
   6721 	/* Unsigned 8-bit value; set by driver to indicate more scan results are
   6722 	 * available.
   6723 	 */
   6724 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_MORE_DATA = 26,
   6725 
   6726 	/* GSCAN attributes for
   6727 	 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_SCAN_EVENT sub-command.
   6728 	 */
   6729 	/* Unsigned 8-bit value */
   6730 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_EVENT_TYPE = 27,
   6731 	/* Unsigned 32-bit value */
   6732 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_EVENT_STATUS = 28,
   6733 
   6734 	/* GSCAN attributes for
   6735 	 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_AP_FOUND sub-command.
   6736 	 */
   6737 	/* Use attr QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE
   6738 	 * to indicate number of results.
   6739 	 * Also, use QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_LIST to indicate the
   6740 	 * list of results.
   6741 	 */
   6742 
   6743 	/* GSCAN attributes for
   6744 	 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_SIGNIFICANT_CHANGE sub-command.
   6745 	 */
   6746 	/* An array of 6 x unsigned 8-bit value */
   6747 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_BSSID = 29,
   6748 	/* Unsigned 32-bit value */
   6749 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_CHANNEL
   6750 	= 30,
   6751 	/* Unsigned 32-bit value. */
   6752 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_NUM_RSSI
   6753 	= 31,
   6754 	/* A nested array of signed 32-bit RSSI values. Size of the array is
   6755 	 * determined by (NUM_RSSI of SIGNIFICANT_CHANGE_RESULT_NUM_RSSI.
   6756 	 */
   6757 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_RSSI_LIST
   6758 	= 32,
   6759 
   6760 	/* GSCAN attributes used with
   6761 	 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_CACHED_RESULTS sub-command.
   6762 	 */
   6763 	/* Use attr QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE
   6764 	 * to indicate number of gscan cached results returned.
   6765 	 * Also, use QCA_WLAN_VENDOR_ATTR_GSCAN_CACHED_RESULTS_LIST to indicate
   6766 	 *  the list of gscan cached results.
   6767 	 */
   6768 
   6769 	/* An array of NUM_RESULTS_AVAILABLE x
   6770 	 * QCA_NL80211_VENDOR_ATTR_GSCAN_CACHED_RESULTS_*
   6771 	 */
   6772 	QCA_WLAN_VENDOR_ATTR_GSCAN_CACHED_RESULTS_LIST = 33,
   6773 	/* Unsigned 32-bit value; a unique identifier for the scan unit. */
   6774 	QCA_WLAN_VENDOR_ATTR_GSCAN_CACHED_RESULTS_SCAN_ID = 34,
   6775 	/* Unsigned 32-bit value; a bitmask w/additional information about scan.
   6776 	 */
   6777 	QCA_WLAN_VENDOR_ATTR_GSCAN_CACHED_RESULTS_FLAGS = 35,
   6778 	/* Use attr QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE
   6779 	 * to indicate number of wifi scan results/bssids retrieved by the scan.
   6780 	 * Also, use QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_LIST to indicate the
   6781 	 * list of wifi scan results returned for each cached result block.
   6782 	 */
   6783 
   6784 	/* GSCAN attributes for
   6785 	 * QCA_NL80211_VENDOR_SUBCMD_PNO_NETWORK_FOUND sub-command.
   6786 	 */
   6787 	/* Use QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE for
   6788 	 * number of results.
   6789 	 * Use QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_LIST to indicate the nested
   6790 	 * list of wifi scan results returned for each
   6791 	 * wifi_passpoint_match_result block.
   6792 	 * Array size: QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE.
   6793 	 */
   6794 
   6795 	/* GSCAN attributes for
   6796 	 * QCA_NL80211_VENDOR_SUBCMD_PNO_PASSPOINT_NETWORK_FOUND sub-command.
   6797 	 */
   6798 	/* Unsigned 32-bit value */
   6799 	QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_NETWORK_FOUND_NUM_MATCHES
   6800 	= 36,
   6801 	/* A nested array of
   6802 	 * QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_MATCH_*
   6803 	 * attributes. Array size =
   6804 	 * *_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_NETWORK_FOUND_NUM_MATCHES.
   6805 	 */
   6806 	QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_MATCH_RESULT_LIST = 37,
   6807 
   6808 	/* Unsigned 32-bit value; network block id for the matched network */
   6809 	QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_MATCH_ID = 38,
   6810 	/* Use QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_LIST to indicate the nested
   6811 	 * list of wifi scan results returned for each
   6812 	 * wifi_passpoint_match_result block.
   6813 	 */
   6814 	/* Unsigned 32-bit value */
   6815 	QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_MATCH_ANQP_LEN = 39,
   6816 	/* An array size of PASSPOINT_MATCH_ANQP_LEN of unsigned 8-bit values;
   6817 	 * ANQP data in the information_element format.
   6818 	 */
   6819 	QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_MATCH_ANQP = 40,
   6820 
   6821 	/* Unsigned 32-bit value; a GSCAN Capabilities attribute. */
   6822 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_HOTLIST_SSIDS = 41,
   6823 	/* Unsigned 32-bit value; a GSCAN Capabilities attribute. */
   6824 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_NUM_EPNO_NETS = 42,
   6825 	/* Unsigned 32-bit value; a GSCAN Capabilities attribute. */
   6826 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_NUM_EPNO_NETS_BY_SSID
   6827 	= 43,
   6828 	/* Unsigned 32-bit value; a GSCAN Capabilities attribute. */
   6829 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_NUM_ALLOWLISTED_SSID
   6830 	= 44,
   6831 
   6832 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_BUCKETS_SCANNED = 45,
   6833 
   6834 	/* Unsigned 32-bit value; a GSCAN Capabilities attribute.
   6835 	 * This is used to limit the maximum number of BSSIDs while sending
   6836 	 * the vendor command QCA_NL80211_VENDOR_SUBCMD_ROAM with subcmd
   6837 	 * QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_DENYLIST_BSSID and attribute
   6838 	 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_NUM_BSSID.
   6839 	 */
   6840 	QCA_WLAN_VENDOR_ATTR_GSCAN_MAX_NUM_DENYLISTED_BSSID = 46,
   6841 
   6842 	/* Attribute used for padding for 64-bit alignment */
   6843 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_PAD = 47,
   6844 
   6845 	/* keep last */
   6846 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_AFTER_LAST,
   6847 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_MAX =
   6848 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_AFTER_LAST - 1,
   6849 };
   6850 
   6851 /* old names for API compatibility */
   6852 #define QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_NUM_WHITELISTED_SSID \
   6853 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_NUM_ALLOWLISTED_SSID
   6854 #define QCA_WLAN_VENDOR_ATTR_GSCAN_MAX_NUM_BLACKLISTED_BSSID \
   6855 	QCA_WLAN_VENDOR_ATTR_GSCAN_MAX_NUM_DENYLISTED_BSSID
   6856 
   6857 enum qca_wlan_vendor_attr_pno_config_params {
   6858 	QCA_WLAN_VENDOR_ATTR_PNO_INVALID = 0,
   6859 	/* Attributes for data used by
   6860 	 * QCA_NL80211_VENDOR_SUBCMD_PNO_SET_PASSPOINT_LIST sub command.
   6861 	 */
   6862 	/* Unsigned 32-bit value */
   6863 	QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM = 1,
   6864 	/* Array of nested QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_*
   6865 	 * attributes. Array size =
   6866 	 * QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM.
   6867 	 */
   6868 	QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NETWORK_ARRAY = 2,
   6869 
   6870 	/* Unsigned 32-bit value */
   6871 	QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ID = 3,
   6872 	/* An array of 256 x unsigned 8-bit value; NULL terminated UTF-8 encoded
   6873 	 * realm, 0 if unspecified.
   6874 	 */
   6875 	QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_REALM = 4,
   6876 	/* An array of 16 x unsigned 32-bit value; roaming consortium ids to
   6877 	 * match, 0 if unspecified.
   6878 	 */
   6879 	QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_CNSRTM_ID = 5,
   6880 	/* An array of 6 x unsigned 8-bit value; MCC/MNC combination, 0s if
   6881 	 * unspecified.
   6882 	 */
   6883 	QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_PLMN = 6,
   6884 
   6885 	/* Attributes for data used by
   6886 	 * QCA_NL80211_VENDOR_SUBCMD_PNO_SET_LIST sub command.
   6887 	 */
   6888 	/* Unsigned 32-bit value */
   6889 	QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS = 7,
   6890 	/* Array of nested
   6891 	 * QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_*
   6892 	 * attributes. Array size =
   6893 	 * QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS.
   6894 	 */
   6895 	QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORKS_LIST = 8,
   6896 	/* An array of 33 x unsigned 8-bit value; NULL terminated SSID */
   6897 	QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_SSID = 9,
   6898 	/* Signed 8-bit value; threshold for considering this SSID as found,
   6899 	 * required granularity for this threshold is 4 dBm to 8 dBm.
   6900 	 */
   6901 	QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_RSSI_THRESHOLD
   6902 	= 10,
   6903 	/* Unsigned 8-bit value; WIFI_PNO_FLAG_XXX */
   6904 	QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_FLAGS = 11,
   6905 	/* Unsigned 8-bit value; auth bit field for matching WPA IE */
   6906 	QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_AUTH_BIT = 12,
   6907 	/* Unsigned 8-bit to indicate ePNO type;
   6908 	 * It takes values from qca_wlan_epno_type
   6909 	 */
   6910 	QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_TYPE = 13,
   6911 
   6912 	/* Nested attribute to send the channel list */
   6913 	QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_CHANNEL_LIST = 14,
   6914 
   6915 	/* Unsigned 32-bit value; indicates the interval between PNO scan
   6916 	 * cycles in msec.
   6917 	 */
   6918 	QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_SCAN_INTERVAL = 15,
   6919 	QCA_WLAN_VENDOR_ATTR_EPNO_MIN5GHZ_RSSI = 16,
   6920 	QCA_WLAN_VENDOR_ATTR_EPNO_MIN24GHZ_RSSI = 17,
   6921 	QCA_WLAN_VENDOR_ATTR_EPNO_INITIAL_SCORE_MAX = 18,
   6922 	QCA_WLAN_VENDOR_ATTR_EPNO_CURRENT_CONNECTION_BONUS = 19,
   6923 	QCA_WLAN_VENDOR_ATTR_EPNO_SAME_NETWORK_BONUS = 20,
   6924 	QCA_WLAN_VENDOR_ATTR_EPNO_SECURE_BONUS = 21,
   6925 	QCA_WLAN_VENDOR_ATTR_EPNO_BAND5GHZ_BONUS = 22,
   6926 	/* Unsigned 32-bit value, representing the PNO Request ID */
   6927 	QCA_WLAN_VENDOR_ATTR_PNO_CONFIG_REQUEST_ID = 23,
   6928 
   6929 	/* keep last */
   6930 	QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST,
   6931 	QCA_WLAN_VENDOR_ATTR_PNO_MAX =
   6932 	QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST - 1,
   6933 };
   6934 
   6935 /**
   6936  * qca_wlan_vendor_acs_select_reason: This represents the different reasons why
   6937  * the ACS has to be triggered. These values are used by
   6938  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON and
   6939  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON
   6940  */
   6941 enum qca_wlan_vendor_acs_select_reason {
   6942 	/* Represents the reason that the ACS triggered during the AP start */
   6943 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_INIT,
   6944 	/* Represents the reason that DFS found with the current channel */
   6945 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_DFS,
   6946 	/* Represents the reason that LTE co-exist in the current band. */
   6947 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_LTE_COEX,
   6948 	/* Represents the reason that generic, uncategorized interference has
   6949 	 * been found in the current channel.
   6950 	 */
   6951 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_GENERIC_INTERFERENCE,
   6952 	/* Represents the reason that excessive 802.11 interference has been
   6953 	 * found in the current channel.
   6954 	 */
   6955 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_80211_INTERFERENCE,
   6956 	/* Represents the reason that generic Continuous Wave (CW) interference
   6957 	 * has been found in the current channel.
   6958 	 */
   6959 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_CW_INTERFERENCE,
   6960 	/* Represents the reason that Microwave Oven (MWO) interference has been
   6961 	 * found in the current channel.
   6962 	 */
   6963 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_MWO_INTERFERENCE,
   6964 	/* Represents the reason that generic Frequency-Hopping Spread Spectrum
   6965 	 * (FHSS) interference has been found in the current channel. This may
   6966 	 * include 802.11 waveforms.
   6967 	 */
   6968 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_FHSS_INTERFERENCE,
   6969 	/* Represents the reason that non-802.11 generic Frequency-Hopping
   6970 	 * Spread Spectrum (FHSS) interference has been found in the current
   6971 	 * channel.
   6972 	 */
   6973 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_NON_80211_FHSS_INTERFERENCE,
   6974 	/* Represents the reason that generic Wideband (WB) interference has
   6975 	 * been found in the current channel. This may include 802.11 waveforms.
   6976 	 */
   6977 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_WB_INTERFERENCE,
   6978 	/* Represents the reason that non-802.11 generic Wideband (WB)
   6979 	 * interference has been found in the current channel.
   6980 	 */
   6981 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_NON_80211_WB_INTERFERENCE,
   6982 	/* Represents the reason that Jammer interference has been found in the
   6983 	 * current channel.
   6984 	 */
   6985 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_JAMMER_INTERFERENCE,
   6986 	/* Represents the reason that ACS triggered by AFC */
   6987 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_AFC_TRIGGER,
   6988 };
   6989 
   6990 /**
   6991  * qca_wlan_vendor_attr_external_acs_policy: Attribute values for
   6992  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_POLICY to the vendor subcmd
   6993  * QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS. This represents the
   6994  * external ACS policies to select the channels w.r.t. the PCL weights.
   6995  * (QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL represents the channels and
   6996  * their PCL weights.)
   6997  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_MANDATORY: Mandatory to
   6998  * select a channel with non-zero PCL weight.
   6999  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_PREFERRED: Prefer a
   7000  * channel with non-zero PCL weight.
   7001  *
   7002  */
   7003 enum qca_wlan_vendor_attr_external_acs_policy {
   7004 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_PREFERRED,
   7005 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_MANDATORY,
   7006 };
   7007 
   7008 /**
   7009  * qca_wlan_vendor_channel_prop_flags: This represent the flags for a channel.
   7010  * This is used by QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS.
   7011  */
   7012 enum qca_wlan_vendor_channel_prop_flags {
   7013 	/* Bits 0, 1, 2, and 3 are reserved */
   7014 
   7015 	/* Turbo channel */
   7016 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_TURBO         = 1 << 4,
   7017 	/* CCK channel */
   7018 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_CCK           = 1 << 5,
   7019 	/* OFDM channel */
   7020 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_OFDM          = 1 << 6,
   7021 	/* 2.4 GHz spectrum channel. */
   7022 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_2GHZ          = 1 << 7,
   7023 	/* 5 GHz spectrum channel */
   7024 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_5GHZ          = 1 << 8,
   7025 	/* Only passive scan allowed */
   7026 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_PASSIVE       = 1 << 9,
   7027 	/* Dynamic CCK-OFDM channel */
   7028 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_DYN           = 1 << 10,
   7029 	/* GFSK channel (FHSS PHY) */
   7030 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_GFSK          = 1 << 11,
   7031 	/* Radar found on channel */
   7032 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_RADAR         = 1 << 12,
   7033 	/* 11a static turbo channel only */
   7034 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_STURBO        = 1 << 13,
   7035 	/* Half rate channel */
   7036 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HALF          = 1 << 14,
   7037 	/* Quarter rate channel */
   7038 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_QUARTER       = 1 << 15,
   7039 	/* HT 20 channel */
   7040 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT20          = 1 << 16,
   7041 	/* HT 40 with extension channel above */
   7042 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40PLUS      = 1 << 17,
   7043 	/* HT 40 with extension channel below */
   7044 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40MINUS     = 1 << 18,
   7045 	/* HT 40 intolerant */
   7046 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40INTOL     = 1 << 19,
   7047 	/* VHT 20 channel */
   7048 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT20         = 1 << 20,
   7049 	/* VHT 40 with extension channel above */
   7050 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT40PLUS     = 1 << 21,
   7051 	/* VHT 40 with extension channel below */
   7052 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT40MINUS    = 1 << 22,
   7053 	/* VHT 80 channel */
   7054 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT80         = 1 << 23,
   7055 	/* HT 40 intolerant mark bit for ACS use */
   7056 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40INTOLMARK = 1 << 24,
   7057 	/* Channel temporarily blocked due to noise */
   7058 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_BLOCKED       = 1 << 25,
   7059 	/* VHT 160 channel */
   7060 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT160        = 1 << 26,
   7061 	/* VHT 80+80 channel */
   7062 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT80_80      = 1 << 27,
   7063 	/* HE 20 channel */
   7064 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE20          = 1 << 28,
   7065 	/* HE 40 with extension channel above */
   7066 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40PLUS      = 1 << 29,
   7067 	/* HE 40 with extension channel below */
   7068 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40MINUS     = 1 << 30,
   7069 	/* HE 40 intolerant */
   7070 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40INTOL     = 1U << 31,
   7071 };
   7072 
   7073 /**
   7074  * qca_wlan_vendor_channel_prop_flags_2: This represents the flags for a
   7075  * channel, and is a continuation of qca_wlan_vendor_channel_prop_flags. This is
   7076  * used by QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS_2.
   7077  */
   7078 enum qca_wlan_vendor_channel_prop_flags_2 {
   7079 	/* HE 40 intolerant mark bit for ACS use */
   7080 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40INTOLMARK = 1 << 0,
   7081 	/* HE 80 channel */
   7082 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE80          = 1 << 1,
   7083 	/* HE 160 channel */
   7084 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE160         = 1 << 2,
   7085 	/* HE 80+80 channel */
   7086 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE80_80       = 1 << 3,
   7087 };
   7088 
   7089 /**
   7090  * qca_wlan_vendor_channel_prop_flags_ext: This represent the extended flags for
   7091  * each channel. This is used by
   7092  * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT.
   7093  */
   7094 enum qca_wlan_vendor_channel_prop_flags_ext {
   7095 	/* Radar found on channel */
   7096 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_RADAR_FOUND     = 1 << 0,
   7097 	/* DFS required on channel */
   7098 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS             = 1 << 1,
   7099 	/* DFS required on channel for 2nd band of 80+80 */
   7100 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS_CFREQ2      = 1 << 2,
   7101 	/* If channel has been checked for DFS */
   7102 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS_CLEAR       = 1 << 3,
   7103 	/* Excluded in 802.11d */
   7104 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_11D_EXCLUDED    = 1 << 4,
   7105 	/* Channel Switch Announcement received on this channel */
   7106 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_CSA_RECEIVED    = 1 << 5,
   7107 	/* Ad-hoc is not allowed */
   7108 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DISALLOW_ADHOC  = 1 << 6,
   7109 	/* Station only channel */
   7110 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DISALLOW_HOSTAP = 1 << 7,
   7111 	/* DFS radar history for client device (STA mode) */
   7112 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_HISTORY_RADAR   = 1 << 8,
   7113 	/* DFS CAC valid for client device (STA mode) */
   7114 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_CAC_VALID       = 1 << 9,
   7115 };
   7116 
   7117 /**
   7118  * qca_wlan_vendor_external_acs_event_chan_info_attr: Represents per channel
   7119  * information. These attributes are sent as part of
   7120  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO. Each set of the following
   7121  * attributes correspond to a single channel.
   7122  */
   7123 enum qca_wlan_vendor_external_acs_event_chan_info_attr {
   7124 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_INVALID = 0,
   7125 
   7126 	/* A bitmask (u32) with flags specified in
   7127 	 * enum qca_wlan_vendor_channel_prop_flags.
   7128 	 */
   7129 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS = 1,
   7130 	/* A bitmask (u32) with flags specified in
   7131 	 * enum qca_wlan_vendor_channel_prop_flags_ext.
   7132 	 */
   7133 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT = 2,
   7134 	/* frequency in MHz (u32) */
   7135 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ = 3,
   7136 	/* maximum regulatory transmission power (u32) */
   7137 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_REG_POWER = 4,
   7138 	/* maximum transmission power (u32) */
   7139 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_POWER = 5,
   7140 	/* minimum transmission power (u32) */
   7141 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MIN_POWER = 6,
   7142 	/* regulatory class id (u8) */
   7143 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_REG_CLASS_ID = 7,
   7144 	/* maximum antenna gain in (u8) */
   7145 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_ANTENNA_GAIN = 8,
   7146 	/* VHT segment 0 (u8) */
   7147 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0 = 9,
   7148 	/* VHT segment 1 (u8) */
   7149 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1 = 10,
   7150 	/* A bitmask (u32) with flags specified in
   7151 	 * enum qca_wlan_vendor_channel_prop_flags_2.
   7152 	 */
   7153 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS_2 = 11,
   7154 
   7155 	/*
   7156 	 * Segment 0 in MHz (u32).
   7157 	 *
   7158 	 * For 20/40/80 MHz bandwidth, this indicates the channel center
   7159 	 * frequency index for the 20/40/80 MHz operating channel.
   7160 	 * For 160 MHz bandwidth, this indicates the channel center
   7161 	 * frequency of the primary 80 MHz channel.
   7162 	 * For 320 MHz bandwidth, indicates the channel center frequency
   7163 	 * of the primary 160 MHz channel.
   7164 	 *
   7165 	 * To maintain backward compatibility,
   7166 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
   7167 	 * is also maintained.
   7168 	 */
   7169 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_0 = 12,
   7170 	/* Legacy alias for the Segment 0 attribute.
   7171 	 *
   7172 	 * VHT segment 0 in MHz (u32) and the attribute is mandatory.
   7173 	 * Note: Event QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS includes
   7174 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
   7175 	 * along with
   7176 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0.
   7177 	 *
   7178 	 * If both the driver and user-space application supports the 6 GHz
   7179 	 * band, QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0
   7180 	 * is deprecated and
   7181 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
   7182 	 * should be used.
   7183 	 *
   7184 	 * To maintain backward compatibility,
   7185 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
   7186 	 * is still used if either of the driver or user space application
   7187 	 * doesn't support the 6 GHz band.
   7188 	 */
   7189 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0 =
   7190 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_0,
   7191 
   7192 	/*
   7193 	 * Segment 1 in MHz (u32).
   7194 	 *
   7195 	 * For 20/40/80 MHz bandwidth, this is set to 0.
   7196 	 * For 160 MHz bandwidth, indicates the channel center frequency of the
   7197 	 * 160 MHz channel.
   7198 	 * For 320 MHz bandwidth, indicates the channel center frequency of the
   7199 	 * 320 MHz channel.
   7200 	 *
   7201 	 * To maintain backward compatibility,
   7202 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
   7203 	 * is also maintained.
   7204 	 */
   7205 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_1 = 13,
   7206 	/* Legacy alias for the Segment 1 attribute.
   7207 	 *
   7208 	 * VHT segment 1 in MHz (u32) and the attribute is mandatory.
   7209 	 * Note: Event QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS includes
   7210 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
   7211 	 * along with
   7212 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1.
   7213 	 *
   7214 	 * If both the driver and user-space application supports the 6 GHz
   7215 	 * band, QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1
   7216 	 * is deprecated and
   7217 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
   7218 	 * should be considered.
   7219 	 *
   7220 	 * To maintain backward compatibility,
   7221 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
   7222 	 * is still used if either of the driver or user space application
   7223 	 * doesn't support the 6 GHz band.
   7224 	 */
   7225 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1 =
   7226 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_1,
   7227 
   7228 	/*
   7229 	 * 16-bit attribute of bits indicating the AP power modes supported by
   7230 	 * the channel (u16).
   7231 	 * Note: Currently, only 3 bits are used in the attribute and each bit
   7232 	 * corresponds to the power mode mentioned in enum
   7233 	 * qca_wlan_vendor_external_acs_chan_power_mode and a given bit is
   7234 	 * set if the associated mode is supported.
   7235 	 */
   7236 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_SUPP_POWER_MODES
   7237 									= 14,
   7238 	/* Array of nested attributes for each power mode. It takes attr as
   7239 	 * defined in enum
   7240 	 * qca_wlan_vendor_external_acs_event_chan_power_info_attr.
   7241 	 */
   7242 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR	= 15,
   7243 	/*
   7244 	 * This indicates the overlapping 320 MHz center frequency in MHz
   7245 	 * (u32), if the given primary channel supports more than one
   7246 	 * 320 MHz channel bonding.
   7247 	 *
   7248 	 * Example:
   7249 	 * For 6 GHz, channel frequency 6115 MHz (channel number 33) segment 0
   7250 	 * center frequency (primary 160 MHz) is 6185 MHz and there can be two
   7251 	 * possible segment 2 frequencies for this (320 MHz center
   7252 	 * frequencies):
   7253 	 *
   7254 	 * 1) Center frequency 6105 MHz (channel 31): 320 MHz channel bonding
   7255 	 *    from frequency 5945 MHz - 6265 MHz
   7256 	 * 2) Center frequency 6265 MHz (channel 63): 320 MHz channel bonding
   7257 	 *    from frequency 6105 MHz - 6425 MHz
   7258 	 *
   7259 	 * In this case,
   7260 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_0 will
   7261 	 * return 6185 MHz.
   7262 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_1 will
   7263 	 * return 6105 MHz.
   7264 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_OVERLAP_SEG_1
   7265 	 * will return 6265 MHz.
   7266 	 */
   7267 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_OVERLAP_SEG_1
   7268 									= 16,
   7269 
   7270 	/* keep last */
   7271 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_LAST,
   7272 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX =
   7273 		QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_LAST - 1,
   7274 };
   7275 
   7276 /**
   7277  * qca_wlan_vendor_external_acs_chan_power_mode - Specifies the valid
   7278  * values that the vendor external ACS channel power attribute
   7279  * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_MODE can
   7280  * take.
   7281  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_LOW_POWER: Low power/Indoor mode
   7282  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_STANDARD_POWER: Standard power mode
   7283  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_VERY_LOW_POWER: Very low power mode
   7284  */
   7285 enum qca_wlan_vendor_external_acs_chan_power_level {
   7286 	QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_LOW_POWER = 0,
   7287 	QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_STANDARD_POWER = 1,
   7288 	QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_VERY_LOW_POWER = 2,
   7289 };
   7290 
   7291 /**
   7292  * qca_wlan_vendor_external_acs_event_chan_power_info_attr: Represents nested
   7293  * attributes for power mode type and power values corresponding to that.
   7294  * These attributes are sent as part of
   7295  * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR.
   7296  */
   7297 enum qca_wlan_vendor_external_acs_event_chan_power_info_attr {
   7298 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_INVALID = 0,
   7299 	/*
   7300 	 * Power mode (u8) takes the values defined in enum
   7301 	 * qca_wlan_vendor_external_acs_chan_power_mode
   7302 	 */
   7303 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_MODE
   7304 									= 1,
   7305 	/*
   7306 	 * Indicates if power value is a PSD/EIRP value (flag). If flag is
   7307 	 * present, it indicates a PSD value.
   7308 	 */
   7309 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_PSD_FLAG = 2,
   7310 	/*
   7311 	 * Power value (u32) PSD/EIRP as indicated by
   7312 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_PSD_FLAG,
   7313 	 * for power mode corresponding to the
   7314 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_MODE.
   7315 	 * Units for PSD - dBm/MHz
   7316 	 * Units for EIRP - dBm
   7317 	 */
   7318 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_VALUE
   7319 									= 3,
   7320 	/* keep last */
   7321 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_LAST,
   7322 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_MAX =
   7323 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_LAST - 1,
   7324 };
   7325 
   7326 /**
   7327  * qca_wlan_vendor_attr_pcl: Represents attributes for
   7328  * preferred channel list (PCL). These attributes are sent as part of
   7329  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL and
   7330  * QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST.
   7331  */
   7332 enum qca_wlan_vendor_attr_pcl {
   7333 	QCA_WLAN_VENDOR_ATTR_PCL_INVALID = 0,
   7334 
   7335 	/* Channel number (u8) */
   7336 	QCA_WLAN_VENDOR_ATTR_PCL_CHANNEL = 1,
   7337 	/* Channel weightage (u8) */
   7338 	QCA_WLAN_VENDOR_ATTR_PCL_WEIGHT = 2,
   7339 	/* Channel frequency (u32) in MHz */
   7340 	QCA_WLAN_VENDOR_ATTR_PCL_FREQ = 3,
   7341 	/* Channel flags (u32)
   7342 	 * bit 0 set: channel to be used for GO role,
   7343 	 * bit 1 set: channel to be used on CLI role,
   7344 	 * bit 2 set: channel must be considered for operating channel
   7345 	 *                 selection & peer chosen operating channel should be
   7346 	 *                 one of the channels with this flag set,
   7347 	 * bit 3 set: channel should be excluded in GO negotiation
   7348 	 */
   7349 	QCA_WLAN_VENDOR_ATTR_PCL_FLAG = 4,
   7350 
   7351 	/* Keep last */
   7352 	QCA_WLAN_VENDOR_ATTR_PCL_LAST,
   7353 	QCA_WLAN_VENDOR_ATTR_PCL_MAX = QCA_WLAN_VENDOR_ATTR_PCL_LAST - 1
   7354 };
   7355 
   7356 /**
   7357  * qca_wlan_vendor_attr_external_acs_event: Attribute to vendor sub-command
   7358  * QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS. This attribute will be sent by
   7359  * host driver.
   7360  */
   7361 enum qca_wlan_vendor_attr_external_acs_event {
   7362 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_INVALID = 0,
   7363 
   7364 	/* This reason (u8) refers to enum qca_wlan_vendor_acs_select_reason.
   7365 	 * This helps ACS module to understand why ACS needs to be started.
   7366 	 */
   7367 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON = 1,
   7368 	/* Flag attribute to indicate if driver supports spectral scanning */
   7369 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_SPECTRAL_SUPPORTED = 2,
   7370 	/* Flag attribute to indicate if 11ac is offloaded to firmware */
   7371 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_OFFLOAD_ENABLED = 3,
   7372 	/* Flag attribute to indicate if driver provides additional channel
   7373 	 * capability as part of scan operation
   7374 	 */
   7375 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_ADD_CHAN_STATS_SUPPORT = 4,
   7376 	/* Flag attribute to indicate interface status is UP */
   7377 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AP_UP = 5,
   7378 	/* Operating mode (u8) of interface. Takes one of enum nl80211_iftype
   7379 	 * values.
   7380 	 */
   7381 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_SAP_MODE = 6,
   7382 	/* Channel width (u8). It takes one of enum nl80211_chan_width values.
   7383 	 * This is the upper bound of channel width. ACS logic should try to get
   7384 	 * a channel with the specified width and if not found, look for lower
   7385 	 * values.
   7386 	 */
   7387 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_WIDTH = 7,
   7388 	/* This (u8) will hold values of one of enum nl80211_bands */
   7389 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_BAND = 8,
   7390 	/* PHY/HW mode (u8). Takes one of enum qca_wlan_vendor_acs_hw_mode
   7391 	 * values
   7392 	 */
   7393 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PHY_MODE = 9,
   7394 	/* Array of (u32) supported frequency list among which ACS should choose
   7395 	 * best frequency.
   7396 	 */
   7397 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_FREQ_LIST = 10,
   7398 	/* Preferred channel list by the driver which will have array of nested
   7399 	 * values as per enum qca_wlan_vendor_attr_pcl attribute.
   7400 	 */
   7401 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL = 11,
   7402 	/* Array of nested attribute for each channel. It takes attr as defined
   7403 	 * in enum qca_wlan_vendor_external_acs_event_chan_info_attr.
   7404 	 */
   7405 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO = 12,
   7406 	/* External ACS policy such as PCL mandatory, PCL preferred, etc.
   7407 	 * It uses values defined in enum
   7408 	 * qca_wlan_vendor_attr_external_acs_policy.
   7409 	 */
   7410 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_POLICY = 13,
   7411 	/* Reference RF Operating Parameter (RROP) availability information
   7412 	 * (u16). It uses values defined in enum
   7413 	 * qca_wlan_vendor_attr_rropavail_info.
   7414 	 */
   7415 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_RROPAVAIL_INFO = 14,
   7416 	/* Flag attribute to indicate if driver supports 6 GHz AFC trigger
   7417 	 * for External ACS
   7418 	 */
   7419 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AFC_CAPABILITY = 15,
   7420 
   7421 	/* keep last */
   7422 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_LAST,
   7423 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_MAX =
   7424 		QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_LAST - 1,
   7425 };
   7426 
   7427 /**
   7428  * enum qca_wlan_vendor_attr_external_acs_channels: Attributes to vendor subcmd
   7429  * QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS. This carries a list of channels
   7430  * in priority order as decided after ACS operation in userspace.
   7431  *
   7432  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON: Required (u8).
   7433  * One of reason code from enum qca_wlan_vendor_acs_select_reason.
   7434  *
   7435  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST: Required
   7436  * Array of nested values for each channel with following attributes:
   7437  *     QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY,
   7438  *     QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY,
   7439  *     QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0,
   7440  *     QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1,
   7441  *     QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH
   7442  * Note: If both the driver and user-space application supports the 6 GHz band,
   7443  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST is deprecated and use
   7444  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST.
   7445  * To maintain backward compatibility,
   7446  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST
   7447  * is still used if either of the driver or user space application doesn't
   7448  * support the 6 GHz band.
   7449  *
   7450  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY: Required (u8).
   7451  * Primary channel number
   7452  * Note: If both the driver and user-space application supports the 6 GHz band,
   7453  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY is deprecated and use
   7454  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY.
   7455  * To maintain backward compatibility,
   7456  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY
   7457  * is still used if either of the driver or user space application doesn't
   7458  * support the 6 GHz band.
   7459  *
   7460  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY: Required (u8).
   7461  * Secondary channel number, required only for 160 and 80+80 MHz bandwidths.
   7462  * Note: If both the driver and user-space application supports the 6 GHz band,
   7463  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY is deprecated and use
   7464  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY.
   7465  * To maintain backward compatibility,
   7466  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY
   7467  * is still used if either of the driver or user space application
   7468  * doesn't support the 6 GHz band.
   7469  *
   7470  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0: Required (u8).
   7471  * VHT seg0 channel number
   7472  * Note: If both the driver and user-space application supports the 6 GHz band,
   7473  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0 is deprecated and use
   7474  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0.
   7475  * To maintain backward compatibility,
   7476  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0
   7477  * is still used if either of the driver or user space application
   7478  * doesn't support the 6 GHz band.
   7479  *
   7480  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1: Required (u8).
   7481  * VHT seg1 channel number
   7482  * Note: If both the driver and user-space application supports the 6 GHz band,
   7483  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1 is deprecated and use
   7484  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1.
   7485  * To maintain backward compatibility,
   7486  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1
   7487  * is still used if either of the driver or user space application
   7488  * doesn't support the 6 GHz band.
   7489  *
   7490  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH: Required (u8).
   7491  * Takes one of enum nl80211_chan_width values.
   7492  *
   7493  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST: Required
   7494  * Array of nested values for each channel with following attributes:
   7495  *	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY in MHz (u32),
   7496  *	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY in MHz (u32),
   7497  *	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0 in MHz (u32),
   7498  *	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1 in MHz (u32),
   7499  *	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH
   7500  * Note: If user-space application has no support of the 6 GHz band, this
   7501  * attribute is optional.
   7502  *
   7503  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY: Required (u32)
   7504  * Primary channel frequency in MHz
   7505  * Note: If user-space application has no support of the 6 GHz band, this
   7506  * attribute is optional.
   7507  *
   7508  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY: Required (u32)
   7509  * Secondary channel frequency in MHz used for HT 40 MHz channels.
   7510  * Note: If user-space application has no support of the 6 GHz band, this
   7511  * attribute is optional.
   7512  *
   7513  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0: Required (u32)
   7514  * VHT seg0 channel frequency in MHz
   7515  * Note: If user-space application has no support of the 6GHz band, this
   7516  * attribute is optional.
   7517  *
   7518  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1: Required (u32)
   7519  * VHT seg1 channel frequency in MHz
   7520  * Note: If user-space application has no support of the 6 GHz band, this
   7521  * attribute is optional.
   7522  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_PUNCTURE_BITMAP: Required (u16)
   7523  * Puncture Bitmap for selected primary channel. Optional if no support
   7524  * for EHT (IEEE 802.11be). Encoding for this attribute follows the
   7525  * convention used in the Disabled Subchannel Bitmap field of the EHT Operation
   7526  * element.
   7527  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_LINK_ID: Mandatory on AP MLD (u8).
   7528  * Used with command to configure external ACS operation for a specific link
   7529  * affiliated to an AP MLD.
   7530  */
   7531 enum qca_wlan_vendor_attr_external_acs_channels {
   7532 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_INVALID = 0,
   7533 
   7534 	/* One of reason code (u8) from enum qca_wlan_vendor_acs_select_reason
   7535 	 */
   7536 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON = 1,
   7537 
   7538 	/* Array of nested values for each channel with following attributes:
   7539 	 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_BAND,
   7540 	 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY,
   7541 	 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY,
   7542 	 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0,
   7543 	 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1,
   7544 	 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH
   7545 	 */
   7546 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST = 2,
   7547 	/* This (u8) will hold values of one of enum nl80211_bands */
   7548 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_BAND = 3,
   7549 	/* Primary channel (u8) */
   7550 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY = 4,
   7551 	/* Secondary channel (u8) used for HT 40 MHz channels */
   7552 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY = 5,
   7553 	/* VHT seg0 channel (u8) */
   7554 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0 = 6,
   7555 	/* VHT seg1 channel (u8) */
   7556 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1 = 7,
   7557 	/* Channel width (u8). Takes one of enum nl80211_chan_width values. */
   7558 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH = 8,
   7559 
   7560 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST = 9,
   7561 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY = 10,
   7562 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY = 11,
   7563 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0 = 12,
   7564 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1 = 13,
   7565 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_PUNCTURE_BITMAP = 14,
   7566 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_LINK_ID = 15,
   7567 
   7568 	/* keep last */
   7569 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LAST,
   7570 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_MAX =
   7571 		QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LAST - 1
   7572 };
   7573 
   7574 enum qca_chip_power_save_failure_reason {
   7575 	/* Indicates if the reason for the failure is due to a protocol
   7576 	 * layer/module.
   7577 	 */
   7578 	QCA_CHIP_POWER_SAVE_FAILURE_REASON_PROTOCOL = 0,
   7579 	/* Indicates if the reason for the failure is due to a hardware issue.
   7580 	 */
   7581 	QCA_CHIP_POWER_SAVE_FAILURE_REASON_HARDWARE = 1,
   7582 };
   7583 
   7584 /**
   7585  * qca_attr_chip_power_save_failure: Attributes to vendor subcmd
   7586  * QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE. This carries the requisite
   7587  * information leading to the power save failure.
   7588  */
   7589 enum qca_attr_chip_power_save_failure {
   7590 	QCA_ATTR_CHIP_POWER_SAVE_FAILURE_INVALID = 0,
   7591 	/* Reason to cause the power save failure.
   7592 	 * These reasons are represented by
   7593 	 * enum qca_chip_power_save_failure_reason.
   7594 	 */
   7595 	QCA_ATTR_CHIP_POWER_SAVE_FAILURE_REASON = 1,
   7596 
   7597 	/* keep last */
   7598 	QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST,
   7599 	QCA_ATTR_CHIP_POWER_SAVE_FAILURE_MAX =
   7600 		QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST - 1,
   7601 };
   7602 
   7603 /**
   7604  * qca_wlan_vendor_nud_stats_data_pkt_flags: Flag representing the various
   7605  * data types for which the stats have to get collected.
   7606  */
   7607 enum qca_wlan_vendor_nud_stats_data_pkt_flags {
   7608 	QCA_WLAN_VENDOR_NUD_STATS_DATA_ARP = 1 << 0,
   7609 	QCA_WLAN_VENDOR_NUD_STATS_DATA_DNS = 1 << 1,
   7610 	QCA_WLAN_VENDOR_NUD_STATS_DATA_TCP_HANDSHAKE = 1 << 2,
   7611 	QCA_WLAN_VENDOR_NUD_STATS_DATA_ICMPV4 = 1 << 3,
   7612 	QCA_WLAN_VENDOR_NUD_STATS_DATA_ICMPV6 = 1 << 4,
   7613 	/* Used by QCA_ATTR_NUD_STATS_PKT_TYPE only in nud stats get
   7614 	 * to represent the stats of respective data type.
   7615 	 */
   7616 	QCA_WLAN_VENDOR_NUD_STATS_DATA_TCP_SYN = 1 << 5,
   7617 	QCA_WLAN_VENDOR_NUD_STATS_DATA_TCP_SYN_ACK = 1 << 6,
   7618 	QCA_WLAN_VENDOR_NUD_STATS_DATA_TCP_ACK = 1 << 7,
   7619 };
   7620 
   7621 enum qca_wlan_vendor_nud_stats_set_data_pkt_info {
   7622 	QCA_ATTR_NUD_STATS_DATA_PKT_INFO_INVALID = 0,
   7623 	/* Represents the data packet type to be monitored (u32).
   7624 	 * Host driver tracks the stats corresponding to each data frame
   7625 	 * represented by these flags.
   7626 	 * These data packets are represented by
   7627 	 * enum qca_wlan_vendor_nud_stats_data_pkt_flags
   7628 	 */
   7629 	QCA_ATTR_NUD_STATS_DATA_PKT_INFO_TYPE = 1,
   7630 	/* Name corresponding to the DNS frame for which the respective DNS
   7631 	 * stats have to get monitored (string). Max string length 255.
   7632 	 */
   7633 	QCA_ATTR_NUD_STATS_DATA_PKT_INFO_DNS_DOMAIN_NAME = 2,
   7634 	/* source port on which the respective proto stats have to get
   7635 	 * collected (u32).
   7636 	 */
   7637 	QCA_ATTR_NUD_STATS_DATA_PKT_INFO_SRC_PORT = 3,
   7638 	/* destination port on which the respective proto stats have to get
   7639 	 * collected (u32).
   7640 	 */
   7641 	QCA_ATTR_NUD_STATS_DATA_PKT_INFO_DEST_PORT = 4,
   7642 	/* IPv4 address for which the destined data packets have to be
   7643 	 * monitored. (in network byte order), u32.
   7644 	 */
   7645 	QCA_ATTR_NUD_STATS_DATA_PKT_INFO_DEST_IPV4 = 5,
   7646 	/* IPv6 address for which the destined data packets have to be
   7647 	 * monitored. (in network byte order), 16 bytes array.
   7648 	 */
   7649 	QCA_ATTR_NUD_STATS_DATA_PKT_INFO_DEST_IPV6 = 6,
   7650 
   7651 	QCA_ATTR_NUD_STATS_DATA_PKT_INFO_LAST,
   7652 	QCA_ATTR_NUD_STATS_DATA_PKT_INFO_MAX =
   7653 		QCA_ATTR_NUD_STATS_DATA_PKT_INFO_LAST - 1,
   7654 };
   7655 
   7656 /**
   7657  * qca_wlan_vendor_attr_nud_stats_set: Attributes to vendor subcmd
   7658  * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carries the requisite
   7659  * information to start/stop the NUD statistics collection.
   7660  */
   7661 enum qca_attr_nud_stats_set {
   7662 	QCA_ATTR_NUD_STATS_SET_INVALID = 0,
   7663 
   7664 	/* Flag to start/stop the NUD statistics collection.
   7665 	 * Start - If included, Stop - If not included
   7666 	 */
   7667 	QCA_ATTR_NUD_STATS_SET_START = 1,
   7668 	/* IPv4 address of the default gateway (in network byte order), u32 */
   7669 	QCA_ATTR_NUD_STATS_GW_IPV4 = 2,
   7670 	/* Represents the list of data packet types to be monitored.
   7671 	 * Host driver tracks the stats corresponding to each data frame
   7672 	 * represented by these flags.
   7673 	 * These data packets are represented by
   7674 	 * enum qca_wlan_vendor_nud_stats_set_data_pkt_info
   7675 	 */
   7676 	QCA_ATTR_NUD_STATS_SET_DATA_PKT_INFO = 3,
   7677 
   7678 	/* keep last */
   7679 	QCA_ATTR_NUD_STATS_SET_LAST,
   7680 	QCA_ATTR_NUD_STATS_SET_MAX =
   7681 		QCA_ATTR_NUD_STATS_SET_LAST - 1,
   7682 };
   7683 
   7684 enum qca_attr_nud_data_stats {
   7685 	QCA_ATTR_NUD_DATA_STATS_INVALID = 0,
   7686 	/* Data packet type for which the stats are collected (u32).
   7687 	 * Represented by enum qca_wlan_vendor_nud_stats_data_pkt_flags
   7688 	 */
   7689 	QCA_ATTR_NUD_STATS_PKT_TYPE = 1,
   7690 	/* Name corresponding to the DNS frame for which the respective DNS
   7691 	 * stats are monitored (string). Max string length 255.
   7692 	 */
   7693 	QCA_ATTR_NUD_STATS_PKT_DNS_DOMAIN_NAME = 2,
   7694 	/* source port on which the respective proto stats are collected (u32).
   7695 	 */
   7696 	QCA_ATTR_NUD_STATS_PKT_SRC_PORT = 3,
   7697 	/* destination port on which the respective proto stats are collected
   7698 	 * (u32).
   7699 	 */
   7700 	QCA_ATTR_NUD_STATS_PKT_DEST_PORT = 4,
   7701 	/* IPv4 address for which the destined data packets have to be
   7702 	 * monitored. (in network byte order), u32.
   7703 	 */
   7704 	QCA_ATTR_NUD_STATS_PKT_DEST_IPV4 = 5,
   7705 	/* IPv6 address for which the destined data packets have to be
   7706 	 * monitored. (in network byte order), 16 bytes array.
   7707 	 */
   7708 	QCA_ATTR_NUD_STATS_PKT_DEST_IPV6 = 6,
   7709 	/* Data packet Request count received from netdev (u32). */
   7710 	QCA_ATTR_NUD_STATS_PKT_REQ_COUNT_FROM_NETDEV = 7,
   7711 	/* Data packet Request count sent to lower MAC from upper MAC (u32). */
   7712 	QCA_ATTR_NUD_STATS_PKT_REQ_COUNT_TO_LOWER_MAC = 8,
   7713 	/* Data packet Request count received by lower MAC from upper MAC
   7714 	 * (u32)
   7715 	 */
   7716 	QCA_ATTR_NUD_STATS_PKT_REQ_RX_COUNT_BY_LOWER_MAC = 9,
   7717 	/* Data packet Request count successfully transmitted by the device
   7718 	 * (u32)
   7719 	 */
   7720 	QCA_ATTR_NUD_STATS_PKT_REQ_COUNT_TX_SUCCESS = 10,
   7721 	/* Data packet Response count received by lower MAC (u32) */
   7722 	QCA_ATTR_NUD_STATS_PKT_RSP_RX_COUNT_BY_LOWER_MAC = 11,
   7723 	/* Data packet Response count received by upper MAC (u32) */
   7724 	QCA_ATTR_NUD_STATS_PKT_RSP_RX_COUNT_BY_UPPER_MAC = 12,
   7725 	/* Data packet Response count delivered to netdev (u32) */
   7726 	QCA_ATTR_NUD_STATS_PKT_RSP_COUNT_TO_NETDEV = 13,
   7727 	/* Data Packet Response count that are dropped out of order (u32) */
   7728 	QCA_ATTR_NUD_STATS_PKT_RSP_COUNT_OUT_OF_ORDER_DROP = 14,
   7729 
   7730 	/* keep last */
   7731 	QCA_ATTR_NUD_DATA_STATS_LAST,
   7732 	QCA_ATTR_NUD_DATA_STATS_MAX =
   7733 		QCA_ATTR_NUD_DATA_STATS_LAST - 1,
   7734 };
   7735 
   7736 /**
   7737  * qca_attr_nud_stats_get: Attributes to vendor subcmd
   7738  * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET. This carries the requisite
   7739  * NUD statistics collected when queried.
   7740  */
   7741 enum qca_attr_nud_stats_get {
   7742 	QCA_ATTR_NUD_STATS_GET_INVALID = 0,
   7743 	/* ARP Request count from netdev (u32) */
   7744 	QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_FROM_NETDEV = 1,
   7745 	/* ARP Request count sent to lower MAC from upper MAC (u32) */
   7746 	QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_TO_LOWER_MAC = 2,
   7747 	/* ARP Request count received by lower MAC from upper MAC (u32) */
   7748 	QCA_ATTR_NUD_STATS_ARP_REQ_RX_COUNT_BY_LOWER_MAC = 3,
   7749 	/* ARP Request count successfully transmitted by the device (u32) */
   7750 	QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_TX_SUCCESS = 4,
   7751 	/* ARP Response count received by lower MAC (u32) */
   7752 	QCA_ATTR_NUD_STATS_ARP_RSP_RX_COUNT_BY_LOWER_MAC = 5,
   7753 	/* ARP Response count received by upper MAC (u32) */
   7754 	QCA_ATTR_NUD_STATS_ARP_RSP_RX_COUNT_BY_UPPER_MAC = 6,
   7755 	/* ARP Response count delivered to netdev (u32) */
   7756 	QCA_ATTR_NUD_STATS_ARP_RSP_COUNT_TO_NETDEV = 7,
   7757 	/* ARP Response count dropped due to out of order reception (u32) */
   7758 	QCA_ATTR_NUD_STATS_ARP_RSP_COUNT_OUT_OF_ORDER_DROP = 8,
   7759 	/* Flag indicating if the station's link to the AP is active.
   7760 	 * Active Link - If included, Inactive link - If not included
   7761 	 */
   7762 	QCA_ATTR_NUD_STATS_AP_LINK_ACTIVE = 9,
   7763 	/* Flag indicating if there is any duplicate address detected (DAD).
   7764 	 * Yes - If detected, No - If not detected.
   7765 	 */
   7766 	QCA_ATTR_NUD_STATS_IS_DAD = 10,
   7767 	/* List of Data packet types for which the stats are requested.
   7768 	 * This list does not carry ARP stats as they are done by the
   7769 	 * above attributes. Represented by enum qca_attr_nud_data_stats.
   7770 	 */
   7771 	QCA_ATTR_NUD_STATS_DATA_PKT_STATS = 11,
   7772 
   7773 	/* keep last */
   7774 	QCA_ATTR_NUD_STATS_GET_LAST,
   7775 	QCA_ATTR_NUD_STATS_GET_MAX =
   7776 		QCA_ATTR_NUD_STATS_GET_LAST - 1,
   7777 };
   7778 
   7779 enum qca_wlan_btm_candidate_status {
   7780 	QCA_STATUS_ACCEPT = 0,
   7781 	QCA_STATUS_REJECT_EXCESSIVE_FRAME_LOSS_EXPECTED = 1,
   7782 	QCA_STATUS_REJECT_EXCESSIVE_DELAY_EXPECTED = 2,
   7783 	QCA_STATUS_REJECT_INSUFFICIENT_QOS_CAPACITY = 3,
   7784 	QCA_STATUS_REJECT_LOW_RSSI = 4,
   7785 	QCA_STATUS_REJECT_HIGH_INTERFERENCE = 5,
   7786 	QCA_STATUS_REJECT_UNKNOWN = 6,
   7787 };
   7788 
   7789 enum qca_wlan_vendor_attr_btm_candidate_info {
   7790 	QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_INVALID = 0,
   7791 
   7792 	/* 6-byte MAC address representing the BSSID of transition candidate */
   7793 	QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID = 1,
   7794 	/* Unsigned 32-bit value from enum qca_wlan_btm_candidate_status
   7795 	 * returned by the driver. It says whether the BSSID provided in
   7796 	 * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID is acceptable by
   7797 	 * the driver, if not it specifies the reason for rejection.
   7798 	 * Note that the user-space can overwrite the transition reject reason
   7799 	 * codes provided by driver based on more information.
   7800 	 */
   7801 	QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_STATUS = 2,
   7802 
   7803 	/* keep last */
   7804 	QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_AFTER_LAST,
   7805 	QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_MAX =
   7806 	QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_AFTER_LAST - 1,
   7807 };
   7808 
   7809 enum qca_attr_trace_level {
   7810 	QCA_ATTR_TRACE_LEVEL_INVALID = 0,
   7811 	/*
   7812 	 * Nested array of the following attributes:
   7813 	 * QCA_ATTR_TRACE_LEVEL_MODULE,
   7814 	 * QCA_ATTR_TRACE_LEVEL_MASK.
   7815 	 */
   7816 	QCA_ATTR_TRACE_LEVEL_PARAM = 1,
   7817 	/*
   7818 	 * Specific QCA host driver module. Please refer to the QCA host
   7819 	 * driver implementation to get the specific module ID.
   7820 	 */
   7821 	QCA_ATTR_TRACE_LEVEL_MODULE = 2,
   7822 	/* Different trace level masks represented in the QCA host driver. */
   7823 	QCA_ATTR_TRACE_LEVEL_MASK = 3,
   7824 
   7825 	/* keep last */
   7826 	QCA_ATTR_TRACE_LEVEL_AFTER_LAST,
   7827 	QCA_ATTR_TRACE_LEVEL_MAX =
   7828 		QCA_ATTR_TRACE_LEVEL_AFTER_LAST - 1,
   7829 };
   7830 
   7831 /**
   7832  * enum qca_wlan_vendor_attr_get_he_capabilities - IEEE 802.11ax HE capabilities
   7833  */
   7834 enum qca_wlan_vendor_attr_get_he_capabilities {
   7835 	QCA_WLAN_VENDOR_ATTR_HE_CAPABILITIES_INVALID = 0,
   7836 	/* Whether HE capabilities is supported
   7837 	 * (u8 attribute: 0 = not supported, 1 = supported)
   7838 	 */
   7839 	QCA_WLAN_VENDOR_ATTR_HE_SUPPORTED = 1,
   7840 	/* HE PHY capabilities, array of 3 u32 values  */
   7841 	QCA_WLAN_VENDOR_ATTR_PHY_CAPAB = 2,
   7842 	/* HE MAC capabilities (u32 attribute) */
   7843 	QCA_WLAN_VENDOR_ATTR_MAC_CAPAB = 3,
   7844 	/* HE MCS map (u32 attribute) */
   7845 	QCA_WLAN_VENDOR_ATTR_HE_MCS = 4,
   7846 	/* Number of SS (u32 attribute) */
   7847 	QCA_WLAN_VENDOR_ATTR_NUM_SS = 5,
   7848 	/* RU count (u32 attribute) */
   7849 	QCA_WLAN_VENDOR_ATTR_RU_IDX_MASK = 6,
   7850 	/* PPE threshold data, array of 8 u32 values */
   7851 	QCA_WLAN_VENDOR_ATTR_PPE_THRESHOLD = 7,
   7852 
   7853 	/* keep last */
   7854 	QCA_WLAN_VENDOR_ATTR_HE_CAPABILITIES_AFTER_LAST,
   7855 	QCA_WLAN_VENDOR_ATTR_HE_CAPABILITIES_MAX =
   7856 	QCA_WLAN_VENDOR_ATTR_HE_CAPABILITIES_AFTER_LAST - 1,
   7857 };
   7858 
   7859 /**
   7860  * enum qca_wlan_vendor_attr_spectral_scan - Spectral scan config parameters
   7861  */
   7862 enum qca_wlan_vendor_attr_spectral_scan {
   7863 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_INVALID = 0,
   7864 	/* Number of times the chip enters spectral scan mode before
   7865 	 * deactivating spectral scans. When set to 0, chip will enter spectral
   7866 	 * scan mode continuously. u32 attribute.
   7867 	 */
   7868 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SCAN_COUNT = 1,
   7869 	/* Spectral scan period. Period increment resolution is 256*Tclk,
   7870 	 * where Tclk = 1/44 MHz (Gmode), 1/40 MHz (Amode). u32 attribute.
   7871 	 */
   7872 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SCAN_PERIOD = 2,
   7873 	/* Spectral scan priority. u32 attribute. */
   7874 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_PRIORITY = 3,
   7875 	/* Number of FFT data points to compute. u32 attribute. */
   7876 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_SIZE = 4,
   7877 	/* Enable targeted gain change before starting the spectral scan FFT.
   7878 	 * u32 attribute.
   7879 	 */
   7880 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_GC_ENA = 5,
   7881 	/* Restart a queued spectral scan. u32 attribute. */
   7882 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RESTART_ENA = 6,
   7883 	/* Noise floor reference number for the calculation of bin power.
   7884 	 * u32 attribute.
   7885 	 */
   7886 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_NOISE_FLOOR_REF = 7,
   7887 	/* Disallow spectral scan triggers after TX/RX packets by setting
   7888 	 * this delay value to roughly SIFS time period or greater.
   7889 	 * u32 attribute.
   7890 	 */
   7891 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_INIT_DELAY = 8,
   7892 	/* Number of strong bins (inclusive) per sub-channel, below
   7893 	 * which a signal is declared a narrow band tone. u32 attribute.
   7894 	 */
   7895 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_NB_TONE_THR = 9,
   7896 	/* Specify the threshold over which a bin is declared strong (for
   7897 	 * scan bandwidth analysis). u32 attribute.
   7898 	 */
   7899 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_STR_BIN_THR = 10,
   7900 	/* Spectral scan report mode. u32 attribute. */
   7901 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_WB_RPT_MODE = 11,
   7902 	/* RSSI report mode, if the ADC RSSI is below
   7903 	 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_THR,
   7904 	 * then FFTs will not trigger, but timestamps and summaries get
   7905 	 * reported. u32 attribute.
   7906 	 */
   7907 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_RPT_MODE = 12,
   7908 	/* ADC RSSI must be greater than or equal to this threshold (signed dB)
   7909 	 * to ensure spectral scan reporting with normal error code.
   7910 	 * u32 attribute.
   7911 	 */
   7912 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_THR = 13,
   7913 	/* Format of frequency bin magnitude for spectral scan triggered FFTs:
   7914 	 * 0: linear magnitude, 1: log magnitude (20*log10(lin_mag)).
   7915 	 * u32 attribute.
   7916 	 */
   7917 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_PWR_FORMAT = 14,
   7918 	/* Format of FFT report to software for spectral scan triggered FFTs.
   7919 	 * 0: No FFT report (only spectral scan summary report)
   7920 	 * 1: 2-dword summary of metrics for each completed FFT + spectral scan
   7921 	 * report
   7922 	 * 2: 2-dword summary of metrics for each completed FFT + 1x-oversampled
   7923 	 * bins (in-band) per FFT + spectral scan summary report
   7924 	 * 3: 2-dword summary of metrics for each completed FFT + 2x-oversampled
   7925 	 * bins (all) per FFT + spectral scan summary report
   7926 	 * u32 attribute.
   7927 	 */
   7928 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RPT_MODE = 15,
   7929 	/* Number of LSBs to shift out in order to scale the FFT bins.
   7930 	 * u32 attribute.
   7931 	 */
   7932 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_BIN_SCALE = 16,
   7933 	/* Set to 1 (with spectral_scan_pwr_format=1), to report bin magnitudes
   7934 	 * in dBm power. u32 attribute.
   7935 	 */
   7936 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DBM_ADJ = 17,
   7937 	/* Per chain enable mask to select input ADC for search FFT.
   7938 	 * u32 attribute.
   7939 	 */
   7940 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_CHN_MASK = 18,
   7941 	/* An unsigned 64-bit integer provided by host driver to identify the
   7942 	 * spectral scan request. This attribute is included in the scan
   7943 	 * response message for @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START
   7944 	 * and used as an attribute in
   7945 	 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP to identify the
   7946 	 * specific scan to be stopped.
   7947 	 */
   7948 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE = 19,
   7949 	/* Skip interval for FFT reports. u32 attribute */
   7950 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_PERIOD = 20,
   7951 	/* Set to report only one set of FFT results.
   7952 	 * u32 attribute.
   7953 	 */
   7954 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SHORT_REPORT = 21,
   7955 	/* Debug level for spectral module in driver.
   7956 	 * 0 : Verbosity level 0
   7957 	 * 1 : Verbosity level 1
   7958 	 * 2 : Verbosity level 2
   7959 	 * 3 : Matched filterID display
   7960 	 * 4 : One time dump of FFT report
   7961 	 * u32 attribute.
   7962 	 */
   7963 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DEBUG_LEVEL = 22,
   7964 	/* Type of spectral scan request. u32 attribute.
   7965 	 * It uses values defined in enum
   7966 	 * qca_wlan_vendor_attr_spectral_scan_request_type.
   7967 	 */
   7968 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE = 23,
   7969 	/* This specifies the frequency span over which spectral
   7970 	 * scan would be carried out. Its value depends on the
   7971 	 * value of QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE and
   7972 	 * the relation is as follows.
   7973 	 * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL
   7974 	 *    Not applicable. Spectral scan would happen in the
   7975 	 *    operating span.
   7976 	 * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE
   7977 	 *    Center frequency (in MHz) of the span of interest or
   7978 	 *    for convenience, center frequency (in MHz) of any channel
   7979 	 *    in the span of interest. For 80+80 MHz agile spectral scan
   7980 	 *    request it represents center frequency (in MHz) of the primary
   7981 	 *    80 MHz span or for convenience, center frequency (in MHz) of any
   7982 	 *    channel in the primary 80 MHz span. If agile spectral scan is
   7983 	 *    initiated without setting a valid frequency it returns the
   7984 	 *    error code
   7985 	 *    (QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED).
   7986 	 * u32 attribute.
   7987 	 */
   7988 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FREQUENCY = 24,
   7989 	/* Spectral scan mode. u32 attribute.
   7990 	 * It uses values defined in enum qca_wlan_vendor_spectral_scan_mode.
   7991 	 * If this attribute is not present, it is assumed to be
   7992 	 * normal mode (QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL).
   7993 	 */
   7994 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE = 25,
   7995 	/* Spectral scan error code. u32 attribute.
   7996 	 * It uses values defined in enum
   7997 	 * qca_wlan_vendor_spectral_scan_error_code.
   7998 	 * This attribute is included only in failure scenarios.
   7999 	 */
   8000 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_ERROR_CODE = 26,
   8001 	/* 8-bit unsigned value to enable/disable debug of the
   8002 	 * Spectral DMA ring.
   8003 	 * 1-enable, 0-disable
   8004 	 */
   8005 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DMA_RING_DEBUG = 27,
   8006 	/* 8-bit unsigned value to enable/disable debug of the
   8007 	 * Spectral DMA buffers.
   8008 	 * 1-enable, 0-disable
   8009 	 */
   8010 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DMA_BUFFER_DEBUG = 28,
   8011 	/* This specifies the frequency span over which spectral scan would be
   8012 	 * carried out. Its value depends on the value of
   8013 	 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE and the relation is as
   8014 	 * follows.
   8015 	 * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL
   8016 	 *    Not applicable. Spectral scan would happen in the operating span.
   8017 	 * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE
   8018 	 *    This attribute is applicable only for agile spectral scan
   8019 	 *    requests in 80+80 MHz mode. It represents center frequency (in
   8020 	 *    MHz) of the secondary 80 MHz span or for convenience, center
   8021 	 *    frequency (in MHz) of any channel in the secondary 80 MHz span.
   8022 	 * u32 attribute.
   8023 	 */
   8024 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FREQUENCY_2 = 29,
   8025 	/* This attribute specifies the bandwidth to be used for spectral scan
   8026 	 * operation. This is an u8 attribute and uses the values in enum
   8027 	 * nl80211_chan_width. This is an optional attribute.
   8028 	 * If this attribute is not populated, the driver should configure the
   8029 	 * spectral scan bandwidth to the maximum value supported by the target
   8030 	 * for the current operating bandwidth.
   8031 	 */
   8032 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_BANDWIDTH = 30,
   8033 	/* Spectral FFT recapture flag attribute, to enable FFT recapture.
   8034 	 * Recapture can only be enabled for scan period greater than 52 us.
   8035 	 * If this attribute is enabled, re-triggers will be enabled when AGC
   8036 	 * gain changes.
   8037 	 */
   8038 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_RECAPTURE = 31,
   8039 	/* Attribute used for padding for 64-bit alignment */
   8040 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_PAD = 32,
   8041 	/* Spectral data transport mode. u32 attribute. It uses values
   8042 	 * defined in enum qca_wlan_vendor_spectral_data_transport_mode.
   8043 	 * This is an optional attribute. If this attribute is not populated,
   8044 	 * the driver should configure the default transport mode to netlink.
   8045 	 */
   8046 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_DATA_TRANSPORT_MODE = 33,
   8047 	/* Spectral scan completion timeout. u32 attribute. This
   8048 	 * attribute is used to configure a timeout value (in us). The
   8049 	 * timeout value would be from the beginning of a spectral
   8050 	 * scan. This is an optional attribute. If this attribute is
   8051 	 * not populated, the driver would internally derive the
   8052 	 * timeout value.
   8053 	 */
   8054 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COMPLETION_TIMEOUT = 34,
   8055 
   8056 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_AFTER_LAST,
   8057 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_MAX =
   8058 		QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_AFTER_LAST - 1,
   8059 };
   8060 
   8061 /**
   8062  * enum qca_wlan_vendor_attr_spectral_diag_stats - Used by the vendor command
   8063  * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS.
   8064  */
   8065 enum qca_wlan_vendor_attr_spectral_diag_stats {
   8066 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_INVALID = 0,
   8067 	/* Number of spectral TLV signature mismatches.
   8068 	 * u64 attribute.
   8069 	 */
   8070 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_SIG_MISMATCH = 1,
   8071 	/* Number of spectral phyerror events with insufficient length when
   8072 	 * parsing for secondary 80 search FFT report. u64 attribute.
   8073 	 */
   8074 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_SEC80_SFFT_INSUFFLEN = 2,
   8075 	/* Number of spectral phyerror events without secondary 80
   8076 	 * search FFT report. u64 attribute.
   8077 	 */
   8078 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_NOSEC80_SFFT = 3,
   8079 	/* Number of spectral phyerror events with vht operation segment 1 id
   8080 	 * mismatches in search fft report. u64 attribute.
   8081 	 */
   8082 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_VHTSEG1ID_MISMATCH = 4,
   8083 	/* Number of spectral phyerror events with vht operation segment 2 id
   8084 	 * mismatches in search fft report. u64 attribute.
   8085 	 */
   8086 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_VHTSEG2ID_MISMATCH = 5,
   8087 	/* Attribute used for padding for 64-bit alignment */
   8088 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_PAD = 6,
   8089 
   8090 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_AFTER_LAST,
   8091 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_MAX =
   8092 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_AFTER_LAST - 1,
   8093 };
   8094 
   8095 /**
   8096  * enum qca_wlan_vendor_attr_spectral_cap - Used by the vendor command
   8097  * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO.
   8098  */
   8099 enum qca_wlan_vendor_attr_spectral_cap {
   8100 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_INVALID = 0,
   8101 	/* Flag attribute to indicate phydiag capability */
   8102 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_PHYDIAG = 1,
   8103 	/* Flag attribute to indicate radar detection capability */
   8104 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_RADAR = 2,
   8105 	/* Flag attribute to indicate spectral capability */
   8106 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_SPECTRAL = 3,
   8107 	/* Flag attribute to indicate advanced spectral capability */
   8108 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_ADVANCED_SPECTRAL = 4,
   8109 	/* Spectral hardware generation. u32 attribute.
   8110 	 * It uses values defined in enum
   8111 	 * qca_wlan_vendor_spectral_scan_cap_hw_gen.
   8112 	 */
   8113 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HW_GEN = 5,
   8114 	/* Spectral bin scaling formula ID. u16 attribute.
   8115 	 * It uses values defined in enum
   8116 	 * qca_wlan_vendor_spectral_scan_cap_formula_id.
   8117 	 */
   8118 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_FORMULA_ID = 6,
   8119 	/* Spectral bin scaling param - low level offset.
   8120 	 * s16 attribute.
   8121 	 */
   8122 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_LOW_LEVEL_OFFSET = 7,
   8123 	/* Spectral bin scaling param - high level offset.
   8124 	 * s16 attribute.
   8125 	 */
   8126 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HIGH_LEVEL_OFFSET = 8,
   8127 	/* Spectral bin scaling param - RSSI threshold.
   8128 	 * s16 attribute.
   8129 	 */
   8130 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_RSSI_THR = 9,
   8131 	/* Spectral bin scaling param - default AGC max gain.
   8132 	 * u8 attribute.
   8133 	 */
   8134 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_DEFAULT_AGC_MAX_GAIN = 10,
   8135 	/* Flag attribute to indicate agile spectral scan capability
   8136 	 * for 20/40/80 MHz modes.
   8137 	 */
   8138 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL = 11,
   8139 	/* Flag attribute to indicate agile spectral scan capability
   8140 	 * for 160 MHz mode.
   8141 	 */
   8142 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL_160 = 12,
   8143 	/* Flag attribute to indicate agile spectral scan capability
   8144 	 * for 80+80 MHz mode.
   8145 	 */
   8146 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL_80_80 = 13,
   8147 	/* Number of spectral detectors used for scan in 20 MHz.
   8148 	 * u32 attribute.
   8149 	 */
   8150 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_20_MHZ = 14,
   8151 	/* Number of spectral detectors used for scan in 40 MHz.
   8152 	 * u32 attribute.
   8153 	 */
   8154 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_40_MHZ = 15,
   8155 	/* Number of spectral detectors used for scan in 80 MHz.
   8156 	 * u32 attribute.
   8157 	 */
   8158 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_80_MHZ = 16,
   8159 	/* Number of spectral detectors used for scan in 160 MHz.
   8160 	 * u32 attribute.
   8161 	 */
   8162 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_160_MHZ = 17,
   8163 	/* Number of spectral detectors used for scan in 80+80 MHz.
   8164 	 * u32 attribute.
   8165 	 */
   8166 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_80P80_MHZ = 18,
   8167 	/* Flag attribute to indicate agile spectral scan capability
   8168 	 * for 320 MHz mode.
   8169 	 */
   8170 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL_320 = 19,
   8171 	/* Number of spectral detectors used for scan in 320 MHz.
   8172 	 * u32 attribute.
   8173 	 */
   8174 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_320_MHZ = 20,
   8175 
   8176 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AFTER_LAST,
   8177 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_MAX =
   8178 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AFTER_LAST - 1,
   8179 };
   8180 
   8181 /**
   8182  * enum qca_wlan_vendor_attr_spectral_scan_status - used by the vendor command
   8183  * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS.
   8184  */
   8185 enum qca_wlan_vendor_attr_spectral_scan_status {
   8186 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_INVALID = 0,
   8187 	/* Flag attribute to indicate whether spectral scan is enabled */
   8188 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_IS_ENABLED = 1,
   8189 	/* Flag attribute to indicate whether spectral scan is in progress*/
   8190 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_IS_ACTIVE = 2,
   8191 	/* Spectral scan mode. u32 attribute.
   8192 	 * It uses values defined in enum qca_wlan_vendor_spectral_scan_mode.
   8193 	 * If this attribute is not present, normal mode
   8194 	 * (QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL is assumed to be
   8195 	 * requested.
   8196 	 */
   8197 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MODE = 3,
   8198 
   8199 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_AFTER_LAST,
   8200 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MAX =
   8201 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_AFTER_LAST - 1,
   8202 };
   8203 
   8204 /**
   8205  * qca_wlan_vendor_attr_spectral_scan_request_type: Attribute values for
   8206  * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE to the vendor subcmd
   8207  * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START. This represents the
   8208  * spectral scan request types.
   8209  * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN_AND_CONFIG: Request to
   8210  * set the spectral parameters and start scan.
   8211  * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN: Request to
   8212  * only set the spectral parameters.
   8213  * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_CONFIG: Request to
   8214  * only start the spectral scan.
   8215  */
   8216 enum qca_wlan_vendor_attr_spectral_scan_request_type {
   8217 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN_AND_CONFIG,
   8218 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN,
   8219 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_CONFIG,
   8220 };
   8221 
   8222 /**
   8223  * qca_wlan_vendor_spectral_scan_mode: Attribute values for
   8224  * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE in the vendor subcmd
   8225  * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START and
   8226  * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MODE in the vendor subcmd
   8227  * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS. This represents the
   8228  * spectral scan modes.
   8229  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL: Normal spectral scan:
   8230  * spectral scan in the current operating span.
   8231  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE: Agile spectral scan:
   8232  * spectral scan in the configured agile span.
   8233  */
   8234 enum qca_wlan_vendor_spectral_scan_mode {
   8235 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL = 0,
   8236 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE = 1,
   8237 };
   8238 
   8239 /**
   8240  * qca_wlan_vendor_spectral_scan_error_code: Attribute values for
   8241  * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_ERROR_CODE in the vendor subcmd
   8242  * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START.
   8243  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_UNSUPPORTED: Changing the value
   8244  * of a parameter is not supported.
   8245  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_MODE_UNSUPPORTED: Requested spectral scan
   8246  * mode is not supported.
   8247  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_INVALID_VALUE: A parameter
   8248  * has invalid value.
   8249  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED: A parameter
   8250  * is not initialized.
   8251  */
   8252 enum qca_wlan_vendor_spectral_scan_error_code {
   8253 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_UNSUPPORTED = 0,
   8254 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_MODE_UNSUPPORTED = 1,
   8255 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_INVALID_VALUE = 2,
   8256 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED = 3,
   8257 };
   8258 
   8259 /**
   8260  * qca_wlan_vendor_spectral_scan_cap_hw_gen: Attribute values for
   8261  * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HW_GEN to the vendor subcmd
   8262  * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO. This represents the
   8263  * spectral hardware generation.
   8264  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_1: generation 1
   8265  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_2: generation 2
   8266  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_3: generation 3
   8267  */
   8268 enum qca_wlan_vendor_spectral_scan_cap_hw_gen {
   8269 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_1 = 0,
   8270 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_2 = 1,
   8271 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_3 = 2,
   8272 };
   8273 
   8274 enum qca_wlan_vendor_tos {
   8275 	QCA_WLAN_VENDOR_TOS_BK = 0,
   8276 	QCA_WLAN_VENDOR_TOS_BE = 1,
   8277 	QCA_WLAN_VENDOR_TOS_VI = 2,
   8278 	QCA_WLAN_VENDOR_TOS_VO = 3,
   8279 };
   8280 
   8281 /**
   8282  * enum qca_wlan_vendor_attr_active_tos - Used by the vendor command
   8283  * QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS.
   8284  */
   8285 enum qca_wlan_vendor_attr_active_tos {
   8286 	QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_INVALID = 0,
   8287 	/* Type Of Service - Represented by qca_wlan_vendor_tos */
   8288 	QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS = 1,
   8289 	/* Flag attribute representing the start (attribute included) or stop
   8290 	 * (attribute not included) of the respective TOS.
   8291 	 */
   8292 	QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_START = 2,
   8293 };
   8294 
   8295 enum qca_wlan_vendor_hang_reason {
   8296 	/* Unspecified reason */
   8297 	QCA_WLAN_HANG_REASON_UNSPECIFIED = 0,
   8298 	/* No Map for the MAC entry for the received frame */
   8299 	QCA_WLAN_HANG_RX_HASH_NO_ENTRY_FOUND = 1,
   8300 	/* Peer deletion timeout happened */
   8301 	QCA_WLAN_HANG_PEER_DELETION_TIMEDOUT = 2,
   8302 	/* Peer unmap timeout */
   8303 	QCA_WLAN_HANG_PEER_UNMAP_TIMEDOUT = 3,
   8304 	/* Scan request timed out */
   8305 	QCA_WLAN_HANG_SCAN_REQ_EXPIRED = 4,
   8306 	/* Consecutive Scan attempt failures */
   8307 	QCA_WLAN_HANG_SCAN_ATTEMPT_FAILURES = 5,
   8308 	/* Unable to get the message buffer */
   8309 	QCA_WLAN_HANG_GET_MSG_BUFF_FAILURE = 6,
   8310 	/* Current command processing is timedout */
   8311 	QCA_WLAN_HANG_ACTIVE_LIST_TIMEOUT = 7,
   8312 	/* Timeout for an ACK from FW for suspend request */
   8313 	QCA_WLAN_HANG_SUSPEND_TIMEOUT = 8,
   8314 	/* Timeout for an ACK from FW for resume request */
   8315 	QCA_WLAN_HANG_RESUME_TIMEOUT = 9,
   8316 	/* Transmission timeout for consecutive data frames */
   8317 	QCA_WLAN_HANG_TRANSMISSIONS_TIMEOUT = 10,
   8318 	/* Timeout for the TX completion status of data frame */
   8319 	QCA_WLAN_HANG_TX_COMPLETE_TIMEOUT = 11,
   8320 	/* DXE failure for TX/RX, DXE resource unavailability */
   8321 	QCA_WLAN_HANG_DXE_FAILURE = 12,
   8322 	/* WMI pending commands exceed the maximum count */
   8323 	QCA_WLAN_HANG_WMI_EXCEED_MAX_PENDING_CMDS = 13,
   8324 	/* Timeout for peer STA connection accept command's response from the
   8325 	 * FW in AP mode. This command is triggered when a STA (peer) connects
   8326 	 * to AP (DUT).
   8327 	 */
   8328 	QCA_WLAN_HANG_AP_STA_CONNECT_REQ_TIMEOUT = 14,
   8329 	/* Timeout for the AP connection accept command's response from the FW
   8330 	 * in STA mode. This command is triggered when the STA (DUT) connects
   8331 	 * to an AP (peer).
   8332 	 */
   8333 	QCA_WLAN_HANG_STA_AP_CONNECT_REQ_TIMEOUT = 15,
   8334 	/* Timeout waiting for the response to the MAC HW mode change command
   8335 	 * sent to FW as a part of MAC mode switch among DBS (Dual Band
   8336 	 * Simultaneous), SCC (Single Channel Concurrency), and MCC (Multi
   8337 	 * Channel Concurrency) mode.
   8338 	 */
   8339 	QCA_WLAN_HANG_MAC_HW_MODE_CHANGE_TIMEOUT = 16,
   8340 	/* Timeout waiting for the response from FW to configure the MAC HW's
   8341 	 * mode. This operation is to configure the single/two MACs in either
   8342 	 * SCC/MCC/DBS mode.
   8343 	 */
   8344 	QCA_WLAN_HANG_MAC_HW_MODE_CONFIG_TIMEOUT = 17,
   8345 	/* Timeout waiting for response of VDEV start command from the FW */
   8346 	QCA_WLAN_HANG_VDEV_START_RESPONSE_TIMED_OUT = 18,
   8347 	/* Timeout waiting for response of VDEV restart command from the FW */
   8348 	QCA_WLAN_HANG_VDEV_RESTART_RESPONSE_TIMED_OUT = 19,
   8349 	/* Timeout waiting for response of VDEV stop command from the FW */
   8350 	QCA_WLAN_HANG_VDEV_STOP_RESPONSE_TIMED_OUT = 20,
   8351 	/* Timeout waiting for response of VDEV delete command from the FW */
   8352 	QCA_WLAN_HANG_VDEV_DELETE_RESPONSE_TIMED_OUT = 21,
   8353 	/* Timeout waiting for response of peer all delete request command to
   8354 	 * the FW on a specific VDEV.
   8355 	 */
   8356 	QCA_WLAN_HANG_VDEV_PEER_DELETE_ALL_RESPONSE_TIMED_OUT = 22,
   8357 	/* WMI sequence mismatch between WMI command and Tx completion */
   8358 	QCA_WLAN_HANG_WMI_BUF_SEQUENCE_MISMATCH = 23,
   8359 	/* Write to Device HAL register failed */
   8360 	QCA_WLAN_HANG_REG_WRITE_FAILURE = 24,
   8361 	/* No credit left to send the wow_wakeup_from_sleep to firmware */
   8362 	QCA_WLAN_HANG_SUSPEND_NO_CREDIT = 25,
   8363 	/* Bus failure */
   8364 	QCA_WLAN_HANG_BUS_FAILURE = 26,
   8365 	/* tasklet/credit latency found */
   8366 	QCA_WLAN_HANG_TASKLET_CREDIT_LATENCY_DETECT = 27,
   8367 	/* MSDU buffers received in REO error ring, exceeding certain
   8368 	 * threshold
   8369 	 */
   8370 	QCA_WLAN_HANG_RX_MSDU_BUF_RCVD_IN_ERR_RING = 28,
   8371 	/* Vdev SM is out of sync and connect req received
   8372 	 * when already connected
   8373 	 */
   8374 	QCA_WLAN_HANG_VDEV_SM_OUT_OF_SYNC = 29,
   8375 	/* Stats request timeout */
   8376 	QCA_WLAN_HANG_STATS_REQ_TIMEOUT = 30,
   8377 	/* Leak in TX descriptor for a packet */
   8378 	QCA_WLAN_HANG_TX_DESC_LEAK = 31,
   8379 	/* Scheduler watchdog timeout */
   8380 	QCA_WLAN_HANG_SCHED_TIMEOUT = 32,
   8381 	/* Failed to send self peer deletion cmd to firmware */
   8382 	QCA_WLAN_HANG_SELF_PEER_DEL_FAIL = 33,
   8383 	/* Received del self sta without del bss */
   8384 	QCA_WLAN_HANG_DEL_SELF_STA_FAIL = 34,
   8385 	/* Recovery needed when sending flush completion to userspace */
   8386 	QCA_WLAN_HANG_FLUSH_LOGS = 35,
   8387 	/* Host wakeup because of page fault */
   8388 	QCA_WLAN_HANG_HOST_WAKEUP_REASON_PAGE_FAULT = 36,
   8389 };
   8390 
   8391 /**
   8392  * enum qca_wlan_vendor_attr_hang - Used by the vendor command
   8393  * QCA_NL80211_VENDOR_SUBCMD_HANG.
   8394  */
   8395 enum qca_wlan_vendor_attr_hang {
   8396 	QCA_WLAN_VENDOR_ATTR_HANG_INVALID = 0,
   8397 	/* Reason for the hang - u32 attribute with a value from enum
   8398 	 * qca_wlan_vendor_hang_reason.
   8399 	 */
   8400 	QCA_WLAN_VENDOR_ATTR_HANG_REASON = 1,
   8401 	/* The binary blob data associated with the hang reason specified by
   8402 	 * QCA_WLAN_VENDOR_ATTR_HANG_REASON. This binary data is expected to
   8403 	 * contain the required dump to analyze the reason for the hang.
   8404 	 * NLA_BINARY attribute, the max size is 1024 bytes.
   8405 	 */
   8406 	QCA_WLAN_VENDOR_ATTR_HANG_REASON_DATA = 2,
   8407 
   8408 	QCA_WLAN_VENDOR_ATTR_HANG_AFTER_LAST,
   8409 	QCA_WLAN_VENDOR_ATTR_HANG_MAX =
   8410 		QCA_WLAN_VENDOR_ATTR_HANG_AFTER_LAST - 1,
   8411 };
   8412 
   8413 /**
   8414  * enum qca_wlan_vendor_flush_pending_policy: Represents values for
   8415  * the policy to flush pending frames, configured via
   8416  * %QCA_NL80211_VENDOR_SUBCMD_PEER_FLUSH_PENDING. This enumeration defines the
   8417  * valid values for %QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_POLICY.
   8418  *
   8419  * @QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_NONE: This value clears all
   8420  * the flush policy configured before. This command basically disables the
   8421  * flush config set by the user.
   8422  * @QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_IMMEDIATE: This value configures
   8423  * the flush policy to be immediate. All pending packets for the peer/TID are
   8424  * flushed when this command/policy is received.
   8425  * @QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_TWT_SP_END: This value configures
   8426  * the flush policy to the end of TWT SP. All pending packets for the peer/TID
   8427  * are flushed when the end of TWT SP is reached.
   8428  */
   8429 enum qca_wlan_vendor_flush_pending_policy  {
   8430 	QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_NONE = 0,
   8431 	QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_IMMEDIATE = 1,
   8432 	QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_TWT_SP_END = 2,
   8433 };
   8434 
   8435 /**
   8436  * enum qca_wlan_vendor_attr_flush_pending - Attributes for
   8437  * flushing pending traffic in firmware.
   8438  *
   8439  * @QCA_WLAN_VENDOR_ATTR_PEER_ADDR: Configure peer MAC address.
   8440  * @QCA_WLAN_VENDOR_ATTR_AC: Configure access category of the pending
   8441  * packets. It is u8 value with bit 0~3 represent AC_BE, AC_BK,
   8442  * AC_VI, AC_VO respectively. Set the corresponding bit to 1 to
   8443  * flush packets with access category. This is optional. See below.
   8444  * @QCA_WLAN_VENDOR_ATTR_TID_MASK: Configure TID mask of the pending packets.
   8445  * It is a u32 value with bit 0-7 representing TID 0-7. Set corresponding
   8446  * bit to 1 to act upon the TID. This is optional. Either this attribute or
   8447  * %QCA_WLAN_VENDOR_ATTR_AC must be provided. If both are provided,
   8448  * %QCA_WLAN_VENDOR_ATTR_TID_MASK takes precedence. If neither are provided
   8449  * it is an error.
   8450  * @QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_POLICY: Policy of flushing the pending
   8451  * packets corresponding to the peer/TID provided. It is a u32 value,
   8452  * represented by %enum qca_wlan_vendor_flush_pending_policy. This
   8453  * value is honored only when TID mask is provided. This is not honored when AC
   8454  * mask is provided.
   8455  */
   8456 enum qca_wlan_vendor_attr_flush_pending {
   8457 	QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_INVALID = 0,
   8458 	QCA_WLAN_VENDOR_ATTR_PEER_ADDR = 1,
   8459 	QCA_WLAN_VENDOR_ATTR_AC = 2,
   8460 	QCA_WLAN_VENDOR_ATTR_TID_MASK = 3,
   8461 	QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_POLICY = 4,
   8462 
   8463 	/* keep last */
   8464 	QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_AFTER_LAST,
   8465 	QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_MAX =
   8466 	QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_AFTER_LAST - 1,
   8467 };
   8468 
   8469 /**
   8470  * qca_wlan_vendor_spectral_scan_cap_formula_id: Attribute values for
   8471  * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_FORMULA_ID in the vendor subcmd
   8472  * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO. This represents the
   8473  * Spectral bin scaling formula ID.
   8474  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_NO_SCALING: No scaling
   8475  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_AGC_GAIN_RSSI_CORR_BASED: AGC gain
   8476  * and RSSI threshold based formula.
   8477  */
   8478 enum qca_wlan_vendor_spectral_scan_cap_formula_id {
   8479 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_NO_SCALING = 0,
   8480 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_AGC_GAIN_RSSI_CORR_BASED = 1,
   8481 };
   8482 
   8483 /**
   8484  * enum qca_wlan_vendor_attr_rropavail_info - Specifies whether Representative
   8485  * RF Operating Parameter (RROP) information is available, and if so, at which
   8486  * point in the application-driver interaction sequence it can be retrieved by
   8487  * the application from the driver. This point may vary by architecture and
   8488  * other factors. This is a u16 value.
   8489  */
   8490 enum qca_wlan_vendor_attr_rropavail_info {
   8491 	/* RROP information is unavailable. */
   8492 	QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_UNAVAILABLE,
   8493 	/* RROP information is available and the application can retrieve the
   8494 	 * information after receiving an QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS
   8495 	 * event from the driver.
   8496 	 */
   8497 	QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_EXTERNAL_ACS_START,
   8498 	/* RROP information is available only after a vendor specific scan
   8499 	 * (requested using QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN) has
   8500 	 * successfully completed. The application can retrieve the information
   8501 	 * after receiving the QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE event from
   8502 	 * the driver.
   8503 	 */
   8504 	QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_VSCAN_END,
   8505 };
   8506 
   8507 /**
   8508  * enum qca_wlan_vendor_attr_rrop_info - Specifies vendor specific
   8509  * Representative RF Operating Parameter (RROP) information. It is sent for the
   8510  * vendor command QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO. This information is
   8511  * intended for use by external Auto Channel Selection applications. It provides
   8512  * guidance values for some RF parameters that are used by the system during
   8513  * operation. These values could vary by channel, band, radio, and so on.
   8514  */
   8515 enum qca_wlan_vendor_attr_rrop_info {
   8516 	QCA_WLAN_VENDOR_ATTR_RROP_INFO_INVALID = 0,
   8517 
   8518 	/* Representative Tx Power List (RTPL) which has an array of nested
   8519 	 * values as per attributes in enum qca_wlan_vendor_attr_rtplinst.
   8520 	 */
   8521 	QCA_WLAN_VENDOR_ATTR_RROP_INFO_RTPL = 1,
   8522 
   8523 	QCA_WLAN_VENDOR_ATTR_RROP_INFO_AFTER_LAST,
   8524 	QCA_WLAN_VENDOR_ATTR_RROP_INFO_MAX =
   8525 	QCA_WLAN_VENDOR_ATTR_RROP_INFO_AFTER_LAST - 1
   8526 };
   8527 
   8528 /**
   8529  * enum qca_wlan_vendor_attr_rtplinst - Specifies attributes for individual list
   8530  * entry instances in the Representative Tx Power List (RTPL). It provides
   8531  * simplified power values intended for helping external Auto channel Selection
   8532  * applications compare potential Tx power performance between channels, other
   8533  * operating conditions remaining identical. These values are not necessarily
   8534  * the actual Tx power values that will be used by the system. They are also not
   8535  * necessarily the max or average values that will be used. Instead, they are
   8536  * relative, summarized keys for algorithmic use computed by the driver or
   8537  * underlying firmware considering a number of vendor specific factors.
   8538  */
   8539 enum qca_wlan_vendor_attr_rtplinst {
   8540 	QCA_WLAN_VENDOR_ATTR_RTPLINST_INVALID = 0,
   8541 
   8542 	/* Primary channel number (u8).
   8543 	 * Note: If both the driver and user space application support the
   8544 	 * 6 GHz band, this attribute is deprecated and
   8545 	 * QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY_FREQUENCY should be used. To
   8546 	 * maintain backward compatibility,
   8547 	 * QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY is still used if either the
   8548 	 * driver or user space application or both do not support the 6 GHz
   8549 	 * band.
   8550 	 */
   8551 	QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY = 1,
   8552 	/* Representative Tx power in dBm (s32) with emphasis on throughput. */
   8553 	QCA_WLAN_VENDOR_ATTR_RTPLINST_TXPOWER_THROUGHPUT = 2,
   8554 	/* Representative Tx power in dBm (s32) with emphasis on range. */
   8555 	QCA_WLAN_VENDOR_ATTR_RTPLINST_TXPOWER_RANGE = 3,
   8556 	/* Primary channel center frequency (u32) in MHz */
   8557 	QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY_FREQUENCY = 4,
   8558 
   8559 	QCA_WLAN_VENDOR_ATTR_RTPLINST_AFTER_LAST,
   8560 	QCA_WLAN_VENDOR_ATTR_RTPLINST_MAX =
   8561 		QCA_WLAN_VENDOR_ATTR_RTPLINST_AFTER_LAST - 1,
   8562 };
   8563 
   8564 /**
   8565  * enum qca_wlan_vendor_attr_config_latency_level - Level for
   8566  * wlan latency module.
   8567  *
   8568  * There will be various of Wi-Fi functionality like scan/roaming/adaptive
   8569  * power saving which would causing data exchange out of service, this
   8570  * would be a big impact on latency. For latency sensitive applications over
   8571  * Wi-Fi are intolerant to such operations and thus would configure them
   8572  * to meet their respective needs. It is well understood by such applications
   8573  * that altering the default behavior would degrade the Wi-Fi functionality
   8574  * w.r.t the above pointed WLAN operations.
   8575  *
   8576  * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_NORMAL:
   8577  *	Default WLAN operation level which throughput orientated.
   8578  * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_XR:
   8579  *	Use XR level to benefit XR (extended reality) application to achieve
   8580  *	latency and power by via constraint scan/roaming/adaptive PS.
   8581  * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_LOW:
   8582  *	Use low latency level to benefit application like concurrent
   8583  *	downloading or video streaming via constraint scan/adaptive PS.
   8584  * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_ULTRALOW:
   8585  *	Use ultra low latency level to benefit for gaming/voice
   8586  *	application via constraint scan/roaming/adaptive PS.
   8587  */
   8588 enum qca_wlan_vendor_attr_config_latency_level {
   8589 	QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_INVALID = 0,
   8590 	QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_NORMAL = 1,
   8591 	QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_XR = 2,
   8592 	/* legacy name */
   8593 	QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_MODERATE =
   8594 	QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_XR,
   8595 	QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_LOW = 3,
   8596 	QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_ULTRALOW = 4,
   8597 
   8598 	/* keep last */
   8599 	QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_AFTER_LAST,
   8600 	QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_MAX =
   8601 	QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_AFTER_LAST - 1,
   8602 };
   8603 
   8604 /**
   8605  * enum qca_wlan_vendor_attr_wlan_mac - Used by the vendor command
   8606  * QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO.
   8607  */
   8608 enum qca_wlan_vendor_attr_mac {
   8609 	QCA_WLAN_VENDOR_ATTR_MAC_INVALID = 0,
   8610 
   8611 	/* MAC mode info list which has an array of nested values as
   8612 	 * per attributes in enum qca_wlan_vendor_attr_mac_mode_info.
   8613 	 */
   8614 	QCA_WLAN_VENDOR_ATTR_MAC_INFO = 1,
   8615 
   8616 	/* keep last */
   8617 	QCA_WLAN_VENDOR_ATTR_MAC_AFTER_LAST,
   8618 	QCA_WLAN_VENDOR_ATTR_MAC_MAX =
   8619 	QCA_WLAN_VENDOR_ATTR_MAC_AFTER_LAST - 1,
   8620 };
   8621 
   8622 /**
   8623  * enum qca_wlan_vendor_attr_mac_iface_info - Information of the connected
   8624  *	Wi-Fi netdev interface on a respective MAC.
   8625  *	Used by the attribute QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO.
   8626  */
   8627 enum qca_wlan_vendor_attr_mac_iface_info {
   8628 	QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_INVALID = 0,
   8629 	/* Wi-Fi netdev's interface index (u32) */
   8630 	QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_IFINDEX = 1,
   8631 	/* Associated frequency in MHz of the connected Wi-Fi interface (u32) */
   8632 	QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_FREQ = 2,
   8633 
   8634 	/* keep last */
   8635 	QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_AFTER_LAST,
   8636 	QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_MAX =
   8637 	QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_AFTER_LAST - 1,
   8638 };
   8639 
   8640 /**
   8641  * enum qca_wlan_vendor_attr_mac_info - Points to MAC the information.
   8642  *	Used by the attribute QCA_WLAN_VENDOR_ATTR_MAC_INFO of the
   8643  *	vendor command QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO.
   8644  */
   8645 enum qca_wlan_vendor_attr_mac_info {
   8646 	QCA_WLAN_VENDOR_ATTR_MAC_INFO_INVALID = 0,
   8647 	/* Hardware MAC ID associated for the MAC (u32) */
   8648 	QCA_WLAN_VENDOR_ATTR_MAC_INFO_MAC_ID = 1,
   8649 	/* Band supported by the MAC at a given point.
   8650 	 * This is a u32 bitmask of BIT(NL80211_BAND_*) as described in %enum
   8651 	 * nl80211_band.
   8652 	 */
   8653 	QCA_WLAN_VENDOR_ATTR_MAC_INFO_BAND = 2,
   8654 	/* Refers to list of WLAN netdev interfaces associated with this MAC.
   8655 	 * Represented by enum qca_wlan_vendor_attr_mac_iface_info.
   8656 	 */
   8657 	QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO = 3,
   8658 
   8659 	/* keep last */
   8660 	QCA_WLAN_VENDOR_ATTR_MAC_INFO_AFTER_LAST,
   8661 	QCA_WLAN_VENDOR_ATTR_MAC_INFO_MAX =
   8662 	QCA_WLAN_VENDOR_ATTR_MAC_INFO_AFTER_LAST - 1,
   8663 };
   8664 
   8665 /**
   8666  * enum qca_wlan_vendor_attr_get_logger_features - Used by the vendor command
   8667  * QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET.
   8668  */
   8669 enum qca_wlan_vendor_attr_get_logger_features {
   8670 	QCA_WLAN_VENDOR_ATTR_LOGGER_INVALID = 0,
   8671 	/* Unsigned 32-bit enum value of wifi_logger_supported_features */
   8672 	QCA_WLAN_VENDOR_ATTR_LOGGER_SUPPORTED = 1,
   8673 	/* keep last */
   8674 	QCA_WLAN_VENDOR_ATTR_LOGGER_AFTER_LAST,
   8675 	QCA_WLAN_VENDOR_ATTR_LOGGER_MAX =
   8676 		QCA_WLAN_VENDOR_ATTR_LOGGER_AFTER_LAST - 1,
   8677 };
   8678 
   8679 /**
   8680  * enum wifi_logger_supported_features - Values for supported logger features
   8681  */
   8682 enum wifi_logger_supported_features {
   8683 	WIFI_LOGGER_MEMORY_DUMP_FEATURE = (1 << (0)),
   8684 	WIFI_LOGGER_PER_PACKET_TX_RX_STATUS_FEATURE = (1 << (1)),
   8685 	WIFI_LOGGER_CONNECT_EVENT_FEATURE = (1 << (2)),
   8686 	WIFI_LOGGER_POWER_EVENT_FEATURE = (1 << (3)),
   8687 	WIFI_LOGGER_WAKE_LOCK_FEATURE = (1 << (4)),
   8688 	WIFI_LOGGER_VERBOSE_FEATURE = (1 << (5)),
   8689 	WIFI_LOGGER_WATCHDOG_TIMER_FEATURE = (1 << (6)),
   8690 	WIFI_LOGGER_DRIVER_DUMP_FEATURE = (1 << (7)),
   8691 	WIFI_LOGGER_PACKET_FATE_FEATURE = (1 << (8)),
   8692 };
   8693 
   8694 /**
   8695  * enum qca_wlan_tdls_caps_features_supported - Values for TDLS get
   8696  * capabilities features
   8697  */
   8698 enum qca_wlan_tdls_caps_features_supported {
   8699 	WIFI_TDLS_SUPPORT = (1 << (0)),
   8700 	WIFI_TDLS_EXTERNAL_CONTROL_SUPPORT = (1 << (1)),
   8701 	WIFI_TDLS_OFFCHANNEL_SUPPORT = (1 << (2)),
   8702 
   8703 	/* Indicates if the TDLS session can be formed with the peer using
   8704 	 * higher bandwidth than the bandwidth of the AP path.
   8705 	 */
   8706 	WIFI_TDLS_WIDER_BW_SUPPORT = (1 << (3)),
   8707 };
   8708 
   8709 /**
   8710  * enum qca_wlan_vendor_attr_tdls_get_capabilities - Used by the vendor command
   8711  * QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_CAPABILITIES.
   8712  */
   8713 enum qca_wlan_vendor_attr_tdls_get_capabilities {
   8714 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_INVALID = 0,
   8715 	/* Indicates the max concurrent sessions */
   8716 	/* Unsigned 32-bit value */
   8717 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_MAX_CONC_SESSIONS,
   8718 	/* Indicates the support for features */
   8719 	/* Unsigned 32-bit bitmap qca_wlan_tdls_caps_features_supported
   8720 	 */
   8721 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_FEATURES_SUPPORTED,
   8722 
   8723 	/* keep last */
   8724 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_AFTER_LAST,
   8725 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_MAX =
   8726 		QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_AFTER_LAST - 1,
   8727 };
   8728 
   8729 /**
   8730  * enum qca_wlan_offloaded_packets_sending_control - Offload packets control
   8731  * command used as value for the attribute
   8732  * QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_SENDING_CONTROL.
   8733  */
   8734 enum qca_wlan_offloaded_packets_sending_control {
   8735 	QCA_WLAN_OFFLOADED_PACKETS_SENDING_CONTROL_INVALID = 0,
   8736 	QCA_WLAN_OFFLOADED_PACKETS_SENDING_START,
   8737 	QCA_WLAN_OFFLOADED_PACKETS_SENDING_STOP
   8738 };
   8739 
   8740 /**
   8741  * enum qca_wlan_vendor_attr_offloaded_packets - Used by the vendor command
   8742  * QCA_NL80211_VENDOR_SUBCMD_OFFLOADED_PACKETS.
   8743  */
   8744 enum qca_wlan_vendor_attr_offloaded_packets {
   8745 	QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_INVALID = 0,
   8746 	/* Takes valid value from the enum
   8747 	 * qca_wlan_offloaded_packets_sending_control
   8748 	 * Unsigned 32-bit value
   8749 	 */
   8750 	QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_SENDING_CONTROL,
   8751 	/* Unsigned 32-bit value */
   8752 	QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_REQUEST_ID,
   8753 	/* array of u8 len: Max packet size */
   8754 	QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_IP_PACKET_DATA,
   8755 	/* 6-byte MAC address used to represent source MAC address */
   8756 	QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_SRC_MAC_ADDR,
   8757 	/* 6-byte MAC address used to represent destination MAC address */
   8758 	QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_DST_MAC_ADDR,
   8759 	/* Unsigned 32-bit value, in milli seconds */
   8760 	QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_PERIOD,
   8761 	/* This optional unsigned 16-bit attribute is used for specifying
   8762 	 * ethernet protocol type. If not specified ethertype defaults to IPv4.
   8763 	 */
   8764 	QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_ETHER_PROTO_TYPE,
   8765 
   8766 	/* keep last */
   8767 	QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_AFTER_LAST,
   8768 	QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_MAX =
   8769 		QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_AFTER_LAST - 1,
   8770 };
   8771 
   8772 /**
   8773  * enum qca_wlan_rssi_monitoring_control - RSSI control commands used as values
   8774  * by the attribute QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CONTROL.
   8775  */
   8776 enum qca_wlan_rssi_monitoring_control {
   8777 	QCA_WLAN_RSSI_MONITORING_CONTROL_INVALID = 0,
   8778 	QCA_WLAN_RSSI_MONITORING_START,
   8779 	QCA_WLAN_RSSI_MONITORING_STOP,
   8780 };
   8781 
   8782 /**
   8783  * enum qca_wlan_vendor_attr_rssi_monitoring - Used by the vendor command
   8784  * QCA_NL80211_VENDOR_SUBCMD_MONITOR_RSSI.
   8785  */
   8786 enum qca_wlan_vendor_attr_rssi_monitoring {
   8787 	QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_INVALID = 0,
   8788 	/* Takes valid value from the enum
   8789 	 * qca_wlan_rssi_monitoring_control
   8790 	 * Unsigned 32-bit value enum qca_wlan_rssi_monitoring_control
   8791 	 */
   8792 	QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CONTROL,
   8793 	/* Unsigned 32-bit value */
   8794 	QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_REQUEST_ID,
   8795 	/* Signed 8-bit value in dBm */
   8796 	QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX_RSSI,
   8797 	/* Signed 8-bit value in dBm */
   8798 	QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MIN_RSSI,
   8799 	/* attributes to be used/received in callback */
   8800 	/* 6-byte MAC address used to represent current BSSID MAC address */
   8801 	QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_BSSID,
   8802 	/* Signed 8-bit value indicating the current RSSI */
   8803 	QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_RSSI,
   8804 	/* keep last */
   8805 	QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_AFTER_LAST,
   8806 	QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX =
   8807 		QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_AFTER_LAST - 1,
   8808 };
   8809 
   8810 /**
   8811  * enum qca_wlan_vendor_attr_ndp_params - Used by the vendor command
   8812  * QCA_NL80211_VENDOR_SUBCMD_NDP.
   8813  */
   8814 enum qca_wlan_vendor_attr_ndp_params {
   8815 	QCA_WLAN_VENDOR_ATTR_NDP_PARAM_INVALID = 0,
   8816 	/* Unsigned 32-bit value
   8817 	 * enum of sub commands values in qca_wlan_ndp_sub_cmd
   8818 	 */
   8819 	QCA_WLAN_VENDOR_ATTR_NDP_SUBCMD,
   8820 	/* Unsigned 16-bit value */
   8821 	QCA_WLAN_VENDOR_ATTR_NDP_TRANSACTION_ID,
   8822 	/* NL attributes for data used NDP SUB cmds */
   8823 	/* Unsigned 32-bit value indicating a service info */
   8824 	QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_INSTANCE_ID,
   8825 	/* Unsigned 32-bit value; channel frequency in MHz */
   8826 	QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL,
   8827 	/* Interface Discovery MAC address. An array of 6 Unsigned int8 */
   8828 	QCA_WLAN_VENDOR_ATTR_NDP_PEER_DISCOVERY_MAC_ADDR,
   8829 	/* Interface name on which NDP is being created */
   8830 	QCA_WLAN_VENDOR_ATTR_NDP_IFACE_STR,
   8831 	/* Unsigned 32-bit value for security */
   8832 	/* CONFIG_SECURITY is deprecated, use NCS_SK_TYPE/PMK/SCID instead */
   8833 	QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_SECURITY,
   8834 	/* Unsigned 32-bit value for QoS */
   8835 	QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_QOS,
   8836 	/* Array of u8: len = QCA_WLAN_VENDOR_ATTR_NAN_DP_APP_INFO_LEN */
   8837 	QCA_WLAN_VENDOR_ATTR_NDP_APP_INFO,
   8838 	/* Unsigned 32-bit value for NDP instance Id */
   8839 	QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID,
   8840 	/* Array of instance Ids */
   8841 	QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID_ARRAY,
   8842 	/* Unsigned 32-bit value for initiator/responder NDP response code
   8843 	 * accept/reject
   8844 	 */
   8845 	QCA_WLAN_VENDOR_ATTR_NDP_RESPONSE_CODE,
   8846 	/* NDI MAC address. An array of 6 Unsigned int8 */
   8847 	QCA_WLAN_VENDOR_ATTR_NDP_NDI_MAC_ADDR,
   8848 	/* Unsigned 32-bit value errors types returned by driver
   8849 	 * The wifi_nan.h in AOSP project platform/hardware/libhardware_legacy
   8850 	 * NanStatusType includes these values.
   8851 	 */
   8852 	QCA_WLAN_VENDOR_ATTR_NDP_DRV_RESPONSE_STATUS_TYPE,
   8853 	/* Unsigned 32-bit value error values returned by driver
   8854 	 * The nan_i.h in AOSP project platform/hardware/qcom/wlan
   8855 	 * NanInternalStatusType includes these values.
   8856 	 */
   8857 	QCA_WLAN_VENDOR_ATTR_NDP_DRV_RETURN_VALUE,
   8858 	/* Unsigned 32-bit value for Channel setup configuration
   8859 	 * The wifi_nan.h in AOSP project platform/hardware/libhardware_legacy
   8860 	 * NanDataPathChannelCfg includes these values.
   8861 	 */
   8862 	QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_CONFIG,
   8863 	/* Unsigned 32-bit value for Cipher Suite Shared Key Type */
   8864 	QCA_WLAN_VENDOR_ATTR_NDP_CSID,
   8865 	/* Array of u8: len = NAN_PMK_INFO_LEN 32 bytes */
   8866 	QCA_WLAN_VENDOR_ATTR_NDP_PMK,
   8867 	/* Security Context Identifier that contains the PMKID
   8868 	 * Array of u8: len = NAN_SCID_BUF_LEN 1024 bytes
   8869 	 */
   8870 	QCA_WLAN_VENDOR_ATTR_NDP_SCID,
   8871 	/* Array of u8: len = NAN_SECURITY_MAX_PASSPHRASE_LEN 63 bytes */
   8872 	QCA_WLAN_VENDOR_ATTR_NDP_PASSPHRASE,
   8873 	/* Array of u8: len = NAN_MAX_SERVICE_NAME_LEN 255 bytes */
   8874 	QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_NAME,
   8875 	/* Unsigned 32-bit bitmap indicating schedule update
   8876 	 * BIT_0: NSS Update
   8877 	 * BIT_1: Channel list update
   8878 	 */
   8879 	QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_REASON,
   8880 	/* Unsigned 32-bit value for NSS */
   8881 	QCA_WLAN_VENDOR_ATTR_NDP_NSS,
   8882 	/* Unsigned 32-bit value for NUMBER NDP CHANNEL */
   8883 	QCA_WLAN_VENDOR_ATTR_NDP_NUM_CHANNELS,
   8884 	/* Unsigned 32-bit value for CHANNEL BANDWIDTH
   8885 	 * 0:20 MHz, 1:40 MHz, 2:80 MHz, 3:160 MHz
   8886 	 */
   8887 	QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_WIDTH,
   8888 	/* Array of channel/band width */
   8889 	QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_INFO,
   8890 	/* IPv6 address used by NDP (in network byte order), 16 bytes array.
   8891 	 * This attribute is used and optional for ndp request, ndp response,
   8892 	 * ndp indication, and ndp confirm.
   8893 	 */
   8894 	QCA_WLAN_VENDOR_ATTR_NDP_IPV6_ADDR = 27,
   8895 	/* Unsigned 16-bit value indicating transport port used by NDP.
   8896 	 * This attribute is used and optional for ndp response, ndp indication,
   8897 	 * and ndp confirm.
   8898 	 */
   8899 	QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PORT = 28,
   8900 	/* Unsigned 8-bit value indicating protocol used by NDP and assigned by
   8901 	 * the Internet Assigned Numbers Authority (IANA) as per:
   8902 	 * https://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml
   8903 	 * This attribute is used and optional for ndp response, ndp indication,
   8904 	 * and ndp confirm.
   8905 	 */
   8906 	QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PROTOCOL = 29,
   8907 	/* Unsigned 8-bit value indicating if NDP remote peer supports NAN NDPE.
   8908 	 * 1:support 0:not support
   8909 	 */
   8910 	QCA_WLAN_VENDOR_ATTR_PEER_NDPE_SUPPORT = 30,
   8911 	/* As per Wi-Fi Aware Specification v3.2 Service Id is the first
   8912 	 * 48 bits of the SHA-256 hash of the Service Name.
   8913 	 * A lower-case representation of the Service Name shall be used to
   8914 	 * calculate the Service ID.
   8915 	 * Array of u8: length is 6 bytes
   8916 	 * This attribute is used and optional for ndp indication.
   8917 	 */
   8918 	QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_ID = 31,
   8919 	/* Unsigned 8-bit value for Cipher Suite capabilities.
   8920 	 * u8 attribute.
   8921 	 * This attribute is used and optional in ndp request, ndp response,
   8922 	 * ndp indication, and ndp confirm.
   8923 	 * This attribute is used to indicate the Capabilities field of Cipher
   8924 	 * Suite Information attribute (CSIA) of NDP frames as defined in
   8925 	 * Wi-Fi Aware Specification v4.0, 9.5.21.2, Table 122.
   8926 	 * Firmware can accept or ignore any of the capability bits.
   8927 	 */
   8928 	QCA_WLAN_VENDOR_ATTR_NDP_CSIA_CAPABILITIES = 32,
   8929 	/* Indicate that GTK protection is required for NDP.
   8930 	 * NLA_FLAG attribute.
   8931 	 * This attribute can be used in ndp request, ndp response, ndp
   8932 	 * indication, and ndp confirm.
   8933 	 * GTK protection required is indicated in the NDPE attribute of NAN
   8934 	 * action frame (NAF) during NDP negotiation as defined in
   8935 	 * Wi-Fi Aware Specification v4.0, 9.5.16.2.
   8936 	 * If the device and peer supports GTKSA and if GTK protection required
   8937 	 * bit is set in NDPE IE, devices will share GTK to each other in SKDA
   8938 	 * of Data Path Security Confirm and Data Path Security Install frames
   8939 	 * of NDP negotiation to send and receive protected group addressed data
   8940 	 * frames from each other.
   8941 	 */
   8942 	QCA_WLAN_VENDOR_ATTR_NDP_GTK_REQUIRED = 33,
   8943 
   8944 	/* keep last */
   8945 	QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_AFTER_LAST,
   8946 	QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_MAX =
   8947 		QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_AFTER_LAST - 1,
   8948 };
   8949 
   8950 enum qca_wlan_ndp_sub_cmd {
   8951 	QCA_WLAN_VENDOR_ATTR_NDP_INVALID = 0,
   8952 	/* Command to create a NAN data path interface.
   8953 	 * This command was initially designed to both create and start a NAN
   8954 	 * data path interface. However, changes to Linux 5.12 no longer allow
   8955 	 * interface creation via vendor commands. When the driver advertises
   8956 	 * QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI
   8957 	 * userspace must explicitly first create the interface using
   8958 	 * NL80211_CMD_NEW_INTERFACE before subsequently invoking this command
   8959 	 * to start the interface.
   8960 	 */
   8961 	QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_CREATE = 1,
   8962 	/* Command to delete a NAN data path interface.
   8963 	 * This command was initially designed to both stop and delete a NAN
   8964 	 * data path interface. However, changes to Linux 5.12 no longer allow
   8965 	 * interface deletion via vendor commands. When the driver advertises
   8966 	 * QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI
   8967 	 * userspace must explicitly delete the interface using
   8968 	 * NL80211_CMD_DEL_INTERFACE after calling this command.
   8969 	 */
   8970 	QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_DELETE = 2,
   8971 	/* Command to initiate a NAN data path session */
   8972 	QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_REQUEST = 3,
   8973 	/* Command to notify if the NAN data path session was sent */
   8974 	QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_RESPONSE = 4,
   8975 	/* Command to respond to NAN data path session */
   8976 	QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_REQUEST = 5,
   8977 	/* Command to notify on the responder about the response */
   8978 	QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_RESPONSE = 6,
   8979 	/* Command to initiate a NAN data path end */
   8980 	QCA_WLAN_VENDOR_ATTR_NDP_END_REQUEST = 7,
   8981 	/* Command to notify the if end request was sent */
   8982 	QCA_WLAN_VENDOR_ATTR_NDP_END_RESPONSE = 8,
   8983 	/* Command to notify the peer about the end request */
   8984 	QCA_WLAN_VENDOR_ATTR_NDP_REQUEST_IND = 9,
   8985 	/* Command to confirm the NAN data path session is complete */
   8986 	QCA_WLAN_VENDOR_ATTR_NDP_CONFIRM_IND = 10,
   8987 	/* Command to indicate the peer about the end request being received */
   8988 	QCA_WLAN_VENDOR_ATTR_NDP_END_IND = 11,
   8989 	/* Command to indicate the peer of schedule update */
   8990 	QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_IND = 12
   8991 };
   8992 
   8993 /**
   8994  * enum qca_wlan_vendor_attr_nd_offload - Used by the vendor command
   8995  * QCA_NL80211_VENDOR_SUBCMD_ND_OFFLOAD.
   8996  */
   8997 enum qca_wlan_vendor_attr_nd_offload {
   8998 	QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_INVALID = 0,
   8999 	/* Flag to set Neighbour Discovery offload */
   9000 	QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_FLAG,
   9001 	/* Keep last */
   9002 	QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_AFTER_LAST,
   9003 	QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_MAX =
   9004 		QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_AFTER_LAST - 1,
   9005 };
   9006 
   9007 /**
   9008  * enum packet_filter_sub_cmd - Packet filter sub commands
   9009  */
   9010 enum packet_filter_sub_cmd {
   9011 	/**
   9012 	 * Write packet filter program and/or data. The driver/firmware should
   9013 	 * disable APF before writing into local buffer and re-enable APF after
   9014 	 * writing is done.
   9015 	 */
   9016 	QCA_WLAN_SET_PACKET_FILTER = 1,
   9017 	/* Get packet filter feature capabilities from driver */
   9018 	QCA_WLAN_GET_PACKET_FILTER = 2,
   9019 	/**
   9020 	 * Write packet filter program and/or data. User space will send the
   9021 	 * %QCA_WLAN_DISABLE_PACKET_FILTER command before issuing this command
   9022 	 * and will send the %QCA_WLAN_ENABLE_PACKET_FILTER afterwards. The key
   9023 	 * difference from that %QCA_WLAN_SET_PACKET_FILTER is the control over
   9024 	 * enable/disable is given to user space with this command. Also,
   9025 	 * user space sends the length of program portion in the buffer within
   9026 	 * %QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROG_LENGTH.
   9027 	 */
   9028 	QCA_WLAN_WRITE_PACKET_FILTER = 3,
   9029 	/* Read packet filter program and/or data */
   9030 	QCA_WLAN_READ_PACKET_FILTER = 4,
   9031 	/* Enable APF feature */
   9032 	QCA_WLAN_ENABLE_PACKET_FILTER = 5,
   9033 	/* Disable APF feature */
   9034 	QCA_WLAN_DISABLE_PACKET_FILTER = 6,
   9035 };
   9036 
   9037 /**
   9038  * enum qca_wlan_vendor_attr_packet_filter - BPF control commands used by
   9039  * vendor QCA_NL80211_VENDOR_SUBCMD_PACKET_FILTER.
   9040  */
   9041 enum qca_wlan_vendor_attr_packet_filter {
   9042 	QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_INVALID = 0,
   9043 	/* Unsigned 32-bit enum passed using packet_filter_sub_cmd */
   9044 	QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_SUB_CMD,
   9045 	/* Unsigned 32-bit value indicating the packet filter version */
   9046 	QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_VERSION,
   9047 	/* Unsigned 32-bit value indicating the packet filter id */
   9048 	QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_ID,
   9049 	/**
   9050 	 * Unsigned 32-bit value indicating the packet filter size including
   9051 	 * program + data.
   9052 	 */
   9053 	QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_SIZE,
   9054 	/* Unsigned 32-bit value indicating the packet filter current offset */
   9055 	QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_CURRENT_OFFSET,
   9056 	/* Program and/or data in bytes */
   9057 	QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROGRAM,
   9058 	/* Unsigned 32-bit value of the length of the program section in packet
   9059 	 * filter buffer.
   9060 	 */
   9061 	QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROG_LENGTH = 7,
   9062 
   9063 	/* keep last */
   9064 	QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_AFTER_LAST,
   9065 	QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_MAX =
   9066 	QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_AFTER_LAST - 1,
   9067 };
   9068 
   9069 /**
   9070  * enum qca_wlan_vendor_drv_info - WLAN driver info used by vendor command
   9071  * QCA_NL80211_VENDOR_SUBCMD_GET_BUS_SIZE.
   9072  */
   9073 enum qca_wlan_vendor_drv_info {
   9074 	QCA_WLAN_VENDOR_ATTR_DRV_INFO_INVALID = 0,
   9075 	/* Maximum Message size info between firmware & HOST
   9076 	 * Unsigned 32-bit value
   9077 	 */
   9078 	QCA_WLAN_VENDOR_ATTR_DRV_INFO_BUS_SIZE,
   9079 	/* keep last */
   9080 	QCA_WLAN_VENDOR_ATTR_DRV_INFO_AFTER_LAST,
   9081 	QCA_WLAN_VENDOR_ATTR_DRV_INFO_MAX =
   9082 		QCA_WLAN_VENDOR_ATTR_DRV_INFO_AFTER_LAST - 1,
   9083 };
   9084 
   9085 /**
   9086  * enum qca_wlan_vendor_attr_wake_stats - Wake lock stats used by vendor
   9087  * command QCA_NL80211_VENDOR_SUBCMD_GET_WAKE_REASON_STATS.
   9088  */
   9089 enum qca_wlan_vendor_attr_wake_stats {
   9090 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_INVALID = 0,
   9091 	/* Unsigned 32-bit value indicating the total count of wake event */
   9092 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_CMD_EVENT_WAKE,
   9093 	/* Array of individual wake count, each index representing wake reason
   9094 	 */
   9095 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_CMD_EVENT_WAKE_CNT_PTR,
   9096 	/* Unsigned 32-bit value representing wake count array */
   9097 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_CMD_EVENT_WAKE_CNT_SZ,
   9098 	/* Unsigned 32-bit total wake count value of driver/fw */
   9099 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_DRIVER_FW_LOCAL_WAKE,
   9100 	/* Array of wake stats of driver/fw */
   9101 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_DRIVER_FW_LOCAL_WAKE_CNT_PTR,
   9102 	/* Unsigned 32-bit total wake count value of driver/fw */
   9103 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_DRIVER_FW_LOCAL_WAKE_CNT_SZ,
   9104 	/* Unsigned 32-bit total wake count value of packets received */
   9105 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_RX_DATA_WAKE,
   9106 	/* Unsigned 32-bit wake count value unicast packets received */
   9107 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_UNICAST_CNT,
   9108 	/* Unsigned 32-bit wake count value multicast packets received */
   9109 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_MULTICAST_CNT,
   9110 	/* Unsigned 32-bit wake count value broadcast packets received */
   9111 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_BROADCAST_CNT,
   9112 	/* Unsigned 32-bit wake count value of ICMP packets */
   9113 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP_PKT,
   9114 	/* Unsigned 32-bit wake count value of ICMP6 packets */
   9115 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_PKT,
   9116 	/* Unsigned 32-bit value ICMP6 router advertisement */
   9117 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_RA,
   9118 	/* Unsigned 32-bit value ICMP6 neighbor advertisement */
   9119 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_NA,
   9120 	/* Unsigned 32-bit value ICMP6 neighbor solicitation */
   9121 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_NS,
   9122 	/* Unsigned 32-bit wake count value of receive side ICMP4 multicast */
   9123 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP4_RX_MULTICAST_CNT,
   9124 	/* Unsigned 32-bit wake count value of receive side ICMP6 multicast */
   9125 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_RX_MULTICAST_CNT,
   9126 	/* Unsigned 32-bit wake count value of receive side multicast */
   9127 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_OTHER_RX_MULTICAST_CNT,
   9128 	/* Unsigned 32-bit wake count value of a given RSSI breach */
   9129 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RSSI_BREACH_CNT,
   9130 	/* Unsigned 32-bit wake count value of low RSSI */
   9131 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_LOW_RSSI_CNT,
   9132 	/* Unsigned 32-bit value GSCAN count */
   9133 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_GSCAN_CNT,
   9134 	/* Unsigned 32-bit value PNO complete count */
   9135 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_PNO_COMPLETE_CNT,
   9136 	/* Unsigned 32-bit value PNO match count */
   9137 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_PNO_MATCH_CNT,
   9138 	/* keep last */
   9139 	QCA_WLAN_VENDOR_GET_WAKE_STATS_AFTER_LAST,
   9140 	QCA_WLAN_VENDOR_GET_WAKE_STATS_MAX =
   9141 		QCA_WLAN_VENDOR_GET_WAKE_STATS_AFTER_LAST - 1,
   9142 };
   9143 
   9144 /**
   9145  * enum qca_wlan_vendor_thermal_level - Defines various thermal levels
   9146  * configured by userspace to the driver/firmware.
   9147  * The values can be encapsulated in QCA_WLAN_VENDOR_ATTR_THERMAL_LEVEL or
   9148  * QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_LEVEL attribute.
   9149  * The driver/firmware takes actions requested by userspace such as throttling
   9150  * wifi TX etc. in order to mitigate high temperature.
   9151  *
   9152  * @QCA_WLAN_VENDOR_THERMAL_LEVEL_NONE: Stop/clear all throttling actions.
   9153  * @QCA_WLAN_VENDOR_THERMAL_LEVEL_LIGHT: Throttle TX lightly.
   9154  * @QCA_WLAN_VENDOR_THERMAL_LEVEL_MODERATE: Throttle TX moderately.
   9155  * @QCA_WLAN_VENDOR_THERMAL_LEVEL_SEVERE: Throttle TX severely.
   9156  * @QCA_WLAN_VENDOR_THERMAL_LEVEL_CRITICAL: Critical thermal level reached.
   9157  * @QCA_WLAN_VENDOR_THERMAL_LEVEL_EMERGENCY: Emergency thermal level reached.
   9158  */
   9159 enum qca_wlan_vendor_thermal_level {
   9160 	QCA_WLAN_VENDOR_THERMAL_LEVEL_NONE = 0,
   9161 	QCA_WLAN_VENDOR_THERMAL_LEVEL_LIGHT = 1,
   9162 	QCA_WLAN_VENDOR_THERMAL_LEVEL_MODERATE = 2,
   9163 	QCA_WLAN_VENDOR_THERMAL_LEVEL_SEVERE = 3,
   9164 	QCA_WLAN_VENDOR_THERMAL_LEVEL_CRITICAL = 4,
   9165 	QCA_WLAN_VENDOR_THERMAL_LEVEL_EMERGENCY = 5,
   9166 };
   9167 
   9168 /**
   9169  * enum qca_wlan_vendor_attr_thermal_cmd - Vendor subcmd attributes to set
   9170  * cmd value. Used for NL attributes for data used by
   9171  * QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD sub command.
   9172  */
   9173 enum qca_wlan_vendor_attr_thermal_cmd {
   9174 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_INVALID = 0,
   9175 	/* The value of command, driver will implement different operations
   9176 	 * according to this value. It uses values defined in
   9177 	 * enum qca_wlan_vendor_attr_thermal_cmd_type.
   9178 	 * u32 attribute.
   9179 	 */
   9180 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_VALUE = 1,
   9181 	/* Userspace uses this attribute to configure thermal level to the
   9182 	 * driver/firmware, or get thermal level from the driver/firmware.
   9183 	 * Used in request or response, u32 attribute,
   9184 	 * possible values are defined in enum qca_wlan_vendor_thermal_level.
   9185 	 */
   9186 	QCA_WLAN_VENDOR_ATTR_THERMAL_LEVEL = 2,
   9187 	/* Userspace uses this attribute to configure the time in which the
   9188 	 * driver/firmware should complete applying settings it received from
   9189 	 * userspace with QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SET_LEVEL
   9190 	 * command type. Used in request, u32 attribute, value is in
   9191 	 * milliseconds. A value of zero indicates to apply the settings
   9192 	 * immediately. The driver/firmware can delay applying the configured
   9193 	 * thermal settings within the time specified in this attribute if
   9194 	 * there is any critical ongoing operation.
   9195 	 */
   9196 	QCA_WLAN_VENDOR_ATTR_THERMAL_COMPLETION_WINDOW = 3,
   9197 	/* Nested attribute, the driver/firmware uses this attribute to report
   9198 	 * thermal statistics of different thermal levels to userspace when
   9199 	 * requested using the
   9200 	 * QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_THERMAL_STATS command
   9201 	 * type. This attribute contains a nested array of records of thermal
   9202 	 * statistics of multiple levels. The attributes used inside this nested
   9203 	 * attribute are defined in enum qca_wlan_vendor_attr_thermal_stats.
   9204 	 */
   9205 	QCA_WLAN_VENDOR_ATTR_THERMAL_STATS = 4,
   9206 
   9207 	/* keep last */
   9208 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_AFTER_LAST,
   9209 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_MAX =
   9210 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_AFTER_LAST - 1
   9211 };
   9212 
   9213 /**
   9214  * qca_wlan_vendor_attr_thermal_cmd_type: Attribute values for
   9215  * QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_VALUE to the vendor subcmd
   9216  * QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD. This represents the
   9217  * thermal command types sent to driver.
   9218  * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_PARAMS: Request to
   9219  * get thermal shutdown configuration parameters for display. Parameters
   9220  * responded from driver are defined in
   9221  * enum qca_wlan_vendor_attr_get_thermal_params_rsp.
   9222  * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE: Request to
   9223  * get temperature. Host should respond with a temperature data. It is defined
   9224  * in enum qca_wlan_vendor_attr_thermal_get_temperature.
   9225  * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SUSPEND: Request to execute thermal
   9226  * suspend action.
   9227  * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_RESUME: Request to execute thermal
   9228  * resume action.
   9229  * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SET_LEVEL: Configure thermal level to
   9230  * the driver/firmware.
   9231  * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_LEVEL: Request to get the current
   9232  * thermal level from the driver/firmware. The driver should respond with a
   9233  * thermal level defined in enum qca_wlan_vendor_thermal_level.
   9234  * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_THERMAL_STATS: Request to get the
   9235  * current thermal statistics from the driver/firmware. The driver should
   9236  * respond with statistics of all thermal levels encapsulated in the attribute
   9237  * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS.
   9238  * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_CLEAR_THERMAL_STATS: Request to clear
   9239  * the current thermal statistics for all thermal levels maintained in the
   9240  * driver/firmware and start counting from zero again.
   9241  */
   9242 enum qca_wlan_vendor_attr_thermal_cmd_type {
   9243 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_PARAMS,
   9244 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE,
   9245 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SUSPEND,
   9246 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_RESUME,
   9247 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SET_LEVEL,
   9248 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_LEVEL,
   9249 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_THERMAL_STATS,
   9250 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_CLEAR_THERMAL_STATS,
   9251 };
   9252 
   9253 /**
   9254  * enum qca_wlan_vendor_attr_thermal_get_temperature - vendor subcmd attributes
   9255  * to get chip temperature by user.
   9256  * enum values are used for NL attributes for data used by
   9257  * QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE command for data used
   9258  * by QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD sub command.
   9259  */
   9260 enum qca_wlan_vendor_attr_thermal_get_temperature {
   9261 	QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_INVALID = 0,
   9262 	/* Temperature value (degree Celsius) from driver.
   9263 	 * u32 attribute.
   9264 	 */
   9265 	QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_DATA,
   9266 
   9267 	/* keep last */
   9268 	QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_AFTER_LAST,
   9269 	QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_MAX =
   9270 	QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_AFTER_LAST - 1,
   9271 };
   9272 
   9273 /**
   9274  * enum qca_wlan_vendor_attr_get_thermal_params_rsp - vendor subcmd attributes
   9275  * to get configuration parameters of thermal shutdown feature. Enum values are
   9276  * used by QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_PARAMS command for data
   9277  * used by QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD sub command.
   9278  */
   9279 enum qca_wlan_vendor_attr_get_thermal_params_rsp {
   9280 	QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_INVALID = 0,
   9281 	/* Indicate if the thermal shutdown feature is enabled.
   9282 	 * NLA_FLAG attribute.
   9283 	 */
   9284 	QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_SHUTDOWN_EN,
   9285 	/* Indicate if the auto mode is enabled.
   9286 	 * Enable: Driver triggers the suspend/resume action.
   9287 	 * Disable: User space triggers the suspend/resume action.
   9288 	 * NLA_FLAG attribute.
   9289 	 */
   9290 	QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_SHUTDOWN_AUTO_EN,
   9291 	/* Thermal resume threshold (degree Celsius). Issue the resume command
   9292 	 * if the temperature value is lower than this threshold.
   9293 	 * u16 attribute.
   9294 	 */
   9295 	QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_RESUME_THRESH,
   9296 	/* Thermal warning threshold (degree Celsius). FW reports temperature
   9297 	 * to driver if it's higher than this threshold.
   9298 	 * u16 attribute.
   9299 	 */
   9300 	QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_WARNING_THRESH,
   9301 	/* Thermal suspend threshold (degree Celsius). Issue the suspend command
   9302 	 * if the temperature value is higher than this threshold.
   9303 	 * u16 attribute.
   9304 	 */
   9305 	QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_SUSPEND_THRESH,
   9306 	/* FW reports temperature data periodically at this interval (ms).
   9307 	 * u16 attribute.
   9308 	 */
   9309 	QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_SAMPLE_RATE,
   9310 
   9311 	/* keep last */
   9312 	QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_AFTER_LAST,
   9313 	QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_MAX =
   9314 	QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_AFTER_LAST - 1,
   9315 };
   9316 
   9317 /**
   9318  * enum qca_wlan_vendor_attr_thermal_event - vendor subcmd attributes to
   9319  * report thermal events from driver to user space.
   9320  * enum values are used for NL attributes for data used by
   9321  * QCA_NL80211_VENDOR_SUBCMD_THERMAL_EVENT sub command.
   9322  */
   9323 enum qca_wlan_vendor_attr_thermal_event {
   9324 	QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_INVALID = 0,
   9325 	/* Temperature value (degree Celsius) from driver.
   9326 	 * u32 attribute.
   9327 	 */
   9328 	QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_TEMPERATURE,
   9329 	/* Indication of resume completion from power save mode.
   9330 	 * NLA_FLAG attribute.
   9331 	 */
   9332 	QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_RESUME_COMPLETE,
   9333 	/* Thermal level from the driver.
   9334 	 * u32 attribute. Possible values are defined in
   9335 	 * enum qca_wlan_vendor_thermal_level.
   9336 	 */
   9337 	QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_LEVEL = 3,
   9338 
   9339 	/* keep last */
   9340 	QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_AFTER_LAST,
   9341 	QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_MAX =
   9342 	QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_AFTER_LAST - 1,
   9343 };
   9344 
   9345 /**
   9346  * enum qca_wlan_vendor_attr_thermal_stats - vendor subcmd attributes
   9347  * to get thermal status from the driver/firmware.
   9348  * enum values are used for NL attributes encapsulated inside the
   9349  * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS nested attribute.
   9350  *
   9351  * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MIN_TEMPERATURE: Minimum temperature
   9352  * of a thermal level in Celsius. u32 size.
   9353  * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MAX_TEMPERATURE: Maximum temperature
   9354  * of a thermal level in Celsius. u32 size.
   9355  * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_DWELL_TIME: The total time spent on each
   9356  * thermal level in milliseconds. u32 size.
   9357  * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_TEMP_LEVEL_COUNTER: Indicates the number
   9358  * of times the temperature crossed into the temperature range defined by the
   9359  * thermal level from both higher and lower directions. u32 size.
   9360  */
   9361 enum qca_wlan_vendor_attr_thermal_stats {
   9362 	QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_INVALID = 0,
   9363 	QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MIN_TEMPERATURE,
   9364 	QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MAX_TEMPERATURE,
   9365 	QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_DWELL_TIME,
   9366 	QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_TEMP_LEVEL_COUNTER,
   9367 
   9368 	/* keep last */
   9369 	QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_AFTER_LAST,
   9370 	QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MAX =
   9371 	QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_AFTER_LAST - 1,
   9372 };
   9373 
   9374 /**
   9375  * enum he_fragmentation_val - HE fragmentation support values
   9376  * Indicates level of dynamic fragmentation that is supported by
   9377  * a STA as a recipient.
   9378  * HE fragmentation values are defined in IEEE P802.11ax/D2.0, 9.4.2.237.2
   9379  * (HE MAC Capabilities Information field) and are used in HE Capabilities
   9380  * element to advertise the support. These values are validated in the driver
   9381  * to check the device capability and advertised in the HE Capabilities
   9382  * element. These values are used to configure testbed device to allow the
   9383  * advertised hardware capabilities to be downgraded for testing purposes.
   9384  *
   9385  * @HE_FRAG_DISABLE: no support for dynamic fragmentation
   9386  * @HE_FRAG_LEVEL1: support for dynamic fragments that are
   9387  *	contained within an MPDU or S-MPDU, no support for dynamic fragments
   9388  *	within an A-MPDU that is not an S-MPDU.
   9389  * @HE_FRAG_LEVEL2: support for dynamic fragments that are
   9390  *	contained within an MPDU or S-MPDU and support for up to one dynamic
   9391  *	fragment for each MSDU, each A-MSDU if supported by the recipient, and
   9392  *	each MMPDU within an A-MPDU or multi-TID A-MPDU that is not an
   9393  *	MPDU or S-MPDU.
   9394  * @HE_FRAG_LEVEL3: support for dynamic fragments that are
   9395  *	contained within an MPDU or S-MPDU and support for multiple dynamic
   9396  *	fragments for each MSDU and for each A-MSDU if supported by the
   9397  *	recipient within an A-MPDU or multi-TID AMPDU and up to one dynamic
   9398  *	fragment for each MMPDU in a multi-TID A-MPDU that is not an S-MPDU.
   9399  */
   9400 enum he_fragmentation_val {
   9401 	HE_FRAG_DISABLE,
   9402 	HE_FRAG_LEVEL1,
   9403 	HE_FRAG_LEVEL2,
   9404 	HE_FRAG_LEVEL3,
   9405 };
   9406 
   9407 /**
   9408  * enum he_mcs_config - HE MCS support configuration
   9409  *
   9410  * Configures the HE Tx/Rx MCS map in HE capability IE for given bandwidth.
   9411  * These values are used in driver to configure the HE MCS map to advertise
   9412  * Tx/Rx MCS map in HE capability and these values are applied for all the
   9413  * streams supported by the device. To configure MCS for different bandwidths,
   9414  * vendor command needs to be sent using this attribute with appropriate value.
   9415  * For example, to configure HE_80_MCS_0_7, send vendor command using HE MCS
   9416  * attribute with HE_80_MCS0_7. And to configure HE MCS for HE_160_MCS0_11
   9417  * send this command using HE MCS config attribute with value HE_160_MCS0_11.
   9418  * These values are used to configure testbed device to allow the advertised
   9419  * hardware capabilities to be downgraded for testing purposes. The enum values
   9420  * are defined such that BIT[1:0] indicates the MCS map value. Values 3,7 and
   9421  * 11 are not used as BIT[1:0] value is 3 which is used to disable MCS map.
   9422  * These values are validated in the driver before setting the MCS map and
   9423  * driver returns error if the input is other than these enum values.
   9424  *
   9425  * @HE_80_MCS0_7: support for HE 80/40/20 MHz MCS 0 to 7
   9426  * @HE_80_MCS0_9: support for HE 80/40/20 MHz MCS 0 to 9
   9427  * @HE_80_MCS0_11: support for HE 80/40/20 MHz MCS 0 to 11
   9428  * @HE_160_MCS0_7: support for HE 160 MHz MCS 0 to 7
   9429  * @HE_160_MCS0_9: support for HE 160 MHz MCS 0 to 9
   9430  * @HE_160_MCS0_11: support for HE 160 MHz MCS 0 to 11
   9431  * @HE_80P80_MCS0_7: support for HE 80p80 MHz MCS 0 to 7
   9432  * @HE_80P80_MCS0_9: support for HE 80p80 MHz MCS 0 to 9
   9433  * @HE_80P80_MCS0_11: support for HE 80p80 MHz MCS 0 to 11
   9434  */
   9435 enum he_mcs_config {
   9436 	HE_80_MCS0_7 = 0,
   9437 	HE_80_MCS0_9 = 1,
   9438 	HE_80_MCS0_11 = 2,
   9439 	HE_160_MCS0_7 = 4,
   9440 	HE_160_MCS0_9 = 5,
   9441 	HE_160_MCS0_11 = 6,
   9442 	HE_80P80_MCS0_7 = 8,
   9443 	HE_80P80_MCS0_9 = 9,
   9444 	HE_80P80_MCS0_11 = 10,
   9445 };
   9446 
   9447 /**
   9448  * enum qca_wlan_ba_session_config - BA session configuration
   9449  *
   9450  * Indicates the configuration values for BA session configuration attribute.
   9451  *
   9452  * @QCA_WLAN_ADD_BA: Establish a new BA session with given configuration.
   9453  * @QCA_WLAN_DELETE_BA: Delete the existing BA session for given TID.
   9454  */
   9455 enum qca_wlan_ba_session_config {
   9456 	QCA_WLAN_ADD_BA = 1,
   9457 	QCA_WLAN_DELETE_BA = 2,
   9458 };
   9459 
   9460 /**
   9461  * enum qca_wlan_ac_type - Access category type
   9462  *
   9463  * Indicates the access category type value.
   9464  *
   9465  * @QCA_WLAN_AC_BE: BE access category
   9466  * @QCA_WLAN_AC_BK: BK access category
   9467  * @QCA_WLAN_AC_VI: VI access category
   9468  * @QCA_WLAN_AC_VO: VO access category
   9469  * @QCA_WLAN_AC_ALL: All ACs
   9470  */
   9471 enum qca_wlan_ac_type {
   9472 	QCA_WLAN_AC_BE = 0,
   9473 	QCA_WLAN_AC_BK = 1,
   9474 	QCA_WLAN_AC_VI = 2,
   9475 	QCA_WLAN_AC_VO = 3,
   9476 	QCA_WLAN_AC_ALL = 4,
   9477 };
   9478 
   9479 /**
   9480  * enum qca_wlan_he_ltf_cfg - HE LTF configuration
   9481  *
   9482  * Indicates the HE LTF configuration value.
   9483  *
   9484  * @QCA_WLAN_HE_LTF_AUTO: HE-LTF is automatically set to the mandatory HE-LTF,
   9485  * based on the GI setting
   9486  * @QCA_WLAN_HE_LTF_1X: 1X HE LTF is 3.2us LTF
   9487  * @QCA_WLAN_HE_LTF_2X: 2X HE LTF is 6.4us LTF
   9488  * @QCA_WLAN_HE_LTF_4X: 4X HE LTF is 12.8us LTF
   9489  */
   9490 enum qca_wlan_he_ltf_cfg {
   9491 	QCA_WLAN_HE_LTF_AUTO = 0,
   9492 	QCA_WLAN_HE_LTF_1X = 1,
   9493 	QCA_WLAN_HE_LTF_2X = 2,
   9494 	QCA_WLAN_HE_LTF_4X = 3,
   9495 };
   9496 
   9497 /**
   9498  * enum qca_wlan_he_mac_padding_dur - HE trigger frame MAC padding duration
   9499  *
   9500  * Indicates the HE trigger frame MAC padding duration value.
   9501  *
   9502  * @QCA_WLAN_HE_NO_ADDITIONAL_PROCESS_TIME: no additional time required to
   9503  * process the trigger frame.
   9504  * @QCA_WLAN_HE_8US_OF_PROCESS_TIME: indicates the 8us of processing time for
   9505  * trigger frame.
   9506  * @QCA_WLAN_HE_16US_OF_PROCESS_TIME: indicates the 16us of processing time for
   9507  * trigger frame.
   9508  */
   9509 enum qca_wlan_he_mac_padding_dur {
   9510 	QCA_WLAN_HE_NO_ADDITIONAL_PROCESS_TIME = 0,
   9511 	QCA_WLAN_HE_8US_OF_PROCESS_TIME = 1,
   9512 	QCA_WLAN_HE_16US_OF_PROCESS_TIME = 2,
   9513 };
   9514 
   9515 /**
   9516  * enum qca_wlan_he_om_ctrl_ch_bw - HE OM control field BW configuration
   9517  *
   9518  * Indicates the HE Operating mode control channel width setting value.
   9519  *
   9520  * @QCA_WLAN_HE_OM_CTRL_BW_20M: Primary 20 MHz
   9521  * @QCA_WLAN_HE_OM_CTRL_BW_40M: Primary 40 MHz
   9522  * @QCA_WLAN_HE_OM_CTRL_BW_80M: Primary 80 MHz
   9523  * @QCA_WLAN_HE_OM_CTRL_BW_160M: 160 MHz and 80+80 MHz
   9524  */
   9525 enum qca_wlan_he_om_ctrl_ch_bw {
   9526 	QCA_WLAN_HE_OM_CTRL_BW_20M = 0,
   9527 	QCA_WLAN_HE_OM_CTRL_BW_40M = 1,
   9528 	QCA_WLAN_HE_OM_CTRL_BW_80M = 2,
   9529 	QCA_WLAN_HE_OM_CTRL_BW_160M = 3,
   9530 };
   9531 
   9532 /**
   9533  * enum qca_wlan_keep_alive_data_type - Keep alive data type configuration
   9534  *
   9535  * Indicates the frame types to use for keep alive data.
   9536  *
   9537  * @QCA_WLAN_KEEP_ALIVE_DEFAULT: Driver default type used for keep alive.
   9538  * @QCA_WLAN_KEEP_ALIVE_DATA: Data frame type for keep alive.
   9539  * @QCA_WLAN_KEEP_ALIVE_MGMT: Management frame type for keep alive.
   9540  */
   9541 enum qca_wlan_keep_alive_data_type {
   9542 	QCA_WLAN_KEEP_ALIVE_DEFAULT = 0,
   9543 	QCA_WLAN_KEEP_ALIVE_DATA = 1,
   9544 	QCA_WLAN_KEEP_ALIVE_MGMT = 2,
   9545 };
   9546 
   9547 /**
   9548  * enum eht_mcs_config - EHT MCS support configuration
   9549  *
   9550  * Configures the EHT Tx/Rx MCS map in EHT Capability element.
   9551  * These values are used in the driver to configure the EHT MCS map to advertise
   9552  * Tx/Rx MCS map in EHT capability and these values are applied for all the
   9553  * streams supported by the device.
   9554  * @EHT_MCS0_7: EHT MCS 0 to 7 support
   9555  * @EHT_MCS0_9: EHT MCS 0 to 9 support
   9556  * @EHT_MCS0_11: EHT MCS 0 to 11 support
   9557  * @EHT_MCS0_13: EHT MCS 0 to 13 support
   9558  */
   9559 enum eht_mcs_config {
   9560 	EHT_MCS0_7 = 0,
   9561 	EHT_MCS0_9 = 1,
   9562 	EHT_MCS0_11 = 2,
   9563 	EHT_MCS0_13 = 3,
   9564 };
   9565 
   9566 /**
   9567  * enum qca_wlan_eht_mlo_mode: EHT MLO mode configuration.
   9568  * @QCA_WLAN_EHT_MODE_INVALID: Invalid.
   9569  * @QCA_WLAN_EHT_MLSR: Multi-link single radio mode
   9570  * @QCA_WLAN_EHT_EMLSR: Enhanced multi-link single radio mode.
   9571  * @QCA_WLAN_EHT_NON_STR_MLMR: Non simultaneous transmit and receive
   9572  * multi-link multi radio mode.
   9573  * @QCA_WLAN_EHT_STR_MLMR: Simultaneous transmit and receive
   9574  * multi-link multi radio mode.
   9575  */
   9576 enum qca_wlan_eht_mlo_mode {
   9577 	QCA_WLAN_EHT_MODE_INVALID = 0,
   9578 	QCA_WLAN_EHT_MLSR = 1,
   9579 	QCA_WLAN_EHT_EMLSR = 2,
   9580 	QCA_WLAN_EHT_NON_STR_MLMR = 3,
   9581 	QCA_WLAN_EHT_STR_MLMR = 4,
   9582 };
   9583 
   9584 /**
   9585  * enum qca_wlan_emlsr_mode: Enhanced Multi-link Single Radio mode configuration
   9586  * @QCA_WLAN_EMLSR_MODE_ENTER: Enter EMLSR mode
   9587  * @QCA_WLAN_EMLSR_MODE_EXIT: Exit EMLSR mode
   9588  */
   9589 enum qca_wlan_emlsr_mode {
   9590 	QCA_WLAN_EMLSR_MODE_ENTER = 0,
   9591 	QCA_WLAN_EMLSR_MODE_EXIT = 1,
   9592 };
   9593 
   9594 /**
   9595  * enum qca_wlan_ttlm_negotiation_support: TID-To-Link Mapping Negotiation
   9596  * support
   9597  * @QCA_WLAN_TTLM_DISABLE: TTLM disabled
   9598  * @QCA_WLAN_TTLM_SAME_LINK_SET: Mapping of all TIDs to the same link set,
   9599  * both DL and UL
   9600  * @QCA_WLAN_TTLM_SAME_DIFF_LINK_SET: Mapping of each TID to the same or
   9601  * different link set
   9602  */
   9603 enum qca_wlan_ttlm_negotiation_support {
   9604 	QCA_WLAN_TTLM_DISABLE = 0,
   9605 	QCA_WLAN_TTLM_SAME_LINK_SET = 1,
   9606 	QCA_WLAN_TTLM_SAME_DIFF_LINK_SET = 2,
   9607 };
   9608 
   9609 /**
   9610  * enum qca_coex_traffic_shaping_mode: Coex traffic shaping mode
   9611  * @QCA_COEX_TRAFFIC_SHAPING_MODE_DISABLE: Coex policies disabled
   9612  * @QCA_COEX_TRAFFIC_SHAPING_MODE_ENABLE: All coex policies enabled
   9613  */
   9614 enum qca_coex_traffic_shaping_mode {
   9615 	QCA_COEX_TRAFFIC_SHAPING_MODE_DISABLE = 0,
   9616 	QCA_COEX_TRAFFIC_SHAPING_MODE_ENABLE = 1,
   9617 };
   9618 
   9619 /**
   9620  * enum qca_wlan_vendor_attr_omi_tx: Represents attributes for HE and
   9621  * EHT operating mode control transmit request. These attributes are
   9622  * sent as part of QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OMI_TX and
   9623  * QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION.
   9624  *
   9625  * @QCA_WLAN_VENDOR_ATTR_HE_OMI_RX_NSS: Mandatory 8-bit unsigned value
   9626  * indicates the maximum number of spatial streams, NSS, that the STA
   9627  * supports in reception for PPDU bandwidths less than or equal to 80 MHz
   9628  * and is set to NSS - 1.
   9629  *
   9630  * @QCA_WLAN_VENDOR_ATTR_HE_OMI_CH_BW: Mandatory 8-bit unsigned value
   9631  * indicates the operating channel width supported by the STA for both
   9632  * reception and transmission. Uses enum qca_wlan_he_om_ctrl_ch_bw values.
   9633  *
   9634  * @QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DISABLE: Mandatory 8-bit unsigned value
   9635  * indicates the all trigger based UL MU operations by the STA.
   9636  * 0 - UL MU operations are enabled by the STA.
   9637  * 1 - All triggered UL MU transmissions are suspended by the STA.
   9638  *
   9639  * @QCA_WLAN_VENDOR_ATTR_HE_OMI_TX_NSTS: Mandatory 8-bit unsigned value
   9640  * indicates the maximum number of space-time streams, NSTS, that
   9641  * the STA supports in transmission and is set to NSTS - 1.
   9642  *
   9643  * @QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DATA_DISABLE: 8-bit unsigned value
   9644  * combined with the UL MU Disable subfield and the recipient's setting
   9645  * of the OM Control UL MU Data Disable RX Support subfield in the HE MAC
   9646  * capabilities to determine which HE TB PPDUs are possible by the
   9647  * STA to transmit.
   9648  * 0 - UL MU data operations are enabled by the STA.
   9649  * 1 - Determine which HE TB PPDU types are allowed by the STA if UL MU disable
   9650  * bit is not set, else UL MU Tx is suspended.
   9651  *
   9652  * @QCA_WLAN_VENDOR_ATTR_EHT_OMI_RX_NSS_EXTN: 8-bit unsigned value in the EHT OM
   9653  * Control subfield combined with the Rx NSS subfield in the OM Control subfield
   9654  * indicates NSS - 1, where NSS is the maximum number of spatial streams that
   9655  * STA supports in reception for PPDU bandwidths less than or equal to 80 MHz.
   9656  *
   9657  * @QCA_WLAN_VENDOR_ATTR_EHT_OMI_CH_BW_EXTN: 8-bit unsigned value indicates
   9658  * 320 MHz operating channel width supported by the EHT STA for both reception
   9659  * and transmission.
   9660  *
   9661  * @QCA_WLAN_VENDOR_ATTR_EHT_OMI_TX_NSS_EXTN: 8-bit unsigned value in the EHT OM
   9662  * Control subfield combined with the Tx NSTS subfield in OM Control subfield
   9663  * indicates NSTS - 1, where NSTS is the maximum number of space-time streams
   9664  * that the STA supports in transmission for PPDU bandwidths less than or equal
   9665  * to 80 MHz.
   9666  */
   9667 enum qca_wlan_vendor_attr_omi_tx {
   9668 	QCA_WLAN_VENDOR_ATTR_HE_OMI_INVALID = 0,
   9669 	QCA_WLAN_VENDOR_ATTR_HE_OMI_RX_NSS = 1,
   9670 	QCA_WLAN_VENDOR_ATTR_HE_OMI_CH_BW = 2,
   9671 	QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DISABLE = 3,
   9672 	QCA_WLAN_VENDOR_ATTR_HE_OMI_TX_NSTS = 4,
   9673 	QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DATA_DISABLE = 5,
   9674 	QCA_WLAN_VENDOR_ATTR_EHT_OMI_RX_NSS_EXTN = 6,
   9675 	QCA_WLAN_VENDOR_ATTR_EHT_OMI_CH_BW_EXTN = 7,
   9676 	QCA_WLAN_VENDOR_ATTR_EHT_OMI_TX_NSS_EXTN = 8,
   9677 
   9678 	/* keep last */
   9679 	QCA_WLAN_VENDOR_ATTR_OMI_AFTER_LAST,
   9680 	QCA_WLAN_VENDOR_ATTR_OMI_MAX =
   9681 	QCA_WLAN_VENDOR_ATTR_OMI_AFTER_LAST - 1,
   9682 };
   9683 
   9684 /* deprecated legacy names */
   9685 #define QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OMI_TX \
   9686 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OMI_TX
   9687 #define qca_wlan_vendor_attr_he_omi_tx \
   9688 	qca_wlan_vendor_attr_omi_tx
   9689 #define QCA_WLAN_VENDOR_ATTR_HE_OMI_AFTER_LAST \
   9690 	QCA_WLAN_VENDOR_ATTR_OMI_AFTER_LAST
   9691 #define QCA_WLAN_VENDOR_ATTR_HE_OMI_MAX \
   9692 	QCA_WLAN_VENDOR_ATTR_OMI_MAX
   9693 
   9694  /**
   9695   * enum qca_wlan_vendor_phy_mode - Different PHY modes
   9696   * These values are used with %QCA_WLAN_VENDOR_ATTR_CONFIG_PHY_MODE.
   9697   *
   9698   * @QCA_WLAN_VENDOR_PHY_MODE_AUTO: autoselect
   9699   * @QCA_WLAN_VENDOR_PHY_MODE_2G_AUTO: 2.4 GHz 802.11b/g/n/ax autoselect
   9700   * @QCA_WLAN_VENDOR_PHY_MODE_5G_AUTO: 5 GHz 802.11a/n/ac/ax autoselect
   9701   * @QCA_WLAN_VENDOR_PHY_MODE_11A: 5 GHz, OFDM
   9702   * @QCA_WLAN_VENDOR_PHY_MODE_11B: 2.4 GHz, CCK
   9703   * @QCA_WLAN_VENDOR_PHY_MODE_11G: 2.4 GHz, OFDM
   9704   * @QCA_WLAN_VENDOR_PHY_MODE_11AGN: Support 802.11n in both 2.4 GHz and 5 GHz
   9705   * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT20: 2.4 GHz, HT20
   9706   * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40PLUS: 2.4 GHz, HT40 (ext ch +1)
   9707   * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40MINUS: 2.4 GHz, HT40 (ext ch -1)
   9708   * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40: 2.4 GHz, Auto HT40
   9709   * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT20: 5 GHz, HT20
   9710   * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40PLUS: 5 GHz, HT40 (ext ch +1)
   9711   * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40MINUS: 5 GHz, HT40 (ext ch -1)
   9712   * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40: 5 GHz, Auto HT40
   9713   * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT20: 5 GHz, VHT20
   9714   * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40PLUS: 5 GHz, VHT40 (Ext ch +1)
   9715   * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40MINUS: 5 GHz VHT40 (Ext ch -1)
   9716   * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40: 5 GHz, VHT40
   9717   * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80: 5 GHz, VHT80
   9718   * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80P80: 5 GHz, VHT80+80
   9719   * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT160: 5 GHz, VHT160
   9720   * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE20: HE20
   9721   * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40: HE40
   9722   * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40PLUS: HE40 (ext ch +1)
   9723   * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40MINUS: HE40 (ext ch -1)
   9724   * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80: HE80
   9725   * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80P80: HE 80P80
   9726   * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE160: HE160
   9727   */
   9728 enum qca_wlan_vendor_phy_mode {
   9729 	QCA_WLAN_VENDOR_PHY_MODE_AUTO = 0,
   9730 	QCA_WLAN_VENDOR_PHY_MODE_2G_AUTO = 1,
   9731 	QCA_WLAN_VENDOR_PHY_MODE_5G_AUTO = 2,
   9732 	QCA_WLAN_VENDOR_PHY_MODE_11A = 3,
   9733 	QCA_WLAN_VENDOR_PHY_MODE_11B = 4,
   9734 	QCA_WLAN_VENDOR_PHY_MODE_11G = 5,
   9735 	QCA_WLAN_VENDOR_PHY_MODE_11AGN = 6,
   9736 	QCA_WLAN_VENDOR_PHY_MODE_11NG_HT20 = 7,
   9737 	QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40PLUS = 8,
   9738 	QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40MINUS = 9,
   9739 	QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40 = 10,
   9740 	QCA_WLAN_VENDOR_PHY_MODE_11NA_HT20 = 11,
   9741 	QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40PLUS = 12,
   9742 	QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40MINUS = 13,
   9743 	QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40 = 14,
   9744 	QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT20 = 15,
   9745 	QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40PLUS = 16,
   9746 	QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40MINUS = 17,
   9747 	QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40 = 18,
   9748 	QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80 = 19,
   9749 	QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80P80 = 20,
   9750 	QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT160 = 21,
   9751 	QCA_WLAN_VENDOR_PHY_MODE_11AX_HE20 = 22,
   9752 	QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40 = 23,
   9753 	QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40PLUS = 24,
   9754 	QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40MINUS = 25,
   9755 	QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80 = 26,
   9756 	QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80P80 = 27,
   9757 	QCA_WLAN_VENDOR_PHY_MODE_11AX_HE160 = 28,
   9758 };
   9759 
   9760 /* Attributes for data used by
   9761  * QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION
   9762  */
   9763 enum qca_wlan_vendor_attr_wifi_test_config {
   9764 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_INVALID = 0,
   9765 	/* 8-bit unsigned value to configure the driver to enable/disable
   9766 	 * WMM feature. This attribute is used to configure testbed device.
   9767 	 * 1-enable, 0-disable
   9768 	 */
   9769 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_WMM_ENABLE = 1,
   9770 
   9771 	/* 8-bit unsigned value to configure the driver to accept/reject
   9772 	 * the addba request from peer. This attribute is used to configure
   9773 	 * the testbed device.
   9774 	 * 1-accept addba, 0-reject addba
   9775 	 */
   9776 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ACCEPT_ADDBA_REQ = 2,
   9777 
   9778 	/* 8-bit unsigned value to configure the driver to send or not to
   9779 	 * send the addba request to peer.
   9780 	 * This attribute is used to configure the testbed device.
   9781 	 * 1-send addba, 0-do not send addba
   9782 	 */
   9783 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_SEND_ADDBA_REQ = 3,
   9784 
   9785 	/* 8-bit unsigned value to indicate the HE fragmentation support.
   9786 	 * Uses enum he_fragmentation_val values.
   9787 	 * This attribute is used to configure the testbed device to
   9788 	 * allow the advertised hardware capabilities to be downgraded
   9789 	 * for testing purposes.
   9790 	 */
   9791 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_FRAGMENTATION = 4,
   9792 
   9793 	/* 8-bit unsigned value to indicate the HE MCS support.
   9794 	 * Uses enum he_mcs_config values.
   9795 	 * This attribute is used to configure the testbed device to
   9796 	 * allow the advertised hardware capabilities to be downgraded
   9797 	 * for testing purposes.
   9798 	 */
   9799 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MCS = 5,
   9800 
   9801 	/* 8-bit unsigned value to configure the driver to allow or not to
   9802 	 * allow the connection with WEP/TKIP in HT/VHT/HE modes.
   9803 	 * This attribute is used to configure the testbed device.
   9804 	 * 1-allow WEP/TKIP in HT/VHT/HE, 0-do not allow WEP/TKIP.
   9805 	 */
   9806 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_WEP_TKIP_IN_HE = 6,
   9807 
   9808 	/* 8-bit unsigned value to configure the driver to add a
   9809 	 * new BA session or delete the existing BA session for
   9810 	 * given TID. ADDBA command uses the buffer size and TID
   9811 	 * configuration if user specifies the values else default
   9812 	 * value for buffer size is used for all TIDs if the TID
   9813 	 * also not specified. For DEL_BA command TID value is
   9814 	 * required to process the command.
   9815 	 * Uses enum qca_wlan_ba_session_config values.
   9816 	 * This attribute is used to configure the testbed device.
   9817 	 */
   9818 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ADD_DEL_BA_SESSION = 7,
   9819 
   9820 	/* 16-bit unsigned value to configure the buffer size in addba
   9821 	 * request and response frames.
   9822 	 * This attribute is used to configure the testbed device.
   9823 	 * The range of the value is 0 to 256.
   9824 	 */
   9825 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ADDBA_BUFF_SIZE = 8,
   9826 
   9827 	/* 8-bit unsigned value to configure the buffer size in addba
   9828 	 * request and response frames.
   9829 	 * This attribute is used to configure the testbed device.
   9830 	 */
   9831 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BA_TID = 9,
   9832 
   9833 	/* 8-bit unsigned value to configure the no ack policy.
   9834 	 * To configure no ack policy, access category value is
   9835 	 * required to process the command.
   9836 	 * This attribute is used to configure the testbed device.
   9837 	 * 1 - enable no ack, 0 - disable no ack.
   9838 	 */
   9839 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_NO_ACK = 10,
   9840 
   9841 	/* 8-bit unsigned value to configure the AC for no ack policy
   9842 	 * This attribute is used to configure the testbed device.
   9843 	 * Uses the enum qca_wlan_ac_type values.
   9844 	 */
   9845 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_NO_ACK_AC = 11,
   9846 
   9847 	/* 8-bit unsigned value to configure the HE LTF
   9848 	 * This attribute is used to configure the testbed device.
   9849 	 * Uses the enum qca_wlan_he_ltf_cfg values.
   9850 	 */
   9851 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_LTF = 12,
   9852 
   9853 	/* 8-bit unsigned value to configure the tx beamformee.
   9854 	 * This attribute is used to configure the testbed device.
   9855 	 * 1-enable, 0-disable.
   9856 	 */
   9857 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_TX_BEAMFORMEE = 13,
   9858 
   9859 	/* 8-bit unsigned value to configure the tx beamformee number
   9860 	 * of space-time streams.
   9861 	 * This attribute is used to configure the testbed device.
   9862 	 * The range of the value is 0 to 8.
   9863 	 */
   9864 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TX_BEAMFORMEE_NSTS = 14,
   9865 
   9866 	/* 8-bit unsigned value to configure the MU EDCA params for given AC
   9867 	 * This attribute is used to configure the testbed device.
   9868 	 * Uses the enum qca_wlan_ac_type values.
   9869 	 */
   9870 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_AC = 15,
   9871 
   9872 	/* 8-bit unsigned value to configure the MU EDCA AIFSN for given AC
   9873 	 * To configure MU EDCA AIFSN value, MU EDCA access category value
   9874 	 * is required to process the command.
   9875 	 * This attribute is used to configure the testbed device.
   9876 	 */
   9877 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_AIFSN = 16,
   9878 
   9879 	/* 8-bit unsigned value to configure the MU EDCA ECW min value for
   9880 	 * given AC.
   9881 	 * To configure MU EDCA ECW min value, MU EDCA access category value
   9882 	 * is required to process the command.
   9883 	 * This attribute is used to configure the testbed device.
   9884 	 */
   9885 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_ECWMIN = 17,
   9886 
   9887 	/* 8-bit unsigned value to configure the MU EDCA ECW max value for
   9888 	 * given AC.
   9889 	 * To configure MU EDCA ECW max value, MU EDCA access category value
   9890 	 * is required to process the command.
   9891 	 * This attribute is used to configure the testbed device.
   9892 	 */
   9893 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_ECWMAX = 18,
   9894 
   9895 	/* 8-bit unsigned value to configure the MU EDCA timer for given AC
   9896 	 * To configure MU EDCA timer value, MU EDCA access category value
   9897 	 * is required to process the command.
   9898 	 * This attribute is used to configure the testbed device.
   9899 	 */
   9900 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_TIMER = 19,
   9901 
   9902 	/* 8-bit unsigned value to configure the HE trigger frame MAC padding
   9903 	 * duration.
   9904 	 * This attribute is used to configure the testbed device.
   9905 	 * Uses the enum qca_wlan_he_mac_padding_dur values.
   9906 	 */
   9907 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MAC_PADDING_DUR = 20,
   9908 
   9909 	/* 8-bit unsigned value to override the MU EDCA params to defaults
   9910 	 * regardless of the AP beacon MU EDCA params. If it is enabled use
   9911 	 * the default values else use the MU EDCA params from AP beacon.
   9912 	 * This attribute is used to configure the testbed device.
   9913 	 * 1-enable, 0-disable.
   9914 	 */
   9915 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OVERRIDE_MU_EDCA = 21,
   9916 
   9917 	/* 8-bit unsigned value to configure the support for receiving
   9918 	 * an MPDU that contains an operating mode control subfield.
   9919 	 * This attribute is used to configure the testbed device.
   9920 	 * 1-enable, 0-disable.
   9921 	 */
   9922 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_SUPP = 22,
   9923 
   9924 	/* Nested attribute values required to setup the TWT session.
   9925 	 * enum qca_wlan_vendor_attr_twt_setup provides the necessary
   9926 	 * information to set up the session. It contains broadcast flags,
   9927 	 * set_up flags, trigger value, flow type, flow ID, wake interval
   9928 	 * exponent, protection, target wake time, wake duration, wake interval
   9929 	 * mantissa. These nested attributes are used to setup a host triggered
   9930 	 * TWT session.
   9931 	 */
   9932 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SETUP = 23,
   9933 
   9934 	/* This nested attribute is used to terminate the current TWT session.
   9935 	 * It does not currently carry any attributes.
   9936 	 */
   9937 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_TERMINATE = 24,
   9938 
   9939 	/* This nested attribute is used to suspend the current TWT session.
   9940 	 * It does not currently carry any attributes.
   9941 	 */
   9942 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SUSPEND = 25,
   9943 
   9944 	/* Nested attribute values to indicate the request for resume.
   9945 	 * This attribute is used to resume the TWT session.
   9946 	 * enum qca_wlan_vendor_attr_twt_resume provides the necessary
   9947 	 * parameters required to resume the TWT session.
   9948 	 */
   9949 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_RESUME = 26,
   9950 
   9951 	/* 8-bit unsigned value to set the HE operating mode control
   9952 	 * (OM CTRL) Channel Width subfield.
   9953 	 * The Channel Width subfield indicates the operating channel width
   9954 	 * supported by the STA for both reception and transmission.
   9955 	 * Uses the enum qca_wlan_he_om_ctrl_ch_bw values.
   9956 	 * This setting is cleared with the
   9957 	 * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG
   9958 	 * flag attribute to reset defaults.
   9959 	 * This attribute is used to configure the testbed device.
   9960 	 */
   9961 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_BW = 27,
   9962 
   9963 	/* 8-bit unsigned value to configure the number of spatial
   9964 	 * streams in HE operating mode control field.
   9965 	 * This setting is cleared with the
   9966 	 * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG
   9967 	 * flag attribute to reset defaults.
   9968 	 * This attribute is used to configure the testbed device.
   9969 	 */
   9970 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_NSS = 28,
   9971 
   9972 	/* Flag attribute to configure the UL MU disable bit in
   9973 	 * HE operating mode control field.
   9974 	 * This setting is cleared with the
   9975 	 * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG
   9976 	 * flag attribute to reset defaults.
   9977 	 * This attribute is used to configure the testbed device.
   9978 	 */
   9979 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_UL_MU_DISABLE = 29,
   9980 
   9981 	/* Flag attribute to clear the previously set HE operating mode
   9982 	 * control field configuration.
   9983 	 * This attribute is used to configure the testbed device to reset
   9984 	 * defaults to clear any previously set HE operating mode control
   9985 	 * field configuration.
   9986 	 */
   9987 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG = 30,
   9988 
   9989 	/* 8-bit unsigned value to configure HE single user PPDU
   9990 	 * transmission. By default this setting is disabled and it
   9991 	 * is disabled in the reset defaults of the device configuration.
   9992 	 * This attribute is used to configure the testbed device.
   9993 	 * 1-enable, 0-disable
   9994 	 */
   9995 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TX_SUPPDU = 31,
   9996 
   9997 	/* 8-bit unsigned value to configure action frame transmission
   9998 	 * in HE trigger based PPDU transmission.
   9999 	 * By default this setting is disabled and it is disabled in
   10000 	 * the reset defaults of the device configuration.
   10001 	 * This attribute is used to configure the testbed device.
   10002 	 * 1-enable, 0-disable
   10003 	 */
   10004 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_ACTION_TX_TB_PPDU = 32,
   10005 
   10006 	/* Nested attribute to indicate HE operating mode control field
   10007 	 * transmission. It contains operating mode control field Nss,
   10008 	 * channel bandwidth, Tx Nsts and UL MU disable attributes.
   10009 	 * These nested attributes are used to send HE operating mode control
   10010 	 * with configured values.
   10011 	 * Uses the enum qca_wlan_vendor_attr_omi_tx attributes.
   10012 	 * This attribute is used to configure the testbed device.
   10013 	 */
   10014 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OMI_TX = 33,
   10015 
   10016 	/* 8-bit unsigned value to configure +HTC_HE support to indicate the
   10017 	 * support for the reception of a frame that carries an HE variant
   10018 	 * HT Control field.
   10019 	 * This attribute is used to configure the testbed device.
   10020 	 * 1-enable, 0-disable
   10021 	 */
   10022 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_HTC_HE_SUPP = 34,
   10023 
   10024 	/* 8-bit unsigned value to configure VHT support in 2.4G band.
   10025 	 * This attribute is used to configure the testbed device.
   10026 	 * 1-enable, 0-disable
   10027 	 */
   10028 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_2G_VHT = 35,
   10029 
   10030 	/* 8-bit unsigned value to configure HE testbed defaults.
   10031 	 * This attribute is used to configure the testbed device.
   10032 	 * 1-set the device HE capabilities to testbed defaults.
   10033 	 * 0-reset the device HE capabilities to supported config.
   10034 	 */
   10035 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_SET_HE_TESTBED_DEFAULTS = 36,
   10036 
   10037 	/* 8-bit unsigned value to configure TWT request support.
   10038 	 * This attribute is used to configure the testbed device.
   10039 	 * 1-enable, 0-disable.
   10040 	 */
   10041 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TWT_REQ_SUPPORT = 37,
   10042 
   10043 	/* 8-bit unsigned value to configure protection for Management
   10044 	 * frames when PMF is enabled for the association.
   10045 	 * This attribute is used to configure the testbed device.
   10046 	 * 0-use the correct key, 1-use an incorrect key, 2-disable protection.
   10047 	 */
   10048 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_PMF_PROTECTION = 38,
   10049 
   10050 	/* Flag attribute to inject Disassociation frame to the connected AP.
   10051 	 * This attribute is used to configure the testbed device.
   10052 	 */
   10053 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_DISASSOC_TX = 39,
   10054 
   10055 	/* 8-bit unsigned value to configure an override for the RSNXE Used
   10056 	 * subfield in the MIC control field of the FTE in FT Reassociation
   10057 	 * Request frame.
   10058 	 * 0 - Default behavior, 1 - override with 1, 2 - override with 0.
   10059 	 * This attribute is used to configure the testbed device.
   10060 	 * This attribute can be configured only when STA is in associated state
   10061 	 * and the configuration is valid until the disconnection.
   10062 	 */
   10063 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FT_REASSOCREQ_RSNXE_USED = 40,
   10064 
   10065 	/* 8-bit unsigned value to configure the driver to ignore CSA (Channel
   10066 	 * Switch Announcement) when STA is in connected state.
   10067 	 * 0 - Default behavior, 1 - Ignore CSA.
   10068 	 * This attribute is used to configure the testbed device.
   10069 	 * This attribute can be configured only when STA is in associated state
   10070 	 * and the configuration is valid until the disconnection.
   10071 	 */
   10072 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_IGNORE_CSA = 41,
   10073 
   10074 	/* Nested attribute values required to configure OCI (Operating Channel
   10075 	 * Information). Attributes defined in enum
   10076 	 * qca_wlan_vendor_attr_oci_override are nested within this attribute.
   10077 	 * This attribute is used to configure the testbed device.
   10078 	 * This attribute can be configured only when STA is in associated state
   10079 	 * and the configuration is valid until the disconnection.
   10080 	 */
   10081 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OCI_OVERRIDE = 42,
   10082 
   10083 	/* 8-bit unsigned value to configure the driver/firmware to ignore SA
   10084 	 * Query timeout. If this configuration is enabled STA shall not send
   10085 	 * Deauthentication frmae when SA Query times out (mainly, after a
   10086 	 * channel switch when OCV is enabled).
   10087 	 * 0 - Default behavior, 1 - Ignore SA Query timeout.
   10088 	 * This attribute is used to configure the testbed device.
   10089 	 * This attribute can be configured only when STA is in associated state
   10090 	 * and the configuration is valid until the disconnection.
   10091 	 */
   10092 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_IGNORE_SA_QUERY_TIMEOUT = 43,
   10093 
   10094 	/* 8-bit unsigned value to configure the driver/firmware to start or
   10095 	 * stop transmitting FILS discovery frames.
   10096 	 * 0 - Stop transmitting FILS discovery frames
   10097 	 * 1 - Start transmitting FILS discovery frames
   10098 	 * This attribute is used to configure the testbed device.
   10099 	 * This attribute can be configured only in AP mode and the
   10100 	 * configuration is valid until AP restart.
   10101 	 */
   10102 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FILS_DISCOVERY_FRAMES_TX = 44,
   10103 
   10104 	/* 8-bit unsigned value to configure the driver/firmware to enable or
   10105 	 * disable full bandwidth UL MU-MIMO subfield in the HE PHY capabilities
   10106 	 * information field.
   10107 	 * 0 - Disable full bandwidth UL MU-MIMO subfield
   10108 	 * 1 - Enable full bandwidth UL MU-MIMO subfield
   10109 	 * This attribute is used to configure the testbed device.
   10110 	 */
   10111 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FULL_BW_UL_MU_MIMO = 45,
   10112 
   10113 	/* 16-bit unsigned value to configure the driver with a specific BSS
   10114 	 * max idle period to advertise in the BSS Max Idle Period element
   10115 	 * (IEEE Std 802.11-2016, 9.4.2.79) in (Re)Association Request frames.
   10116 	 * This attribute is used to configure the testbed device.
   10117 	 */
   10118 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BSS_MAX_IDLE_PERIOD = 46,
   10119 
   10120 	/* 8-bit unsigned value to configure the driver to use only RU 242 tone
   10121 	 * for data transmission.
   10122 	 * 0 - Default behavior, 1 - Configure RU 242 tone for data Tx.
   10123 	 * This attribute is used to configure the testbed device.
   10124 	 */
   10125 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_RU_242_TONE_TX = 47,
   10126 
   10127 	/* 8-bit unsigned value to configure the driver to disable data and
   10128 	 * management response frame transmission to test the BSS max idle
   10129 	 * feature.
   10130 	 * 0 - Default behavior, 1 - Disable data and management response Tx.
   10131 	 * This attribute is used to configure the testbed device.
   10132 	 */
   10133 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_DISABLE_DATA_MGMT_RSP_TX = 48,
   10134 
   10135 	/* 8-bit unsigned value to configure the driver/firmware to enable or
   10136 	 * disable Punctured Preamble Rx subfield in the HE PHY capabilities
   10137 	 * information field.
   10138 	 * 0 - Disable Punctured Preamble Rx subfield
   10139 	 * 1 - Enable Punctured Preamble Rx subfield
   10140 	 * This attribute is used to configure the testbed device.
   10141 	 */
   10142 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_PUNCTURED_PREAMBLE_RX = 49,
   10143 
   10144 	/* 8-bit unsigned value to configure the driver to ignore the SAE H2E
   10145 	 * requirement mismatch for 6 GHz connection.
   10146 	 * 0 - Default behavior, 1 - Ignore SAE H2E requirement mismatch.
   10147 	 * This attribute is used to configure the testbed device.
   10148 	 */
   10149 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_IGNORE_H2E_RSNXE = 50,
   10150 
   10151 	/* 8-bit unsigned value to configure the driver to allow 6 GHz
   10152 	 * connection with all security modes.
   10153 	 * 0 - Default behavior, 1 - Allow 6 GHz connection with all security
   10154 	 * modes.
   10155 	 * This attribute is used for testing purposes.
   10156 	 */
   10157 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_6GHZ_SECURITY_TEST_MODE = 51,
   10158 
   10159 	/* 8-bit unsigned value to configure the driver to transmit data with
   10160 	 * ER SU PPDU type.
   10161 	 *
   10162 	 * 0 - Default behavior, 1 - Enable ER SU PPDU type TX.
   10163 	 * This attribute is used for testing purposes.
   10164 	 */
   10165 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ER_SU_PPDU_TYPE = 52,
   10166 
   10167 	/* 8-bit unsigned value to configure the driver to use Data or
   10168 	 * Management frame type for keep alive data.
   10169 	 * Uses enum qca_wlan_keep_alive_data_type values.
   10170 	 *
   10171 	 * This attribute is used for testing purposes.
   10172 	 */
   10173 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_KEEP_ALIVE_FRAME_TYPE = 53,
   10174 
   10175 	/* 8-bit unsigned value to configure the driver to use scan request
   10176 	 * BSSID value in Probe Request frame RA(A1) during the scan. The
   10177 	 * driver saves this configuration and applies this setting to all user
   10178 	 * space scan requests until the setting is cleared. If this
   10179 	 * configuration is set, the driver uses the BSSID value from the scan
   10180 	 * request to set the RA(A1) in the Probe Request frames during the
   10181 	 * scan.
   10182 	 *
   10183 	 * 0 - Default behavior uses the broadcast RA in Probe Request frames.
   10184 	 * 1 - Uses the scan request BSSID in RA in Probe Request frames.
   10185 	 * This attribute is used for testing purposes.
   10186 	 */
   10187 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_USE_BSSID_IN_PROBE_REQ_RA = 54,
   10188 
   10189 	/* 8-bit unsigned value to configure the driver to enable/disable the
   10190 	 * BSS max idle period support.
   10191 	 *
   10192 	 * 0 - Disable the BSS max idle support.
   10193 	 * 1 - Enable the BSS max idle support.
   10194 	 * This attribute is used for testing purposes.
   10195 	 */
   10196 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BSS_MAX_IDLE_PERIOD_ENABLE = 55,
   10197 
   10198 	/* 8-bit unsigned value to configure the driver/firmware to enable or
   10199 	 * disable Rx control frame to MultiBSS subfield in the HE MAC
   10200 	 * capabilities information field.
   10201 	 * 0 - Disable Rx control frame to MultiBSS subfield
   10202 	 * 1 - Enable Rx control frame to MultiBSS subfield
   10203 	 * This attribute is used to configure the testbed device.
   10204 	 */
   10205 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_RX_CTRL_FRAME_TO_MBSS = 56,
   10206 
   10207 	/* 8-bit unsigned value to configure the driver/firmware to enable or
   10208 	 * disable Broadcast TWT support subfield in the HE MAC capabilities
   10209 	 * information field.
   10210 	 * 0 - Disable Broadcast TWT support subfield
   10211 	 * 1 - Enable Broadcast TWT support subfield
   10212 	 * This attribute is used to configure the testbed device.
   10213 	 */
   10214 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BCAST_TWT_SUPPORT = 57,
   10215 
   10216 	/* 8-bit unsigned value to configure the driver/firmware to allow eMLSR
   10217 	 * mode for IEEE 802.11be MLO capable devices. If the attribute is set
   10218 	 * to 1, and if the firmware supports this capability too, the STA
   10219 	 * advertises this capability to the AP over Association Request frame.
   10220 	 * This attribute will not have any effect on legacy devices with no
   10221 	 * IEEE 802.11be support.
   10222 	 * 0 - Default behavior
   10223 	 * 1 - Enable eMLSR (Enhanced Multi-link Single-Radio) mode
   10224 	 * This attribute is used to configure the testbed device.
   10225 	 */
   10226 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_11BE_EMLSR_MODE = 58,
   10227 
   10228 	/* 8-bit unsigned value to configure the driver to enable/disable the
   10229 	 * periodic sounding for Tx beamformer functionality. The default
   10230 	 * behavior uses algorithm to do sounding based on packet stats.
   10231 	 *
   10232 	 * 0 - Default behavior.
   10233 	 * 1 - Enable the periodic sounding for Tx beamformer.
   10234 	 * This attribute is used for testing purposes.
   10235 	 */
   10236 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BEAMFORMER_PERIODIC_SOUNDING = 59,
   10237 
   10238 	/* 8-bit unsigned value to configure beamformee SS EHT capability
   10239 	 * to indicate the maximum number of spatial streams that the STA
   10240 	 * can receive in an EHT sounding NDP for <= 80 MHz bandwidth.
   10241 	 * The range of the value is 3 to 7.
   10242 	 * This attribute is used to configure the testbed device.
   10243 	 */
   10244 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_BEAMFORMEE_SS_80MHZ = 60,
   10245 
   10246 	/* 8-bit unsigned value to configure beamformee SS EHT capability
   10247 	 * to indicate the maximum number of spatial streams that the STA
   10248 	 * can receive in an EHT sounding NDP for 160 MHz bandwidth.
   10249 	 * The range of the value is 3 to 7.
   10250 	 * This attribute is used to configure the testbed device.
   10251 	 */
   10252 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_BEAMFORMEE_SS_160MHZ = 61,
   10253 
   10254 	/* 8-bit unsigned value to configure beamformee SS EHT capability
   10255 	 * to indicate the maximum number of spatial streams that the STA
   10256 	 * can receive in an EHT sounding NDP for 320 MHz bandwidth.
   10257 	 * The range of the value is 3 to 7.
   10258 	 * This attribute is used to configure the testbed device.
   10259 	 */
   10260 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_BEAMFORMEE_SS_320MHZ = 62,
   10261 
   10262 	/* 8-bit unsigned value to configure the driver to exclude station
   10263 	 * profile in Probe Request frame Multi-Link element.
   10264 	 * 0 - Default behavior, sends the Probe Request frame with station
   10265 	 * profile data included in the Multi-Link element.
   10266 	 * 1 - Exclude station profile in Probe Request frame Multi-Link
   10267 	 * element.
   10268 	 * This attribute is used to configure the testbed device.
   10269 	 */
   10270 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EXCLUDE_STA_PROF_IN_PROBE_REQ = 63,
   10271 
   10272 	/* 8-bit unsigned value to configure EHT testbed defaults.
   10273 	 * This attribute is used to configure the testbed device.
   10274 	 * 1 - Set the device EHT capabilities to testbed defaults.
   10275 	 * 0 - Reset the device EHT capabilities to supported config.
   10276 	 */
   10277 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_SET_EHT_TESTBED_DEFAULTS = 64,
   10278 
   10279 	/* 8-bit unsigned value to indicate the EHT MCS support.
   10280 	 * Uses enum eht_mcs_config values.
   10281 	 * This attribute is used to configure the testbed device to
   10282 	 * allow the advertised hardware capabilities to be downgraded
   10283 	 * for testing purposes.
   10284 	 */
   10285 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_MCS = 65,
   10286 
   10287 	/* 8-bit unsigned value to configure EHT TB Sounding Feedback
   10288 	 * Rate Limit capability.
   10289 	 * This attribute is used to configure the testbed device.
   10290 	 * 0 - Indicates no maximum supported data rate limitation.
   10291 	 * 1 - Indicates the maximum supported data rate is the lower of
   10292 	 * the 1500 Mb/s and the maximum supported data rate.
   10293 	 */
   10294 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_TB_SOUNDING_FB_RL = 66,
   10295 
   10296 	/* 8-bit unsigned value to configure the support for receiving an MPDU
   10297 	 * that contains an EHT operating mode control subfield.
   10298 	 * This attribute is used to configure the testbed device.
   10299 	 * 1-enable, 0-disable.
   10300 	 */
   10301 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_OM_CTRL_SUPPORT = 67,
   10302 
   10303 	/* 8-bit unsigned value to configure the driver with EMLSR padding delay
   10304 	 * subfield value.
   10305 	 *
   10306 	 * 0 - 0 us
   10307 	 * 1 - 32 us
   10308 	 * 2 - 64 us
   10309 	 * 3 - 128 us
   10310 	 * 4 - 256 us
   10311 	 * 5-255 - Reserved
   10312 	 *
   10313 	 * This attribute is used for testing purposes.
   10314 	 */
   10315 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EMLSR_PADDING_DELAY = 68,
   10316 
   10317 	/*
   10318 	 * 8-bit unsigned value to indicate the firmware to force the active MLO
   10319 	 * links to power save mode for the configured number of beacon periods.
   10320 	 * This allows the firmware to suspend STA links for X beacon periods
   10321 	 * and remain asleep even if the AP advertises TIM as opposed to regular
   10322 	 * power save mode where STA links wake up if the AP indicates that it
   10323 	 * has buffered data to send.
   10324 	 * This attribute is used to configure the testbed device.
   10325 	 */
   10326 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FORCE_MLO_POWER_SAVE_BCN_PERIOD = 69,
   10327 
   10328 	/*
   10329 	 * 8-bit unsigned value to indicate the firmware to be in STR MLMR mode
   10330 	 * to enable simultaneous transmission of PPDUs on all active links.
   10331 	 * 0 - Default behavior
   10332 	 * 1 - Enter STR mode for simultaneous data transmission on all links
   10333 	 */
   10334 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_MLO_STR_TX = 70,
   10335 
   10336 	/* Nested attribute to indicate EHT MLO links on which powersave to be
   10337 	 * enabled. It contains link ID attributes. These nested attributes are
   10338 	 * of the type u8 and are used to enable the powersave on associated
   10339 	 * MLO links corresponding to the link IDs provided in the command.
   10340 	 * This attribute is used to configure the testbed device.
   10341 	 */
   10342 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_MLO_LINK_POWER_SAVE = 71,
   10343 
   10344 	/* 8-bit unsigned value to configure the MLD ID of the BSS whose link
   10345 	 * info is requested in the ML Probe Request frame. In the MLO-MBSSID
   10346 	 * testcase, STA can request information of non-Tx BSS through Tx BSS
   10347 	 * by configuring non-Tx BSS MLD ID within the ML probe request that
   10348 	 * is transmitted via host initiated scan request.
   10349 	 *
   10350 	 * This attribute is used for testing purposes.
   10351 	 */
   10352 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_MLD_ID_ML_PROBE_REQ = 72,
   10353 
   10354 	/* 8-bit unsigned value to configure the SCS traffic description
   10355 	 * support in the EHT capabilities of an Association Request frame.
   10356 	 * 1-enable, 0-disable
   10357 	 * This attribute is used to configure the testbed device.
   10358 	 */
   10359 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_SCS_TRAFFIC_SUPPORT = 73,
   10360 
   10361 	/* keep last */
   10362 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_AFTER_LAST,
   10363 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_MAX =
   10364 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_AFTER_LAST - 1,
   10365 };
   10366 
   10367 /**
   10368  * enum qca_wlan_twt_operation - Operation of the config TWT request
   10369  * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION.
   10370  * The response for the respective operations can be either synchronous or
   10371  * asynchronous (wherever specified). If synchronous, the response to this
   10372  * operation is obtained in the corresponding vendor command reply to the user
   10373  * space. For the asynchronous case the response is obtained as an event with
   10374  * the same operation type.
   10375  *
   10376  * Drivers shall support either of these modes but not both simultaneously.
   10377  * This support for asynchronous mode is advertised through the flag
   10378  * QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT. If this flag is not advertised,
   10379  * the driver shall support synchronous mode.
   10380  *
   10381  * @QCA_WLAN_TWT_SET: Setup a TWT session. Required parameters are configured
   10382  * through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
   10383  * qca_wlan_vendor_attr_twt_setup. Depending upon the
   10384  * @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT capability, this is either a
   10385  * synchronous or asynchronous operation.
   10386  *
   10387  * @QCA_WLAN_TWT_GET: Get the configured TWT parameters. Required parameters are
   10388  * obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
   10389  * qca_wlan_vendor_attr_twt_setup. This is a synchronous operation.
   10390  *
   10391  * @QCA_WLAN_TWT_TERMINATE: Terminate the TWT session. Required parameters are
   10392  * obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
   10393  * qca_wlan_vendor_attr_twt_setup. Valid only after the TWT session is setup.
   10394  * This terminate can either get triggered by the user space or can as well be
   10395  * a notification from the firmware if it initiates a terminate.
   10396  * Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT capability,
   10397  * the request from user space can either be a synchronous or asynchronous
   10398  * operation.
   10399  *
   10400  * @QCA_WLAN_TWT_SUSPEND: Suspend the TWT session. Required parameters are
   10401  * obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
   10402  * qca_wlan_vendor_attr_twt_setup. Valid only after the TWT session is setup.
   10403  * Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT capability,
   10404  * this is either a synchronous or asynchronous operation.
   10405  *
   10406  * @QCA_WLAN_TWT_RESUME: Resume the TWT session. Required parameters are
   10407  * configured through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
   10408  * qca_wlan_vendor_attr_twt_resume. Valid only after the TWT session is setup.
   10409  * This can as well be a notification from the firmware on a QCA_WLAN_TWT_NUDGE
   10410  * request. Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT
   10411  * capability, this is either a synchronous or asynchronous operation.
   10412  *
   10413  * @QCA_WLAN_TWT_NUDGE: Suspend and resume the TWT session. TWT nudge is a
   10414  * combination of suspend and resume in a single request. Required parameters
   10415  * are configured through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the
   10416  * enum qca_wlan_vendor_attr_twt_nudge. Valid only after the TWT session is
   10417  * setup. Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT
   10418  * capability, this is either a synchronous or asynchronous operation.
   10419  *
   10420  * @QCA_WLAN_TWT_GET_STATS: Get the TWT session traffic statistics information.
   10421  * Refers the enum qca_wlan_vendor_attr_twt_stats. Valid only after the TWT
   10422  * session is setup. It's a synchronous operation.
   10423  *
   10424  * @QCA_WLAN_TWT_CLEAR_STATS: Clear TWT session traffic statistics information.
   10425  * Valid only after the TWT session is setup. It's a synchronous operation.
   10426  *
   10427  * @QCA_WLAN_TWT_GET_CAPABILITIES: Get TWT capabilities of this device and its
   10428  * peer. Refers the enum qca_wlan_vendor_attr_twt_capability. It's a synchronous
   10429  * operation.
   10430  *
   10431  * @QCA_WLAN_TWT_SETUP_READY_NOTIFY: Notify userspace that the firmware is
   10432  * ready for a new TWT session setup after it issued a TWT teardown.
   10433  *
   10434  * @QCA_WLAN_TWT_SET_PARAM: Configure TWT related parameters. Required
   10435  * parameters are obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refer
   10436  * the enum qca_wlan_vendor_attr_twt_set_param.
   10437  *
   10438  * @QCA_WLAN_TWT_NOTIFY: Used to notify userspace about changes in TWT
   10439  * related information for example TWT required bit in AP capabilities etc.
   10440  * The reason for the notification is sent using
   10441  * QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_NOTIFY_STATUS.
   10442  */
   10443 enum qca_wlan_twt_operation {
   10444 	QCA_WLAN_TWT_SET = 0,
   10445 	QCA_WLAN_TWT_GET = 1,
   10446 	QCA_WLAN_TWT_TERMINATE = 2,
   10447 	QCA_WLAN_TWT_SUSPEND = 3,
   10448 	QCA_WLAN_TWT_RESUME = 4,
   10449 	QCA_WLAN_TWT_NUDGE = 5,
   10450 	QCA_WLAN_TWT_GET_STATS = 6,
   10451 	QCA_WLAN_TWT_CLEAR_STATS = 7,
   10452 	QCA_WLAN_TWT_GET_CAPABILITIES = 8,
   10453 	QCA_WLAN_TWT_SETUP_READY_NOTIFY = 9,
   10454 	QCA_WLAN_TWT_SET_PARAM = 10,
   10455 	QCA_WLAN_TWT_NOTIFY = 11,
   10456 };
   10457 
   10458 /**
   10459  * enum qca_wlan_vendor_attr_config_twt: Defines attributes used by
   10460  * %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
   10461  *
   10462  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION: u8 attribute. Specify the TWT
   10463  * operation of this request. Possible values are defined in enum
   10464  * qca_wlan_twt_operation. The parameters for the respective operation is
   10465  * specified through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS.
   10466  *
   10467  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS: Nested attribute representing the
   10468  * parameters configured for TWT. These parameters are represented by
   10469  * enum qca_wlan_vendor_attr_twt_setup, enum qca_wlan_vendor_attr_twt_resume,
   10470  * enum qca_wlan_vendor_attr_twt_set_param, or
   10471  * enum qca_wlan_vendor_attr_twt_stats based on the operation.
   10472  *
   10473  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_NOTIFY_STATUS: Size is u8, mandatory when
   10474  * QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION is set to QCA_WLAN_TWT_NOTIFY.
   10475  * The values used by this attribute are defined in
   10476  * enum qca_wlan_vendor_twt_status.
   10477  */
   10478 enum qca_wlan_vendor_attr_config_twt {
   10479 	QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_INVALID = 0,
   10480 	QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION = 1,
   10481 	QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS = 2,
   10482 	QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_NOTIFY_STATUS = 3,
   10483 
   10484 	/* keep last */
   10485 	QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_AFTER_LAST,
   10486 	QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_MAX =
   10487 	QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_AFTER_LAST - 1,
   10488 };
   10489 
   10490 /**
   10491  * enum qca_wlan_vendor_attr_bss_filter - Used by the vendor command
   10492  * QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER.
   10493  * The user can add/delete the filter by specifying the BSSID/STA MAC address in
   10494  * QCA_WLAN_VENDOR_ATTR_BSS_FILTER_MAC_ADDR, filter type in
   10495  * QCA_WLAN_VENDOR_ATTR_BSS_FILTER_TYPE, add/delete action in
   10496  * QCA_WLAN_VENDOR_ATTR_BSS_FILTER_ACTION in the request. The user can get the
   10497  * statistics of an unassociated station by specifying the MAC address in
   10498  * QCA_WLAN_VENDOR_ATTR_BSS_FILTER_MAC_ADDR, station type in
   10499  * QCA_WLAN_VENDOR_ATTR_BSS_FILTER_TYPE, GET action in
   10500  * QCA_WLAN_VENDOR_ATTR_BSS_FILTER_ACTION in the request. The user also can get
   10501  * the statistics of all unassociated stations by specifying the Broadcast MAC
   10502  * address (ff:ff:ff:ff:ff:ff) in QCA_WLAN_VENDOR_ATTR_BSS_FILTER_MAC_ADDR with
   10503  * above procedure. In the response, driver shall specify statistics
   10504  * information nested in QCA_WLAN_VENDOR_ATTR_BSS_FILTER_STA_STATS.
   10505  */
   10506 enum qca_wlan_vendor_attr_bss_filter {
   10507 	QCA_WLAN_VENDOR_ATTR_BSS_FILTER_INVALID = 0,
   10508 	QCA_WLAN_VENDOR_ATTR_BSS_FILTER_MAC_ADDR = 1,
   10509 	/* Other BSS filter type, unsigned 8 bit value. One of the values
   10510 	 * in enum qca_wlan_vendor_bss_filter_type.
   10511 	 */
   10512 	QCA_WLAN_VENDOR_ATTR_BSS_FILTER_TYPE = 2,
   10513 	/* Other BSS filter action, unsigned 8 bit value. One of the values
   10514 	 * in enum qca_wlan_vendor_bss_filter_action.
   10515 	 */
   10516 	QCA_WLAN_VENDOR_ATTR_BSS_FILTER_ACTION = 3,
   10517 	/* Array of nested attributes where each entry is the statistics
   10518 	 * information of the specified station that belong to another BSS.
   10519 	 * Attributes for each entry are taken from enum
   10520 	 * qca_wlan_vendor_bss_filter_sta_stats.
   10521 	 * Other BSS station configured in
   10522 	 * QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER with filter type
   10523 	 * QCA_WLAN_VENDOR_BSS_FILTER_TYPE_STA.
   10524 	 * Statistics returned by QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER
   10525 	 * with filter action QCA_WLAN_VENDOR_BSS_FILTER_ACTION_GET.
   10526 	 */
   10527 	QCA_WLAN_VENDOR_ATTR_BSS_FILTER_STA_STATS = 4,
   10528 
   10529 	/* keep last */
   10530 	QCA_WLAN_VENDOR_ATTR_BSS_FILTER_AFTER_LAST,
   10531 	QCA_WLAN_VENDOR_ATTR_BSS_FILTER_MAX =
   10532 	QCA_WLAN_VENDOR_ATTR_BSS_FILTER_AFTER_LAST - 1,
   10533 };
   10534 
   10535 /**
   10536  * enum qca_wlan_vendor_bss_filter_type - Type of
   10537  * filter used in other BSS filter operations. Used by the vendor command
   10538  * QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER.
   10539  *
   10540  * @QCA_WLAN_VENDOR_BSS_FILTER_TYPE_BSSID: BSSID filter
   10541  * @QCA_WLAN_VENDOR_BSS_FILTER_TYPE_STA: Station MAC address filter
   10542  */
   10543 enum qca_wlan_vendor_bss_filter_type {
   10544 	QCA_WLAN_VENDOR_BSS_FILTER_TYPE_BSSID,
   10545 	QCA_WLAN_VENDOR_BSS_FILTER_TYPE_STA,
   10546 };
   10547 
   10548 /**
   10549  * enum qca_wlan_vendor_bss_filter_action - Type of
   10550  * action in other BSS filter operations. Used by the vendor command
   10551  * QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER.
   10552  *
   10553  * @QCA_WLAN_VENDOR_BSS_FILTER_ACTION_ADD: Add filter
   10554  * @QCA_WLAN_VENDOR_BSS_FILTER_ACTION_DEL: Delete filter
   10555  * @QCA_WLAN_VENDOR_BSS_FILTER_ACTION_GET: Get the statistics
   10556  */
   10557 enum qca_wlan_vendor_bss_filter_action {
   10558 	QCA_WLAN_VENDOR_BSS_FILTER_ACTION_ADD,
   10559 	QCA_WLAN_VENDOR_BSS_FILTER_ACTION_DEL,
   10560 	QCA_WLAN_VENDOR_BSS_FILTER_ACTION_GET,
   10561 };
   10562 
   10563 /**
   10564  * enum qca_wlan_vendor_bss_filter_sta_stats - Attributes for
   10565  * the statistics of a specific unassociated station belonging to another BSS.
   10566  * The statistics provides information of the unassociated station
   10567  * filtered by other BSS operation - such as MAC, signal value.
   10568  * Used by the vendor command QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER.
   10569  *
   10570  * @QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_MAC: MAC address of the station.
   10571  * @QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_RSSI: Last received signal strength
   10572  *	of the station. Unsigned 8 bit number containing RSSI.
   10573  * @QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_RSSI_TS: Time stamp of the host
   10574  *	driver for the last received RSSI. Unsigned 64 bit number containing
   10575  *	nanoseconds from the boottime.
   10576  * @QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_PAD: Attribute used for padding for
   10577  *	64-bit alignment.
   10578  */
   10579 enum qca_wlan_vendor_bss_filter_sta_stats {
   10580 	QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_INVALID = 0,
   10581 	QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_MAC = 1,
   10582 	QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_RSSI = 2,
   10583 	QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_RSSI_TS = 3,
   10584 	QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_PAD = 4,
   10585 
   10586 	/* keep last */
   10587 	QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_AFTER_LAST,
   10588 	QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_MAX =
   10589 	QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_AFTER_LAST - 1
   10590 };
   10591 
   10592 /* enum qca_wlan_nan_subcmd_type - Type of NAN command used by attribute
   10593  * QCA_WLAN_VENDOR_ATTR_NAN_SUBCMD_TYPE as a part of vendor command
   10594  * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT.
   10595  */
   10596 enum qca_wlan_nan_ext_subcmd_type {
   10597 	/* Subcmd of type NAN Enable Request */
   10598 	QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ = 1,
   10599 	/* Subcmd of type NAN Disable Request */
   10600 	QCA_WLAN_NAN_EXT_SUBCMD_TYPE_DISABLE_REQ = 2,
   10601 };
   10602 
   10603 /**
   10604  * enum qca_wlan_vendor_attr_nan_params - Used by the vendor command
   10605  * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT.
   10606  */
   10607 enum qca_wlan_vendor_attr_nan_params {
   10608 	QCA_WLAN_VENDOR_ATTR_NAN_INVALID = 0,
   10609 	/* Carries NAN command for firmware component. Every vendor command
   10610 	 * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT must contain this attribute with a
   10611 	 * payload containing the NAN command. NLA_BINARY attribute.
   10612 	 */
   10613 	QCA_WLAN_VENDOR_ATTR_NAN_CMD_DATA = 1,
   10614 	/* Indicates the type of NAN command sent with
   10615 	 * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT. enum qca_wlan_nan_ext_subcmd_type
   10616 	 * describes the possible range of values. This attribute is mandatory
   10617 	 * if the command being issued is either
   10618 	 * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ or
   10619 	 * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_DISABLE_REQ. NLA_U32 attribute.
   10620 	 */
   10621 	QCA_WLAN_VENDOR_ATTR_NAN_SUBCMD_TYPE = 2,
   10622 	/* Frequency (in MHz) of primary NAN discovery social channel in 2.4 GHz
   10623 	 * band. This attribute is mandatory when command type is
   10624 	 * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ. NLA_U32 attribute.
   10625 	 */
   10626 	QCA_WLAN_VENDOR_ATTR_NAN_DISC_24GHZ_BAND_FREQ = 3,
   10627 	/* Frequency (in MHz) of secondary NAN discovery social channel in 5 GHz
   10628 	 * band. This attribute is optional and should be included when command
   10629 	 * type is QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ and NAN discovery
   10630 	 * has to be started on 5GHz along with 2.4GHz. NLA_U32 attribute.
   10631 	 */
   10632 	QCA_WLAN_VENDOR_ATTR_NAN_DISC_5GHZ_BAND_FREQ = 4,
   10633 
   10634 	/* keep last */
   10635 	QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_AFTER_LAST,
   10636 	QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_MAX =
   10637 		QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_AFTER_LAST - 1
   10638 };
   10639 
   10640 /**
   10641  * qca_wlan_twt_setup_state: Represents the TWT session states.
   10642  *
   10643  * QCA_WLAN_TWT_SETUP_STATE_NOT_ESTABLISHED: TWT session not established.
   10644  * QCA_WLAN_TWT_SETUP_STATE_ACTIVE: TWT session is active.
   10645  * QCA_WLAN_TWT_SETUP_STATE_SUSPEND: TWT session is in suspended state.
   10646  */
   10647 enum qca_wlan_twt_setup_state {
   10648 	QCA_WLAN_TWT_SETUP_STATE_NOT_ESTABLISHED = 0,
   10649 	QCA_WLAN_TWT_SETUP_STATE_ACTIVE = 1,
   10650 	QCA_WLAN_TWT_SETUP_STATE_SUSPEND = 2,
   10651 };
   10652 
   10653 /**
   10654  * enum qca_wlan_vendor_attr_twt_setup: Represents attributes for
   10655  * TWT (Target Wake Time) setup request. These attributes are sent as part of
   10656  * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SETUP and
   10657  * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION. Also used by
   10658  * attributes through %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
   10659  *
   10660  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST: Flag attribute.
   10661  * Disable (flag attribute not present) - Individual TWT
   10662  * Enable (flag attribute present) - Broadcast TWT.
   10663  * Individual means the session is between the STA and the AP.
   10664  * This session is established using a separate negotiation between
   10665  * STA and AP.
   10666  * Broadcast means the session is across multiple STAs and an AP. The
   10667  * configuration parameters are announced in Beacon frames by the AP.
   10668  * This is used in
   10669  * 1. TWT SET Request and Response
   10670  * 2. TWT GET Response
   10671  *
   10672  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_REQ_TYPE: Required (u8).
   10673  * Unsigned 8-bit qca_wlan_vendor_twt_setup_req_type to
   10674  * specify the TWT request type. This is used in TWT SET operation.
   10675  *
   10676  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TRIGGER: Flag attribute
   10677  * Enable (flag attribute present) - TWT with trigger support.
   10678  * Disable (flag attribute not present) - TWT without trigger support.
   10679  * Trigger means the AP will send the trigger frame to allow STA to send data.
   10680  * Without trigger, the STA will wait for the MU EDCA timer before
   10681  * transmitting the data.
   10682  * This is used in
   10683  * 1. TWT SET Request and Response
   10684  * 2. TWT GET Response
   10685  *
   10686  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_TYPE: Required (u8)
   10687  * 0 - Announced TWT - In this mode, STA may skip few service periods to
   10688  * save more power. If STA wants to wake up, it will send a PS-POLL/QoS
   10689  * NULL frame to AP.
   10690  * 1 - Unannounced TWT - The STA will wakeup during every SP.
   10691  * This is a required parameter for
   10692  * 1. TWT SET Request and Response
   10693  * 2. TWT GET Response
   10694  *
   10695  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_ID: Optional (u8)
   10696  * Flow ID is the unique identifier for each TWT session.
   10697  * If not provided then dialog ID will be set to zero.
   10698  * This is an optional parameter for
   10699  * 1. TWT SET Request and Response
   10700  * 2. TWT GET Request and Response
   10701  * 3. TWT TERMINATE Request and Response
   10702  * 4. TWT SUSPEND Request and Response
   10703  * Flow ID values from 0 to 254 represent a single TWT session
   10704  * Flow ID value of 255 represents all TWT sessions for the following
   10705  * 1. TWT TERMINATE Request and Response
   10706  * 2. TWT SUSPEND Request and Response
   10707  * 4. TWT CLEAR STATISTICS request
   10708  * 5. TWT GET STATISTICS request and response
   10709  * If an invalid dialog ID is provided, status
   10710  * QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST will be returned.
   10711  *
   10712  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_EXP: Required (u8)
   10713  * This attribute (exp) is used along with the mantissa to derive the
   10714  * wake interval using the following formula:
   10715  * pow(2,exp) = wake_intvl_us/wake_intvl_mantis
   10716  * Wake interval is the interval between 2 successive SP.
   10717  * This is a required parameter for
   10718  * 1. TWT SET Request and Response
   10719  * 2. TWT GET Response
   10720  *
   10721  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_PROTECTION: Flag attribute
   10722  * Enable (flag attribute present) - Protection required.
   10723  * Disable (flag attribute not present) - Protection not required.
   10724  * If protection is enabled, then the AP will use protection
   10725  * mechanism using RTS/CTS to self to reserve the airtime.
   10726  * This is used in
   10727  * 1. TWT SET Request and Response
   10728  * 2. TWT GET Response
   10729  *
   10730  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME: Optional (u32)
   10731  * This attribute is used as the SP offset which is the offset from
   10732  * TSF after which the wake happens. The units are in microseconds. If
   10733  * this attribute is not provided, then the value will be set to zero.
   10734  * This is an optional parameter for
   10735  * 1. TWT SET Request and Response
   10736  * 2. TWT GET Response
   10737  *
   10738  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_DURATION: Required (u32)
   10739  * This is the duration of the service period. This is specified as
   10740  * multiples of 256 microseconds. Valid values are 0x1 to 0xFF.
   10741  * This is a required parameter for
   10742  * 1. TWT SET Request and Response
   10743  * 2. TWT GET Response
   10744  *
   10745  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA: Required (u32)
   10746  * This attribute is used to configure wake interval mantissa.
   10747  * The units are in TU.
   10748  * This is a required parameter for
   10749  * 1. TWT SET Request and Response
   10750  * 2. TWT GET Response
   10751  *
   10752  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATUS: Required (u8)
   10753  * This field is applicable for TWT response only.
   10754  * This contains status values in enum qca_wlan_vendor_twt_status
   10755  * and is passed to the userspace. This is used in TWT SET operation.
   10756  * This is a required parameter for
   10757  * 1. TWT SET Response
   10758  * 2. TWT TERMINATE Response
   10759  * 3. TWT SUSPEND Response
   10760  * 4. TWT RESUME Response
   10761  * 5. TWT NUDGE Response
   10762  *
   10763  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESP_TYPE: Required (u8)
   10764  * This field is applicable for TWT response only.
   10765  * This field contains response type from the TWT responder and is
   10766  * passed to the userspace. The values for this field are defined in
   10767  * enum qca_wlan_vendor_twt_setup_resp_type. This is used in TWT SET
   10768  * response.
   10769  *
   10770  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME_TSF: Required (u64)
   10771  * In TWT setup command this field contains absolute TSF that will
   10772  * be used by TWT requester during setup.
   10773  * In TWT response this field contains absolute TSF value of the
   10774  * wake time received from the TWT responder and is passed to
   10775  * the userspace.
   10776  * This is an optional parameter for
   10777  * 1. TWT SET Request
   10778  * This is a required parameter for
   10779  * 1. TWT SET Response
   10780  * 2. TWT GET Response
   10781  *
   10782  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TWT_INFO_ENABLED: Flag attribute.
   10783  * Enable (flag attribute present) - Indicates that the TWT responder
   10784  * supports reception of TWT information frame from the TWT requestor.
   10785  * Disable (flag attribute not present) - Indicates that the responder
   10786  * doesn't support reception of TWT information frame from requestor.
   10787  * This is used in
   10788  * 1. TWT SET Response
   10789  * 2. TWT GET Response
   10790  *
   10791  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAC_ADDR: 6-byte MAC address
   10792  * Represents the MAC address of the peer for which the TWT session
   10793  * is being configured. This is used in AP mode to represent the respective
   10794  * client.
   10795  * In AP mode, this is a required parameter in response for
   10796  * 1. TWT SET
   10797  * 2. TWT GET
   10798  * 3. TWT TERMINATE
   10799  * 4. TWT SUSPEND
   10800  * In STA mode, this is an optional parameter in request and response for
   10801  * the above four TWT operations.
   10802  * In AP mode, this is a required parameter in request for
   10803  * 1. TWT GET
   10804  * 2. TWT TERMINATE
   10805  *
   10806  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_INTVL: Optional (u32)
   10807  * Minimum tolerance limit of wake interval parameter in microseconds.
   10808  *
   10809  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_INTVL: Optional (u32)
   10810  * Maximum tolerance limit of wake interval parameter in microseconds.
   10811  *
   10812  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_DURATION: Optional (u32)
   10813  * Minimum tolerance limit of wake duration parameter in microseconds.
   10814  *
   10815  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_DURATION: Optional (u32)
   10816  * Maximum tolerance limit of wake duration parameter in microseconds.
   10817  *
   10818  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATE: Optional (u32)
   10819  * TWT state for the given dialog id. The values for this are represented
   10820  * by enum qca_wlan_twt_setup_state.
   10821  * This is obtained through TWT GET operation.
   10822  *
   10823  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL2_MANTISSA: Optional (u32)
   10824  * This attribute is used to configure wake interval mantissa.
   10825  * The unit is microseconds. This attribute, when specified, takes
   10826  * precedence over QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA.
   10827  * This parameter is used for
   10828  * 1. TWT SET Request and Response
   10829  * 2. TWT GET Response
   10830  *
   10831  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_ID: Optional (u8)
   10832  * This attribute is used to configure Broadcast TWT ID.
   10833  * The Broadcast TWT ID indicates a specific Broadcast TWT for which the
   10834  * transmitting STA is providing TWT parameters. The allowed values are 0 to 31.
   10835  * This parameter is used for
   10836  * 1. TWT SET Request
   10837  * 2. TWT TERMINATE Request
   10838  *
   10839  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_RECOMMENDATION: Optional (u8)
   10840  * This attribute is used to configure Broadcast TWT recommendation.
   10841  * The Broadcast TWT Recommendation subfield contains a value that indicates
   10842  * recommendations on the types of frames that are transmitted by TWT
   10843  * scheduled STAs and scheduling AP during the broadcast TWT SP.
   10844  * The allowed values are 0 - 3.
   10845  * This parameter is used for
   10846  * 1. TWT SET Request
   10847  *
   10848  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_PERSISTENCE: Optional (u8)
   10849  * This attribute is used to configure Broadcast TWT Persistence.
   10850  * The Broadcast TWT Persistence subfield indicates the number of
   10851  * TBTTs during which the Broadcast TWT SPs corresponding to this
   10852  * broadcast TWT Parameter set are present. The number of beacon intervals
   10853  * during which the Broadcast TWT SPs are present is equal to the value in the
   10854  * Broadcast TWT Persistence subfield plus 1 except that the value 255
   10855  * indicates that the Broadcast TWT SPs are present until explicitly terminated.
   10856  * This parameter is used for
   10857  * 1. TWT SET Request
   10858  *
   10859  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESPONDER_PM_MODE: Optional (u8)
   10860  * This attribute contains the value of the Responder PM Mode subfield (0 or 1)
   10861  * from TWT response frame. During TWT setup request, this attribute is used to
   10862  * configure the Responder PM Mode bit in the control field of the TWT element
   10863  * for broadcast TWT schedule.
   10864  * This parameter is used for
   10865  * 1. TWT SET Response
   10866  * 2. TWT GET Response
   10867  * 3. TWT SET Request
   10868  *
   10869  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_ANNOUNCE_TIMEOUT: Optional (u32)
   10870  * This attribute is used to configure the announce timeout value (in us) in
   10871  * the firmware. This timeout value is only applicable for the announced TWT. If
   10872  * the timeout value is non-zero the firmware waits up to the timeout value to
   10873  * use Data frame as an announcement frame. If the timeout value is 0 the
   10874  * firmware sends an explicit QoS NULL frame as the announcement frame on SP
   10875  * start. The default value in the firmware is 0.
   10876  * This parameter is used for
   10877  * 1. TWT SET Request
   10878  *
   10879  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_PAD: Attribute used for padding for 64-bit
   10880  * alignment.
   10881  */
   10882 enum qca_wlan_vendor_attr_twt_setup {
   10883 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_INVALID = 0,
   10884 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST = 1,
   10885 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_REQ_TYPE = 2,
   10886 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TRIGGER = 3,
   10887 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_TYPE = 4,
   10888 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_ID = 5,
   10889 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_EXP = 6,
   10890 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_PROTECTION = 7,
   10891 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME = 8,
   10892 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_DURATION = 9,
   10893 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA = 10,
   10894 
   10895 	/* TWT Response only attributes */
   10896 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATUS = 11,
   10897 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESP_TYPE = 12,
   10898 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME_TSF = 13,
   10899 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TWT_INFO_ENABLED = 14,
   10900 
   10901 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAC_ADDR = 15,
   10902 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_INTVL = 16,
   10903 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_INTVL = 17,
   10904 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_DURATION = 18,
   10905 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_DURATION = 19,
   10906 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATE = 20,
   10907 
   10908 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL2_MANTISSA = 21,
   10909 
   10910 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_ID = 22,
   10911 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_RECOMMENDATION = 23,
   10912 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_PERSISTENCE = 24,
   10913 
   10914 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESPONDER_PM_MODE = 25,
   10915 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_ANNOUNCE_TIMEOUT = 26,
   10916 
   10917 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_PAD = 27,
   10918 
   10919 	/* keep last */
   10920 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_AFTER_LAST,
   10921 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX =
   10922 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_AFTER_LAST - 1,
   10923 };
   10924 
   10925 /**
   10926  * enum qca_wlan_vendor_twt_status - Represents the status of the requested
   10927  * TWT operation
   10928  *
   10929  * @QCA_WLAN_VENDOR_TWT_STATUS_OK: TWT request successfully completed
   10930  * @QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_ENABLED: TWT not enabled
   10931  * @QCA_WLAN_VENDOR_TWT_STATUS_USED_DIALOG_ID: TWT dialog ID is already used
   10932  * @QCA_WLAN_VENDOR_TWT_STATUS_SESSION_BUSY: TWT session is busy
   10933  * @QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST: TWT session does not exist
   10934  * @QCA_WLAN_VENDOR_TWT_STATUS_NOT_SUSPENDED: TWT session not in suspend state
   10935  * @QCA_WLAN_VENDOR_TWT_STATUS_INVALID_PARAM: Invalid parameters
   10936  * @QCA_WLAN_VENDOR_TWT_STATUS_NOT_READY: FW not ready
   10937  * @QCA_WLAN_VENDOR_TWT_STATUS_NO_RESOURCE: FW resource exhausted
   10938  * @QCA_WLAN_VENDOR_TWT_STATUS_NO_ACK: Peer AP/STA did not ACK the
   10939  * request/response frame
   10940  * @QCA_WLAN_VENDOR_TWT_STATUS_NO_RESPONSE: Peer AP did not send the response
   10941  * frame
   10942  * @QCA_WLAN_VENDOR_TWT_STATUS_DENIED: AP did not accept the request
   10943  * @QCA_WLAN_VENDOR_TWT_STATUS_UNKNOWN_ERROR: Adding TWT dialog failed due to an
   10944  * unknown reason
   10945  * @QCA_WLAN_VENDOR_TWT_STATUS_ALREADY_SUSPENDED: TWT session already in
   10946  * suspend state
   10947  * @QCA_WLAN_VENDOR_TWT_STATUS_IE_INVALID: FW has dropped the frame due to
   10948  * invalid IE in the received TWT frame
   10949  * @QCA_WLAN_VENDOR_TWT_STATUS_PARAMS_NOT_IN_RANGE: Parameters received from
   10950  * the responder are not in the specified range
   10951  * @QCA_WLAN_VENDOR_TWT_STATUS_PEER_INITIATED_TERMINATE: FW terminated the TWT
   10952  * session due to request from the responder. Used on the TWT_TERMINATE
   10953  * notification from the firmware.
   10954  * @QCA_WLAN_VENDOR_TWT_STATUS_ROAM_INITIATED_TERMINATE: FW terminated the TWT
   10955  * session due to roaming. Used on the TWT_TERMINATE notification from the
   10956  * firmware.
   10957  * @QCA_WLAN_VENDOR_TWT_STATUS_SCC_MCC_CONCURRENCY_TERMINATE: FW terminated the
   10958  * TWT session due to SCC (Single Channel Concurrency) and MCC (Multi Channel
   10959  * Concurrency). Used on the TWT_TERMINATE notification from the firmware.
   10960  * @QCA_WLAN_VENDOR_TWT_STATUS_ROAMING_IN_PROGRESS: FW rejected the TWT setup
   10961  * request due to roaming in progress.
   10962  * @QCA_WLAN_VENDOR_TWT_STATUS_CHANNEL_SWITCH_IN_PROGRESS: FW rejected the TWT
   10963  * setup request due to channel switch in progress.
   10964  * @QCA_WLAN_VENDOR_TWT_STATUS_SCAN_IN_PROGRESS: FW rejected the TWT setup
   10965  * request due to scan in progress.
   10966  * QCA_WLAN_VENDOR_TWT_STATUS_POWER_SAVE_EXIT_TERMINATE: The driver requested to
   10967  * terminate an existing TWT session on power save exit request from userspace.
   10968  * Used on the TWT_TERMINATE notification from the driver/firmware.
   10969  * @QCA_WLAN_VENDOR_TWT_STATUS_TWT_REQUIRED: The peer has set the TWT
   10970  * required bit in its capabilities.
   10971  * @QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_REQUIRED: The peer has cleared
   10972  * the TWT required bit(1->0) in its capabilities.
   10973  */
   10974 enum qca_wlan_vendor_twt_status {
   10975 	QCA_WLAN_VENDOR_TWT_STATUS_OK = 0,
   10976 	QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_ENABLED = 1,
   10977 	QCA_WLAN_VENDOR_TWT_STATUS_USED_DIALOG_ID = 2,
   10978 	QCA_WLAN_VENDOR_TWT_STATUS_SESSION_BUSY = 3,
   10979 	QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST = 4,
   10980 	QCA_WLAN_VENDOR_TWT_STATUS_NOT_SUSPENDED = 5,
   10981 	QCA_WLAN_VENDOR_TWT_STATUS_INVALID_PARAM = 6,
   10982 	QCA_WLAN_VENDOR_TWT_STATUS_NOT_READY = 7,
   10983 	QCA_WLAN_VENDOR_TWT_STATUS_NO_RESOURCE = 8,
   10984 	QCA_WLAN_VENDOR_TWT_STATUS_NO_ACK = 9,
   10985 	QCA_WLAN_VENDOR_TWT_STATUS_NO_RESPONSE = 10,
   10986 	QCA_WLAN_VENDOR_TWT_STATUS_DENIED = 11,
   10987 	QCA_WLAN_VENDOR_TWT_STATUS_UNKNOWN_ERROR = 12,
   10988 	QCA_WLAN_VENDOR_TWT_STATUS_ALREADY_SUSPENDED = 13,
   10989 	QCA_WLAN_VENDOR_TWT_STATUS_IE_INVALID = 14,
   10990 	QCA_WLAN_VENDOR_TWT_STATUS_PARAMS_NOT_IN_RANGE = 15,
   10991 	QCA_WLAN_VENDOR_TWT_STATUS_PEER_INITIATED_TERMINATE = 16,
   10992 	QCA_WLAN_VENDOR_TWT_STATUS_ROAM_INITIATED_TERMINATE = 17,
   10993 	QCA_WLAN_VENDOR_TWT_STATUS_SCC_MCC_CONCURRENCY_TERMINATE = 18,
   10994 	QCA_WLAN_VENDOR_TWT_STATUS_ROAMING_IN_PROGRESS = 19,
   10995 	QCA_WLAN_VENDOR_TWT_STATUS_CHANNEL_SWITCH_IN_PROGRESS = 20,
   10996 	QCA_WLAN_VENDOR_TWT_STATUS_SCAN_IN_PROGRESS = 21,
   10997 	QCA_WLAN_VENDOR_TWT_STATUS_POWER_SAVE_EXIT_TERMINATE = 22,
   10998 	QCA_WLAN_VENDOR_TWT_STATUS_TWT_REQUIRED = 23,
   10999 	QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_REQUIRED = 24,
   11000 };
   11001 
   11002 /**
   11003  * enum qca_wlan_vendor_attr_twt_resume - Represents attributes for
   11004  * TWT (Target Wake Time) resume request. These attributes are sent as part of
   11005  * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_RESUME and
   11006  * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION. Also used by
   11007  * attributes through %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
   11008  *
   11009  * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT: Optional (u8)
   11010  * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT2_TWT: Optional (u32)
   11011  * These attributes are used as the SP offset which is the offset from TSF after
   11012  * which the wake happens. The units are in microseconds. Please note that
   11013  * _NEXT_TWT is limited to u8 whereas _NEXT2_TWT takes the u32 data.
   11014  * _NEXT2_TWT takes the precedence over _NEXT_TWT and thus the recommendation
   11015  * is to use _NEXT2_TWT. If neither of these attributes is provided, the value
   11016  * will be set to zero.
   11017  *
   11018  * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT_SIZE: Required (u32)
   11019  * This attribute represents the next TWT subfield size.
   11020  * Value 0 represents 0 bits, 1 represents 32 bits, 2 for 48 bits,
   11021  * and 4 for 64 bits.
   11022  *
   11023  * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_FLOW_ID: Required (u8).
   11024  * Flow ID is the unique identifier for each TWT session. This attribute
   11025  * represents the respective TWT session to resume.
   11026  * Flow ID values from 0 to 254 represent a single TWT session
   11027  * Flow ID value of 255 represents all TWT sessions.
   11028  * If an invalid dialog id is provided, status
   11029  * QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST will be returned.
   11030  *
   11031  * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_MAC_ADDR: 6-byte MAC address
   11032  * Represents the MAC address of the peer to which TWT Resume is
   11033  * being sent. This is used in AP mode to represent the respective
   11034  * client and is a required parameter. In STA mode, this is an optional
   11035  * parameter
   11036  */
   11037 enum qca_wlan_vendor_attr_twt_resume {
   11038 	QCA_WLAN_VENDOR_ATTR_TWT_RESUME_INVALID = 0,
   11039 	QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT = 1,
   11040 	QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT_SIZE = 2,
   11041 	QCA_WLAN_VENDOR_ATTR_TWT_RESUME_FLOW_ID = 3,
   11042 	QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT2_TWT = 4,
   11043 	QCA_WLAN_VENDOR_ATTR_TWT_RESUME_MAC_ADDR = 5,
   11044 
   11045 	/* keep last */
   11046 	QCA_WLAN_VENDOR_ATTR_TWT_RESUME_AFTER_LAST,
   11047 	QCA_WLAN_VENDOR_ATTR_TWT_RESUME_MAX =
   11048 	QCA_WLAN_VENDOR_ATTR_TWT_RESUME_AFTER_LAST - 1,
   11049 };
   11050 
   11051 /**
   11052  * enum qca_wlan_vendor_attr_twt_nudge - Represents attributes for
   11053  * TWT (Target Wake Time) nudge request. TWT nudge is a combination of suspend
   11054  * and resume in a single request. These attributes are sent as part of
   11055  * %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
   11056  *
   11057  * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_FLOW_ID: Required (u8)
   11058  * Flow ID is the unique identifier for each TWT session. This attribute
   11059  * represents the respective TWT session to suspend and resume.
   11060  * Flow ID values from 0 to 254 represent a single TWT session
   11061  * Flow ID value of 255 represents all TWT sessions in TWT NUDGE request
   11062  * and response.
   11063  * If an invalid dialog id is provided, status
   11064  * QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST will be returned.
   11065  *
   11066  * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME: Required (u32)
   11067  * This attribute is used as the SP offset which is the offset from
   11068  * TSF after which the wake happens. The units are in microseconds.
   11069  *
   11070  * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_NEXT_TWT_SIZE: Required (u32)
   11071  * This attribute represents the next TWT subfield size.
   11072  * Value 0 represents 0 bits, 1 represents 32 bits, 2 for 48 bits,
   11073  * and 4 for 64 bits.
   11074  *
   11075  * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_MAC_ADDR: 6-byte MAC address
   11076  * Represents the MAC address of the peer to which TWT Suspend and Resume is
   11077  * being sent. This is used in AP mode to represent the respective
   11078  * client and is a required parameter. In STA mode, this is an optional
   11079  * parameter.
   11080  *
   11081  * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME_TSF: Optional (u64)
   11082  * This field contains absolute TSF value of the time at which the TWT
   11083  * session will be resumed.
   11084  *
   11085  * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_SP_START_OFFSET: Optional (s32)
   11086  * This field will be used when device supports Flexible TWT.
   11087  * This field contains an offset value by which to shift the starting time
   11088  * of the next service period. The value of offset can be negative or positive.
   11089  * If provided, this attribute will override
   11090  * QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME. The units are in microseconds.
   11091  *
   11092  * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_PAD: Attribute used for padding for 64-bit
   11093  * alignment.
   11094  */
   11095 enum qca_wlan_vendor_attr_twt_nudge {
   11096 	QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_INVALID = 0,
   11097 	QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_FLOW_ID = 1,
   11098 	QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME = 2,
   11099 	QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_NEXT_TWT_SIZE = 3,
   11100 	QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_MAC_ADDR = 4,
   11101 	QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME_TSF = 5,
   11102 	QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_SP_START_OFFSET = 6,
   11103 	QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_PAD = 7,
   11104 
   11105 	/* keep last */
   11106 	QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_AFTER_LAST,
   11107 	QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_MAX =
   11108 	QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_AFTER_LAST - 1,
   11109 };
   11110 
   11111 /**
   11112  * enum qca_wlan_vendor_attr_twt_stats: Represents attributes for
   11113  * TWT (Target Wake Time) get statistics and clear statistics request.
   11114  * These attributes are sent as part of
   11115  * %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
   11116  *
   11117  * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_FLOW_ID: Required (u8)
   11118  * Flow ID is the unique identifier for each TWT session. This attribute
   11119  * represents the respective TWT session for get and clear TWT statistics.
   11120  * Flow ID values from 0 to 254 represent a single TWT session
   11121  * Flow ID value of 255 represents all TWT sessions in
   11122  * 1) TWT GET STATISTICS request and response
   11123  * 2) TWT CLEAR STATISTICS request
   11124  *
   11125  * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAC_ADDR: 6-byte MAC address
   11126  * Represents the MAC address of the peer for which TWT Statistics
   11127  * is required.
   11128  * In AP mode this is used to represent the respective
   11129  * client and is a required parameter for
   11130  * 1) TWT GET STATISTICS request and response
   11131  * 2) TWT CLEAR STATISTICS request and response
   11132  * In STA mode, this is an optional parameter.
   11133  *
   11134  * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_SESSION_WAKE_DURATION: Required (u32)
   11135  * This is the duration of the service period in microseconds.
   11136  * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
   11137  *
   11138  * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVG_WAKE_DURATION: Required (u32)
   11139  * Average of the actual wake duration observed so far. Unit is microseconds.
   11140  * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
   11141  *
   11142  * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS: Required (u32)
   11143  * The number of TWT service periods elapsed so far.
   11144  * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
   11145  *
   11146  * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_MIN_WAKE_DURATION: Required (u32)
   11147  * This is the minimum value of the wake duration observed across
   11148  * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS. Unit is
   11149  * microseconds.
   11150  * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
   11151  *
   11152  * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAX_WAKE_DURATION: Required (u32)
   11153  * This is the maximum value of wake duration observed across
   11154  * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS. Unit is
   11155  * microseconds.
   11156  * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
   11157  *
   11158  * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_MPDU: Required (u32)
   11159  * Average number of MPDUs transmitted successfully across
   11160  * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
   11161  * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
   11162  *
   11163  * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_MPDU: Required (u32)
   11164  * Average number of MPDUs received successfully across
   11165  * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
   11166  * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
   11167  *
   11168  * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_PACKET_SIZE: Required (u32)
   11169  * Average number of bytes transmitted successfully across
   11170  * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
   11171  * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
   11172  *
   11173  * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_PACKET_SIZE: Required (u32)
   11174  * Average number of bytes received successfully across
   11175  * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
   11176  * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
   11177  *
   11178  * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_STATUS: Required (u32)
   11179  * Status of the TWT GET STATISTICS request.
   11180  * This contains status values in enum qca_wlan_vendor_twt_status
   11181  * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
   11182  */
   11183 enum qca_wlan_vendor_attr_twt_stats {
   11184 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_INVALID = 0,
   11185 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_FLOW_ID = 1,
   11186 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAC_ADDR = 2,
   11187 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_SESSION_WAKE_DURATION = 3,
   11188 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVG_WAKE_DURATION = 4,
   11189 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS = 5,
   11190 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_MIN_WAKE_DURATION = 6,
   11191 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAX_WAKE_DURATION = 7,
   11192 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_MPDU = 8,
   11193 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_MPDU = 9,
   11194 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_PACKET_SIZE = 10,
   11195 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_PACKET_SIZE = 11,
   11196 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_STATUS = 12,
   11197 
   11198 	/* keep last */
   11199 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_AFTER_LAST,
   11200 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAX =
   11201 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_AFTER_LAST - 1,
   11202 };
   11203 
   11204 /**
   11205  * qca_wlan_twt_get_capa  - Represents the bitmap of TWT capabilities
   11206  * supported by the device and the peer.
   11207  * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_GET_CAPABILITIES
   11208  *
   11209  * @QCA_WLAN_TWT_CAPA_REQUESTOR: TWT requestor support is advertised by
   11210  * TWT non-scheduling STA. This capability is advertised in the HE
   11211  * Capability/Extended Capabilities information element in the
   11212  * Association Request frame by the device.
   11213  *
   11214  * @QCA_WLAN_TWT_CAPA_RESPONDER: TWT responder support is advertised by
   11215  * the TWT scheduling AP. This capability is advertised in the Extended
   11216  * Capabilities/HE Capabilities information element.
   11217  *
   11218  * @QCA_WLAN_TWT_CAPA_BROADCAST: On the requestor side, this indicates support
   11219  * for the broadcast TWT functionality. On the responder side, this indicates
   11220  * support for the role of broadcast TWT scheduling functionality. This
   11221  * capability is advertised in the HE Capabilities information element.
   11222  *
   11223  * @QCA_WLAN_TWT_CAPA_TWT_FLEXIBLE: The device supports flexible TWT schedule.
   11224  * This capability is advertised in the HE Capabilities information element.
   11225  *
   11226  * @QCA_WLAN_TWT_CAPA_REQUIRED: The TWT Required is advertised by AP to indicate
   11227  * that it mandates the associated HE STAs to support TWT. This capability is
   11228  * advertised by AP in the HE Operation Parameters field of the HE Operation
   11229  * information element.
   11230  */
   11231 enum qca_wlan_twt_capa {
   11232 	QCA_WLAN_TWT_CAPA_REQUESTOR = BIT(0),
   11233 	QCA_WLAN_TWT_CAPA_RESPONDER = BIT(1),
   11234 	QCA_WLAN_TWT_CAPA_BROADCAST = BIT(2),
   11235 	QCA_WLAN_TWT_CAPA_FLEXIBLE =  BIT(3),
   11236 	QCA_WLAN_TWT_CAPA_REQUIRED =  BIT(4),
   11237 };
   11238 
   11239 /**
   11240  * enum qca_wlan_vendor_attr_twt_capability  - Represents attributes for TWT
   11241  * get capabilities request type. Used by QCA_WLAN_TWT_GET_CAPABILITIES TWT
   11242  * operation.
   11243  * @QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MAC_ADDR: 6-byte MAC address
   11244  * Represents the MAC address of the peer for which the TWT capabilities
   11245  * are being queried. This is used in AP mode to represent the respective
   11246  * client. In STA mode, this is an optional parameter.
   11247  *
   11248  * @QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_SELF: (u16).
   11249  * Self TWT capabilities. Carries a bitmap of TWT capabilities specified in
   11250  * enum qca_wlan_twt_capa.
   11251  * @QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_PEER: (u16).
   11252  * Peer TWT capabilities. Carries a bitmap of TWT capabilities specified in
   11253  * enum qca_wlan_twt_capa.
   11254  */
   11255 enum qca_wlan_vendor_attr_twt_capability {
   11256 	QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_INVALID = 0,
   11257 	QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MAC_ADDR = 1,
   11258 	QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_SELF = 2,
   11259 	QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_PEER = 3,
   11260 
   11261 	/* keep last */
   11262 	QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_AFTER_LAST,
   11263 	QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MAX =
   11264 	QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_AFTER_LAST - 1,
   11265 };
   11266 
   11267 /**
   11268  * enum qca_wlan_vendor_attr_twt_set_param: Represents attributes for
   11269  * TWT (Target Wake Time) related parameters. It is used when
   11270  * %QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION is set to %QCA_WLAN_TWT_SET_PARAM.
   11271  * These attributes are sent as part of %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
   11272  *
   11273  * @QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AP_AC_VALUE: Optional (u8)
   11274  * This attribute configures AC parameters to be used for all TWT
   11275  * sessions in AP mode.
   11276  * Uses the enum qca_wlan_ac_type values.
   11277  *
   11278  * @QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_UNAVAILABILITY_MODE: Flag attribute,
   11279  * used by TWT responder to indicate unavailability outside of the SPs.
   11280  * Enable (flag attribute present) - Indicates that the TWT responder may be
   11281  * unavailable outside of the SPs of its broadcast TWT schedule.
   11282  * Disable (flag attribute not present) - Indicates that the responder will be
   11283  * available for all TWT sessions (including individual TWT).
   11284  */
   11285 enum qca_wlan_vendor_attr_twt_set_param {
   11286 	QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_INVALID = 0,
   11287 	QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AP_AC_VALUE = 1,
   11288 	QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_UNAVAILABILITY_MODE = 2,
   11289 
   11290 	/* keep last */
   11291 	QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AFTER_LAST,
   11292 	QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_MAX =
   11293 	QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AFTER_LAST - 1,
   11294 };
   11295 
   11296 /**
   11297  * enum qca_wlan_vendor_twt_setup_resp_type - Represents the response type by
   11298  * the TWT responder
   11299  *
   11300  * @QCA_WLAN_VENDOR_TWT_RESP_ALTERNATE: TWT responder suggests TWT
   11301  * parameters that are different from TWT requesting STA suggested
   11302  * or demanded TWT parameters
   11303  * @QCA_WLAN_VENDOR_TWT_RESP_DICTATE: TWT responder demands TWT
   11304  * parameters that are different from TWT requesting STA TWT suggested
   11305  * or demanded parameters
   11306  * @QCA_WLAN_VENDOR_TWT_RESP_REJECT: TWT responder rejects TWT
   11307  * setup
   11308  * @QCA_WLAN_VENDOR_TWT_RESP_ACCEPT: TWT responder accepts the TWT
   11309  * setup.
   11310  */
   11311 enum qca_wlan_vendor_twt_setup_resp_type {
   11312 	QCA_WLAN_VENDOR_TWT_RESP_ALTERNATE = 1,
   11313 	QCA_WLAN_VENDOR_TWT_RESP_DICTATE = 2,
   11314 	QCA_WLAN_VENDOR_TWT_RESP_REJECT = 3,
   11315 	QCA_WLAN_VENDOR_TWT_RESP_ACCEPT = 4,
   11316 };
   11317 
   11318 /**
   11319  * enum qca_wlan_vendor_twt_setup_req_type - Required (u8)
   11320  * Represents the setup type being requested for TWT.
   11321  * @QCA_WLAN_VENDOR_TWT_SETUP_REQUEST: STA is not specifying all the TWT
   11322  * parameters but relying on AP to fill the parameters during the negotiation.
   11323  * @QCA_WLAN_VENDOR_TWT_SETUP_SUGGEST: STA will provide all the suggested
   11324  * values which the AP may accept or AP may provide alternative parameters
   11325  * which the STA may accept.
   11326  * @QCA_WLAN_VENDOR_TWT_SETUP_DEMAND: STA is not willing to accept any
   11327  * alternate parameters than the requested ones.
   11328  */
   11329 enum qca_wlan_vendor_twt_setup_req_type {
   11330 	QCA_WLAN_VENDOR_TWT_SETUP_REQUEST = 1,
   11331 	QCA_WLAN_VENDOR_TWT_SETUP_SUGGEST = 2,
   11332 	QCA_WLAN_VENDOR_TWT_SETUP_DEMAND = 3,
   11333 };
   11334 
   11335 /**
   11336  * enum qca_wlan_roam_scan_event_type - Type of roam scan event
   11337  *
   11338  * Indicates the type of roam scan event sent by firmware/driver.
   11339  *
   11340  * @QCA_WLAN_ROAM_SCAN_TRIGGER_EVENT: Roam scan trigger event type.
   11341  * @QCA_WLAN_ROAM_SCAN_STOP_EVENT: Roam scan stopped event type.
   11342  */
   11343 enum qca_wlan_roam_scan_event_type {
   11344 	QCA_WLAN_ROAM_SCAN_TRIGGER_EVENT = 0,
   11345 	QCA_WLAN_ROAM_SCAN_STOP_EVENT = 1,
   11346 };
   11347 
   11348 /**
   11349  * enum qca_wlan_roam_scan_trigger_reason - Roam scan trigger reason
   11350  *
   11351  * Indicates the reason for triggering roam scan by firmware/driver.
   11352  *
   11353  * @QCA_WLAN_ROAM_SCAN_TRIGGER_REASON_LOW_RSSI: Due to low RSSI of current AP.
   11354  * @QCA_WLAN_ROAM_SCAN_TRIGGER_REASON_HIGH_PER: Due to high packet error rate.
   11355  */
   11356 enum qca_wlan_roam_scan_trigger_reason {
   11357 	QCA_WLAN_ROAM_SCAN_TRIGGER_REASON_LOW_RSSI = 0,
   11358 	QCA_WLAN_ROAM_SCAN_TRIGGER_REASON_HIGH_PER = 1,
   11359 };
   11360 
   11361 /**
   11362  * enum qca_wlan_vendor_attr_roam_scan - Vendor subcmd attributes to report
   11363  * roam scan related details from driver/firmware to user space. enum values
   11364  * are used for NL attributes sent with
   11365  * %QCA_NL80211_VENDOR_SUBCMD_ROAM_SCAN_EVENT sub command.
   11366  */
   11367 enum qca_wlan_vendor_attr_roam_scan {
   11368 	QCA_WLAN_VENDOR_ATTR_ROAM_SCAN_INVALID = 0,
   11369 	/* Encapsulates type of roam scan event being reported. enum
   11370 	 * qca_wlan_roam_scan_event_type describes the possible range of
   11371 	 * values. u32 attribute.
   11372 	 */
   11373 	QCA_WLAN_VENDOR_ATTR_ROAM_SCAN_EVENT_TYPE = 1,
   11374 	/* Encapsulates reason for triggering roam scan. enum
   11375 	 * qca_wlan_roam_scan_trigger_reason describes the possible range of
   11376 	 * values. u32 attribute.
   11377 	 */
   11378 	QCA_WLAN_VENDOR_ATTR_ROAM_SCAN_TRIGGER_REASON = 2,
   11379 
   11380 	/* keep last */
   11381 	QCA_WLAN_VENDOR_ATTR_ROAM_SCAN_AFTER_LAST,
   11382 	QCA_WLAN_VENDOR_ATTR_ROAM_SCAN_MAX =
   11383 	QCA_WLAN_VENDOR_ATTR_ROAM_SCAN_AFTER_LAST - 1,
   11384 };
   11385 
   11386 /**
   11387  * enum qca_wlan_vendor_cfr_data_transport_modes - Defines QCA vendor CFR data
   11388  * transport modes and is used by the attribute
   11389  * QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE as a part of the vendor
   11390  * command QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG.
   11391  * @QCA_WLAN_VENDOR_CFR_DATA_RELAY_FS: Use relayfs to send CFR data.
   11392  * @QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS: Use netlink events to send CFR
   11393  * data. The data shall be encapsulated within
   11394  * QCA_WLAN_VENDOR_ATTR_PEER_CFR_RESP_DATA along with the vendor sub command
   11395  * QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG as an asynchronous event.
   11396  */
   11397 enum qca_wlan_vendor_cfr_data_transport_modes {
   11398 	QCA_WLAN_VENDOR_CFR_DATA_RELAY_FS = 0,
   11399 	QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS = 1,
   11400 };
   11401 
   11402 /**
   11403  * enum qca_wlan_vendor_cfr_method - QCA vendor CFR methods used by
   11404  * attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_METHOD as part of vendor
   11405  * command QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG.
   11406  * @QCA_WLAN_VENDOR_CFR_METHOD_QOS_NULL: CFR method using QoS Null frame
   11407  * @QCA_WLAN_VENDOR_CFR_QOS_NULL_WITH_PHASE: CFR method using QoS Null frame
   11408  * with phase
   11409  * @QCA_WLAN_VENDOR_CFR_PROBE_RESPONSE: CFR method using Probe Response frame
   11410  */
   11411 enum qca_wlan_vendor_cfr_method {
   11412 	QCA_WLAN_VENDOR_CFR_METHOD_QOS_NULL = 0,
   11413 	QCA_WLAN_VENDOR_CFR_QOS_NULL_WITH_PHASE = 1,
   11414 	QCA_WLAN_VENDOR_CFR_PROBE_RESPONSE = 2,
   11415 };
   11416 
   11417 /**
   11418  * enum qca_wlan_vendor_cfr_capture_type - QCA vendor CFR capture type used by
   11419  * attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_TYPE.
   11420  * @QCA_WLAN_VENDOR_CFR_DIRECT_FTM: Filter directed FTM ACK frames.
   11421  * @QCA_WLAN_VENDOR_CFR_ALL_FTM_ACK: Filter all FTM ACK frames.
   11422  * @QCA_WLAN_VENDOR_CFR_DIRECT_NDPA_NDP: Filter NDPA NDP directed frames.
   11423  * @QCA_WLAN_VENDOR_CFR_TA_RA: Filter frames based on TA/RA/Subtype which
   11424  * is provided by one or more of below attributes:
   11425  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA
   11426  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA
   11427  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK
   11428  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK
   11429  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER
   11430  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER
   11431  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER
   11432  * @QCA_WLAN_CFR_ALL_PACKET: Filter all packets.
   11433  * @QCA_WLAN_VENDOR_CFR_NDPA_NDP_ALL: Filter all NDPA NDP frames.
   11434  */
   11435 enum qca_wlan_vendor_cfr_capture_type {
   11436 	QCA_WLAN_VENDOR_CFR_DIRECT_FTM = 0,
   11437 	QCA_WLAN_VENDOR_CFR_ALL_FTM_ACK = 1,
   11438 	QCA_WLAN_VENDOR_CFR_DIRECT_NDPA_NDP = 2,
   11439 	QCA_WLAN_VENDOR_CFR_TA_RA = 3,
   11440 	QCA_WLAN_VENDOR_CFR_ALL_PACKET = 4,
   11441 	QCA_WLAN_VENDOR_CFR_NDPA_NDP_ALL = 5,
   11442 };
   11443 
   11444 /**
   11445  * enum qca_wlan_vendor_peer_cfr_capture_attr - Used by the vendor command
   11446  * QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG to configure peer
   11447  * Channel Frequency Response capture parameters and enable periodic CFR
   11448  * capture.
   11449  *
   11450  * @QCA_WLAN_VENDOR_ATTR_CFR_PEER_MAC_ADDR: Optional (6-byte MAC address)
   11451  * MAC address of peer. This is for CFR version 1 only.
   11452  *
   11453  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE: Required (flag)
   11454  * Enable peer CFR capture. This attribute is mandatory to enable peer CFR
   11455  * capture. If this attribute is not present, peer CFR capture is disabled.
   11456  *
   11457  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_BANDWIDTH: Optional (u8)
   11458  * BW of measurement, attribute uses the values in enum nl80211_chan_width
   11459  * Supported values: 20, 40, 80, 80+80, 160.
   11460  * Note that all targets may not support all bandwidths.
   11461  * This attribute is mandatory for version 1 if attribute
   11462  * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used.
   11463  *
   11464  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_PERIODICITY: Optional (u32)
   11465  * Periodicity of CFR measurement in milliseconds.
   11466  * Periodicity should be a multiple of Base timer.
   11467  * Current Base timer value supported is 10 milliseconds (default).
   11468  * 0 for one shot capture.
   11469  * This attribute is mandatory for version 1 if attribute
   11470  * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used.
   11471  *
   11472  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_METHOD: Optional (u8)
   11473  * Method used to capture Channel Frequency Response.
   11474  * Attribute uses the values defined in enum qca_wlan_vendor_cfr_method.
   11475  * This attribute is mandatory for version 1 if attribute
   11476  * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used.
   11477  *
   11478  * @QCA_WLAN_VENDOR_ATTR_PERIODIC_CFR_CAPTURE_ENABLE: Optional (flag)
   11479  * Enable periodic CFR capture.
   11480  * This attribute is mandatory for version 1 to enable Periodic CFR capture.
   11481  * If this attribute is not present, periodic CFR capture is disabled.
   11482  *
   11483  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_VERSION: Optional (u8)
   11484  * Value is 1 or 2 since there are two versions of CFR capture. Two versions
   11485  * can't be enabled at same time. This attribute is mandatory if target
   11486  * support both versions and use one of them.
   11487  *
   11488  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE_GROUP_BITMAP: Optional (u32)
   11489  * This attribute is mandatory for version 2 if
   11490  * QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY is used.
   11491  * Bits 15:0 bitfield indicates which group is to be enabled.
   11492  * Bits 31:16 Reserved for future use.
   11493  *
   11494  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_DURATION: Optional (u32)
   11495  * CFR capture duration in microsecond. This attribute is mandatory for
   11496  * version 2 if attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_INTERVAL is used.
   11497  *
   11498  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_INTERVAL: Optional (u32)
   11499  * CFR capture interval in microsecond. This attribute is mandatory for
   11500  * version 2 if attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_DURATION is used.
   11501  *
   11502  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_TYPE: Optional (u32)
   11503  * CFR capture type is defined in enum qca_wlan_vendor_cfr_capture_type.
   11504  * This attribute is mandatory for version 2.
   11505  *
   11506  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_UL_MU_MASK: Optional (u64)
   11507  * Bitfield indicating which user in the current UL MU transmissions are
   11508  * enabled for CFR capture. Bits 36 to 0 indicate user indexes for 37 users in
   11509  * a UL MU transmission. If bit 0 is set, the CFR capture will happen for user
   11510  * index 0 in the current UL MU transmission. If bits 0 and 2 are set, CFR
   11511  * capture for UL MU TX corresponds to user indices 0 and 2. Bits 63:37 are
   11512  * reserved for future use. This is for CFR version 2 only.
   11513  *
   11514  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_FREEZE_TLV_DELAY_COUNT: Optional (u32)
   11515  * Indicates the number of consecutive RX frames to be skipped before CFR
   11516  * capture is enabled again. This is for CFR version 2 only.
   11517  *
   11518  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TABLE: Nested attribute containing
   11519  * one or more %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY attributes.
   11520  *
   11521  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY: Nested attribute containing
   11522  * the following group attributes:
   11523  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NUMBER,
   11524  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA,
   11525  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA,
   11526  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK,
   11527  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK,
   11528  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NSS,
   11529  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_BW,
   11530  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER,
   11531  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER,
   11532  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER
   11533  *
   11534  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NUMBER: Optional (u32)
   11535  * Target supports multiple groups for some configurations. The group number
   11536  * can be any value between 0 and 15. This is for CFR version 2 only.
   11537  *
   11538  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA: Optional (6-byte MAC address)
   11539  * Transmitter address which is used to filter frames. This MAC address takes
   11540  * effect with QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK. This is for CFR
   11541  * version 2 only.
   11542  *
   11543  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA: Optional (6-byte MAC address)
   11544  * Receiver address which is used to filter frames. This MAC address takes
   11545  * effect with QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK. This is for CFR
   11546  * version 2 only.
   11547  *
   11548  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK: Optional (6-byte MAC address)
   11549  * Mask of transmitter address which is used to filter frames. This is for CFR
   11550  * version 2 only.
   11551  *
   11552  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK: Optional (6-byte MAC address)
   11553  * Mask of receiver address which is used to filter frames. This is for CFR
   11554  * version 2 only.
   11555  *
   11556  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NSS: Optional (u32)
   11557  * Indicates frames with a specific NSS will be filtered for CFR capture.
   11558  * This is for CFR version 2 only. This is a bitmask. Bits 7:0 request CFR
   11559  * capture to be done for frames matching the NSS specified within this bitmask.
   11560  * Bits 31:8 are reserved for future use. Bits 7:0 map to NSS:
   11561  *     bit 0 : NSS 1
   11562  *     bit 1 : NSS 2
   11563  *     ...
   11564  *     bit 7 : NSS 8
   11565  *
   11566  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_BW: Optional (u32)
   11567  * Indicates frames with a specific bandwidth will be filtered for CFR capture.
   11568  * This is for CFR version 2 only. This is a bitmask. Bits 4:0 request CFR
   11569  * capture to be done for frames matching the bandwidths specified within this
   11570  * bitmask. Bits 31:5 are reserved for future use. Bits 4:0 map to bandwidth
   11571  * numerated in enum nl80211_band (although not all bands may be supported
   11572  * by a given device).
   11573  *
   11574  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER: Optional (u32)
   11575  * Management frames matching the subtype filter categories will be filtered in
   11576  * by MAC for CFR capture. This is a bitmask in which each bit represents the
   11577  * corresponding Management frame subtype value per IEEE Std 802.11-2016,
   11578  * 9.2.4.1.3 Type and Subtype subfields. For example, Beacon frame control type
   11579  * is 8 and its value is 1 << 8 = 0x100. This is for CFR version 2 only.
   11580  *
   11581  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER: Optional (u32)
   11582  * Control frames matching the subtype filter categories will be filtered in by
   11583  * MAC for CFR capture. This is a bitmask in which each bit represents the
   11584  * corresponding Control frame subtype value per IEEE Std 802.11-2016,
   11585  * 9.2.4.1.3 Type and Subtype subfields. This is for CFR version 2 only.
   11586  *
   11587  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER: Optional (u32)
   11588  * Data frames matching the subtype filter categories will be filtered in by
   11589  * MAC for CFR capture. This is a bitmask in which each bit represents the
   11590  * corresponding Data frame subtype value per IEEE Std 802.11-2016,
   11591  * 9.2.4.1.3 Type and Subtype subfields. This is for CFR version 2 only.
   11592  *
   11593  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE: Optional (u8)
   11594  * Userspace can use this attribute to specify the driver about which transport
   11595  * mode shall be used by the driver to send CFR data to userspace. Uses values
   11596  * from enum qca_wlan_vendor_cfr_data_transport_modes. When this attribute is
   11597  * not present, the driver shall use the default transport mechanism which is
   11598  * QCA_WLAN_VENDOR_CFR_DATA_RELAY_FS.
   11599  *
   11600  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_RECEIVER_PID: Optional (u32)
   11601  * Userspace can use this attribute to specify the nl port id of the application
   11602  * which receives the CFR data and processes it further so that the drivers can
   11603  * unicast the netlink events to a specific application. Optionally included
   11604  * when QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE is set to
   11605  * QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS, not required otherwise. The drivers
   11606  * shall multicast the netlink events when this attribute is not included.
   11607  *
   11608  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_RESP_DATA: Required (NLA_BINARY).
   11609  * This attribute will be used by the driver to encapsulate and send CFR data
   11610  * to userspace along with QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG as an
   11611  * asynchronous event when the driver is configured to send CFR data using
   11612  * netlink events with %QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS.
   11613  *
   11614  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_PAD: Attribute used for padding for 64-bit
   11615  * alignment.
   11616  */
   11617 enum qca_wlan_vendor_peer_cfr_capture_attr {
   11618 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_INVALID = 0,
   11619 	QCA_WLAN_VENDOR_ATTR_CFR_PEER_MAC_ADDR = 1,
   11620 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE = 2,
   11621 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_BANDWIDTH = 3,
   11622 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_PERIODICITY = 4,
   11623 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_METHOD = 5,
   11624 	QCA_WLAN_VENDOR_ATTR_PERIODIC_CFR_CAPTURE_ENABLE = 6,
   11625 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_VERSION = 7,
   11626 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE_GROUP_BITMAP = 8,
   11627 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_DURATION = 9,
   11628 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_INTERVAL = 10,
   11629 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_TYPE = 11,
   11630 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_UL_MU_MASK = 12,
   11631 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_FREEZE_TLV_DELAY_COUNT = 13,
   11632 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TABLE = 14,
   11633 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY = 15,
   11634 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NUMBER = 16,
   11635 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA = 17,
   11636 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA = 18,
   11637 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK = 19,
   11638 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK = 20,
   11639 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NSS = 21,
   11640 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_BW = 22,
   11641 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER = 23,
   11642 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER = 24,
   11643 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER = 25,
   11644 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE = 26,
   11645 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_RECEIVER_PID = 27,
   11646 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_RESP_DATA = 28,
   11647 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_PAD = 29,
   11648 
   11649 	/* Keep last */
   11650 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_AFTER_LAST,
   11651 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_MAX =
   11652 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_AFTER_LAST - 1,
   11653 };
   11654 
   11655 /**
   11656  * enum qca_wlan_throughput_level - Current throughput level
   11657  *
   11658  * Indicates the current level of throughput calculated by the driver. The
   11659  * driver may choose different thresholds to decide whether the throughput level
   11660  * is low or medium or high based on variety of parameters like physical link
   11661  * capacity of the current connection, the number of packets being dispatched
   11662  * per second, etc. The throughput level events might not be consistent with the
   11663  * actual current throughput value being observed.
   11664  *
   11665  * @QCA_WLAN_THROUGHPUT_LEVEL_LOW: Low level of throughput
   11666  * @QCA_WLAN_THROUGHPUT_LEVEL_MEDIUM: Medium level of throughput
   11667  * @QCA_WLAN_THROUGHPUT_LEVEL_HIGH: High level of throughput
   11668  */
   11669 enum qca_wlan_throughput_level {
   11670 	QCA_WLAN_THROUGHPUT_LEVEL_LOW = 0,
   11671 	QCA_WLAN_THROUGHPUT_LEVEL_MEDIUM = 1,
   11672 	QCA_WLAN_THROUGHPUT_LEVEL_HIGH = 2,
   11673 };
   11674 
   11675 /**
   11676  * enum qca_wlan_vendor_attr_throughput_change - Vendor subcmd attributes to
   11677  * report throughput changes from the driver to user space. enum values are used
   11678  * for netlink attributes sent with
   11679  * %QCA_NL80211_VENDOR_SUBCMD_THROUGHPUT_CHANGE_EVENT sub command.
   11680  */
   11681 enum qca_wlan_vendor_attr_throughput_change {
   11682 	QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_INVALID = 0,
   11683 	/* Indicates the direction of throughput in which the change is being
   11684 	 * reported. u8 attribute. Value is 0 for TX and 1 for RX.
   11685 	 */
   11686 	QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_DIRECTION = 1,
   11687 	/* Indicates the newly observed throughput level. enum
   11688 	 * qca_wlan_throughput_level describes the possible range of values.
   11689 	 * u8 attribute.
   11690 	 */
   11691 	QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_THROUGHPUT_LEVEL = 2,
   11692 	/* Indicates the driver's guidance on the new value to be set to
   11693 	 * kernel's TCP parameter tcp_limit_output_bytes. u32 attribute. The
   11694 	 * driver may optionally include this attribute.
   11695 	 */
   11696 	QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_LIMIT_OUTPUT_BYTES = 3,
   11697 	/* Indicates the driver's guidance on the new value to be set to
   11698 	 * kernel's TCP parameter tcp_adv_win_scale. s8 attribute. Possible
   11699 	 * values are from -31 to 31. The driver may optionally include this
   11700 	 * attribute.
   11701 	 */
   11702 	QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_ADV_WIN_SCALE = 4,
   11703 	/* Indicates the driver's guidance on the new value to be set to
   11704 	 * kernel's TCP parameter tcp_delack_seg. u32 attribute. The driver may
   11705 	 * optionally include this attribute.
   11706 	 */
   11707 	QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_DELACK_SEG = 5,
   11708 
   11709 	/* keep last */
   11710 	QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_AFTER_LAST,
   11711 	QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_MAX =
   11712 	QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_AFTER_LAST - 1,
   11713 };
   11714 
   11715 /**
   11716  * enum qca_coex_config_profiles - This enum defines different types of
   11717  * traffic streams that can be prioritized one over the other during coex
   11718  * scenarios.
   11719  * The types defined in this enum are categorized in the below manner.
   11720  * 0 - 31 values corresponds to WLAN
   11721  * 32 - 63 values corresponds to BT
   11722  * 64 - 95 values corresponds to Zigbee
   11723  * @QCA_WIFI_STA_DISCOVERY: Prioritize discovery frames for WLAN STA
   11724  * @QCA_WIFI_STA_CONNECTION: Prioritize connection frames for WLAN STA
   11725  * @QCA_WIFI_STA_CLASS_3_MGMT: Prioritize class 3 mgmt frames for WLAN STA
   11726  * @QCA_WIFI_STA_DATA : Prioritize data frames for WLAN STA
   11727  * @QCA_WIFI_STA_ALL: Priritize all frames for WLAN STA
   11728  * @QCA_WIFI_SAP_DISCOVERY: Prioritize discovery frames for WLAN SAP
   11729  * @QCA_WIFI_SAP_CONNECTION: Prioritize connection frames for WLAN SAP
   11730  * @QCA_WIFI_SAP_CLASS_3_MGMT: Prioritize class 3 mgmt frames for WLAN SAP
   11731  * @QCA_WIFI_SAP_DATA: Prioritize data frames for WLAN SAP
   11732  * @QCA_WIFI_SAP_ALL: Prioritize all frames for WLAN SAP
   11733  * @QCA_BT_A2DP: Prioritize BT A2DP
   11734  * @QCA_BT_BLE: Prioritize BT BLE
   11735  * @QCA_BT_SCO: Prioritize BT SCO
   11736  * @QCA_ZB_LOW: Prioritize Zigbee Low
   11737  * @QCA_ZB_HIGH: Prioritize Zigbee High
   11738  */
   11739 enum qca_coex_config_profiles {
   11740 	/* 0 - 31 corresponds to WLAN */
   11741 	QCA_WIFI_STA_DISCOVERY = 0,
   11742 	QCA_WIFI_STA_CONNECTION = 1,
   11743 	QCA_WIFI_STA_CLASS_3_MGMT = 2,
   11744 	QCA_WIFI_STA_DATA = 3,
   11745 	QCA_WIFI_STA_ALL = 4,
   11746 	QCA_WIFI_SAP_DISCOVERY = 5,
   11747 	QCA_WIFI_SAP_CONNECTION = 6,
   11748 	QCA_WIFI_SAP_CLASS_3_MGMT = 7,
   11749 	QCA_WIFI_SAP_DATA = 8,
   11750 	QCA_WIFI_SAP_ALL = 9,
   11751 	QCA_WIFI_CASE_MAX = 31,
   11752 	/* 32 - 63 corresponds to BT */
   11753 	QCA_BT_A2DP = 32,
   11754 	QCA_BT_BLE = 33,
   11755 	QCA_BT_SCO = 34,
   11756 	QCA_BT_CASE_MAX = 63,
   11757 	/* 64 - 95 corresponds to Zigbee */
   11758 	QCA_ZB_LOW = 64,
   11759 	QCA_ZB_HIGH = 65,
   11760 	QCA_ZB_CASE_MAX = 95,
   11761 	/* 0xff is default value if the u8 profile value is not set. */
   11762 	QCA_COEX_CONFIG_PROFILE_DEFAULT_VALUE = 255
   11763 };
   11764 
   11765 /**
   11766  * enum qca_vendor_attr_coex_config_types - Coex configurations types.
   11767  * This enum defines the valid set of values of coex configuration types. These
   11768  * values may used by attribute
   11769  * %QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE.
   11770  *
   11771  * @QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_RESET: Reset all the
   11772  *	weights to default values.
   11773  * @QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_START: Start to config
   11774  *	weights with configurability value.
   11775  */
   11776 enum qca_vendor_attr_coex_config_types {
   11777 	QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_INVALID = 0,
   11778 	QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_RESET = 1,
   11779 	QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_START = 2,
   11780 };
   11781 
   11782 /**
   11783  * enum qca_vendor_attr_coex_config - Specifies vendor coex config attributes
   11784  *
   11785  * @QCA_VENDOR_ATTR_COEX_CONFIG_PROFILES: This attribute contains variable
   11786  * length array of 8-bit values from enum qca_coex_config_profiles.
   11787  * FW will prioritize the profiles in the order given in the array encapsulated
   11788  * in this attribute.
   11789  * For example:
   11790  * -----------------------------------------------------------------------
   11791  * |     1       |       34       |        32         |         65       |
   11792  * -----------------------------------------------------------------------
   11793  * If the attribute contains the values defined in above array then it means
   11794  * 1) Wifi STA connection has priority over BT_SCO, BT_A2DP and ZIGBEE HIGH.
   11795  * 2) BT_SCO has priority over BT_A2DP.
   11796  * 3) BT_A2DP has priority over ZIGBEE HIGH.
   11797  * Profiles which are not listed in this array shall not be preferred over the
   11798  * profiles which are listed in the array as a part of this attribute.
   11799  */
   11800 enum qca_vendor_attr_coex_config {
   11801 	QCA_VENDOR_ATTR_COEX_CONFIG_INVALID = 0,
   11802 	QCA_VENDOR_ATTR_COEX_CONFIG_PROFILES = 1,
   11803 
   11804 	/* Keep last */
   11805 	QCA_VENDOR_ATTR_COEX_CONFIG_AFTER_LAST,
   11806 	QCA_VENDOR_ATTR_COEX_CONFIG_MAX =
   11807 	QCA_VENDOR_ATTR_COEX_CONFIG_AFTER_LAST - 1,
   11808 };
   11809 
   11810 /**
   11811  * enum qca_vendor_attr_coex_config_three_way - Specifies vendor coex config
   11812  * attributes
   11813  * Attributes for data used by QCA_NL80211_VENDOR_SUBCMD_COEX_CONFIG
   11814  *
   11815  * QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE: u32 attribute.
   11816  * Indicate config type.
   11817  * The config types are 32-bit values from qca_vendor_attr_coex_config_types
   11818  *
   11819  * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_1: u32 attribute.
   11820  *	Indicate the Priority 1 profiles.
   11821  *	The profiles are 8-bit values from enum qca_coex_config_profiles.
   11822  *	In same priority level, maximum to 4 profiles can be set here.
   11823  * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_2: u32 attribute.
   11824  *	Indicate the Priority 2 profiles.
   11825  *	The profiles are 8-bit values from enum qca_coex_config_profiles.
   11826  *	In same priority level, maximum to 4 profiles can be set here.
   11827  * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_3: u32 attribute.
   11828  *	Indicate the Priority 3 profiles.
   11829  *	The profiles are 8-bit values from enum qca_coex_config_profiles.
   11830  *	In same priority level, maximum to 4 profiles can be set here.
   11831  * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_4: u32 attribute.
   11832  *	Indicate the Priority 4 profiles.
   11833  *	The profiles are 8-bit values from enum qca_coex_config_profiles.
   11834  *	In same priority level, maximum to 4 profiles can be set here.
   11835  * NOTE:
   11836  * Limitations for QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_x priority
   11837  * arrangement:
   11838  *	1: In the same u32 attribute (priority x), the profiles enum values own
   11839  *	same priority level.
   11840  *	2: 0xff is default value if the u8 profile value is not set.
   11841  *	3: max to 4 rules/profiles in same priority level.
   11842  *	4: max to 4 priority level (priority 1 - priority 4)
   11843  *	5: one priority level only supports one scenario from WLAN/BT/ZB,
   11844  *	hybrid rules not support.
   11845  *	6: if WMI_COEX_CONFIG_THREE_WAY_COEX_RESET called, priority x will
   11846  *	remain blank to reset all parameters.
   11847  * For example:
   11848  *
   11849  *	If the attributes as follow:
   11850  *	priority 1:
   11851  *	------------------------------------
   11852  *	|  0xff  |    0   |   1   |    2   |
   11853  *	------------------------------------
   11854  *	priority 2:
   11855  *	-------------------------------------
   11856  *	|  0xff  |  0xff  |  0xff  |   32   |
   11857  *	-------------------------------------
   11858  *	priority 3:
   11859  *	-------------------------------------
   11860  *	|  0xff  |  0xff  |  0xff  |   65   |
   11861  *	-------------------------------------
   11862  *	then it means:
   11863  *	1: WIFI_STA_DISCOVERY, WIFI_STA_CLASS_3_MGMT and WIFI_STA_CONNECTION
   11864  *		owns same priority level.
   11865  *	2: WIFI_STA_DISCOVERY, WIFI_STA_CLASS_3_MGMT and WIFI_STA_CONNECTION
   11866  *		has priority over BT_A2DP and ZB_HIGH.
   11867  *	3: BT_A2DP has priority over ZB_HIGH.
   11868  */
   11869 enum qca_vendor_attr_coex_config_three_way {
   11870 	QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_INVALID = 0,
   11871 	QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE = 1,
   11872 	QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_1 = 2,
   11873 	QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_2 = 3,
   11874 	QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_3 = 4,
   11875 	QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_4 = 5,
   11876 
   11877 	/* Keep last */
   11878 	QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_AFTER_LAST,
   11879 	QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_MAX =
   11880 	QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_AFTER_LAST - 1,
   11881 };
   11882 
   11883 /**
   11884  * enum qca_wlan_vendor_attr_link_properties - Represent the link properties.
   11885  *
   11886  * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR: MAC address of the peer
   11887  * (STA/AP) for the connected link.
   11888  * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_STA_FLAGS: Attribute containing a
   11889  * &struct nl80211_sta_flag_update for the respective connected link. MAC
   11890  * address of the peer represented by
   11891  * QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR.
   11892  */
   11893 enum qca_wlan_vendor_attr_link_properties {
   11894 	QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_INVALID = 0,
   11895 	/* 1 - 3 are reserved */
   11896 	QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR = 4,
   11897 	QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_STA_FLAGS = 5,
   11898 
   11899 	/* Keep last */
   11900 	QCA_VENDOR_ATTR_LINK_PROPERTIES_AFTER_LAST,
   11901 	QCA_VENDOR_ATTR_LINK_PROPERTIES_MAX =
   11902 	QCA_VENDOR_ATTR_LINK_PROPERTIES_AFTER_LAST - 1,
   11903 };
   11904 
   11905 /**
   11906  * enum qca_vendor_attr_peer_stats_cache_type - Represents peer stats cache type
   11907  * This enum defines the valid set of values of peer stats cache types. These
   11908  * values are used by attribute
   11909  * %QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE.
   11910  *
   11911  * @QCA_WLAN_VENDOR_ATTR_PEER_TX_RATE_STATS: Represents peer TX rate statistics
   11912  * @QCA_WLAN_VENDOR_ATTR_PEER_RX_RATE_STATS: Represents peer RX rate statistics
   11913  * @QCA_WLAN_VENDOR_ATTR_PEER_TX_SOJOURN_STATS: Represents peer TX sojourn
   11914  * statistics
   11915  */
   11916 enum qca_vendor_attr_peer_stats_cache_type {
   11917 	QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE_INVALID = 0,
   11918 
   11919 	QCA_WLAN_VENDOR_ATTR_PEER_TX_RATE_STATS,
   11920 	QCA_WLAN_VENDOR_ATTR_PEER_RX_RATE_STATS,
   11921 	QCA_WLAN_VENDOR_ATTR_PEER_TX_SOJOURN_STATS,
   11922 };
   11923 
   11924 /**
   11925  * enum qca_wlan_vendor_attr_peer_stats_cache_params - This enum defines
   11926  * attributes required for QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH
   11927  * Information in these attributes is used to flush peer rate statistics from
   11928  * the driver to user application.
   11929  *
   11930  * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE: Unsigned 32-bit attribute
   11931  * Indicate peer statistics cache type.
   11932  * The statistics types are 32-bit values from
   11933  * enum qca_vendor_attr_peer_stats_cache_type.
   11934  * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_MAC: Unsigned 8-bit array
   11935  * of size 6 octets, representing the peer MAC address.
   11936  * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_DATA: Opaque data attribute
   11937  * containing buffer of statistics to send to application layer entity.
   11938  * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_COOKIE: Unsigned 64-bit attribute
   11939  * representing a cookie for peer unique session.
   11940  * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PAD: Attribute used for padding for
   11941  * 64-bit alignment.
   11942  */
   11943 enum qca_wlan_vendor_attr_peer_stats_cache_params {
   11944 	QCA_WLAN_VENDOR_ATTR_PEER_STATS_INVALID = 0,
   11945 
   11946 	QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE = 1,
   11947 	QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_MAC = 2,
   11948 	QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_DATA = 3,
   11949 	QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_COOKIE = 4,
   11950 	QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PAD = 5,
   11951 
   11952 	/* Keep last */
   11953 	QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_LAST,
   11954 	QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_MAX =
   11955 		QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_LAST - 1
   11956 };
   11957 
   11958 /**
   11959  * enum qca_mpta_helper_attr_zigbee_state - Current Zigbee state
   11960  * This enum defines all the possible states of Zigbee, which can be
   11961  * delivered in the QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_STATE attribute.
   11962  *
   11963  * @ZIGBEE_IDLE: Zigbee in idle state
   11964  * @ZIGBEE_FORM_NETWORK: Zigbee forming network
   11965  * @ZIGBEE_WAIT_JOIN: Zigbee waiting for joining network
   11966  * @ZIGBEE_JOIN: Zigbee joining network
   11967  * @ZIGBEE_NETWORK_UP: Zigbee network is up
   11968  * @ZIGBEE_HMI: Zigbee in HMI mode
   11969  */
   11970 enum qca_mpta_helper_attr_zigbee_state {
   11971 	ZIGBEE_IDLE = 0,
   11972 	ZIGBEE_FORM_NETWORK = 1,
   11973 	ZIGBEE_WAIT_JOIN = 2,
   11974 	ZIGBEE_JOIN = 3,
   11975 	ZIGBEE_NETWORK_UP = 4,
   11976 	ZIGBEE_HMI = 5,
   11977 };
   11978 
   11979 /*
   11980  * enum qca_mpta_helper_vendor_attr - Attributes used in vendor sub-command
   11981  * QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG.
   11982  */
   11983 enum qca_mpta_helper_vendor_attr {
   11984 	QCA_MPTA_HELPER_VENDOR_ATTR_INVALID = 0,
   11985 	/* Optional attribute used to update Zigbee state.
   11986 	 * enum qca_mpta_helper_attr_zigbee_state.
   11987 	 * NLA_U32 attribute.
   11988 	 */
   11989 	QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_STATE = 1,
   11990 	/* Optional attribute used to configure WLAN duration for Shape-OCS
   11991 	 * during interrupt.
   11992 	 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_NON_WLAN_DURATION.
   11993 	 * Value range 0 ~ 300 (ms).
   11994 	 * NLA_U32 attribute.
   11995 	 */
   11996 	QCA_MPTA_HELPER_VENDOR_ATTR_INT_WLAN_DURATION = 2,
   11997 	/* Optional attribute used to configure non-WLAN duration for Shape-OCS
   11998 	 * during interrupt.
   11999 	 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_WLAN_DURATION.
   12000 	 * Value range 0 ~ 300 (ms).
   12001 	 * NLA_U32 attribute.
   12002 	 */
   12003 	QCA_MPTA_HELPER_VENDOR_ATTR_INT_NON_WLAN_DURATION  = 3,
   12004 	/* Optional attribute used to configure WLAN duration for Shape-OCS
   12005 	 * monitor period.
   12006 	 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_NON_WLAN_DURATION.
   12007 	 * Value range 0 ~ 300 (ms)
   12008 	 * NLA_U32 attribute
   12009 	 */
   12010 	QCA_MPTA_HELPER_VENDOR_ATTR_MON_WLAN_DURATION = 4,
   12011 	/* Optional attribute used to configure non-WLAN duration for Shape-OCS
   12012 	 * monitor period.
   12013 	 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_WLAN_DURATION.
   12014 	 * Value range 0 ~ 300 (ms)
   12015 	 * NLA_U32 attribute
   12016 	 */
   12017 	QCA_MPTA_HELPER_VENDOR_ATTR_MON_NON_WLAN_DURATION  = 5,
   12018 	/* Optional attribute used to configure OCS interrupt duration.
   12019 	 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_OCS_DURATION.
   12020 	 * Value range 1000 ~ 20000 (ms)
   12021 	 * NLA_U32 attribute
   12022 	 */
   12023 	QCA_MPTA_HELPER_VENDOR_ATTR_INT_OCS_DURATION  = 6,
   12024 	/* Optional attribute used to configure OCS monitor duration.
   12025 	 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_OCS_DURATION.
   12026 	 * Value range 1000 ~ 20000 (ms)
   12027 	 * NLA_U32 attribute
   12028 	 */
   12029 	QCA_MPTA_HELPER_VENDOR_ATTR_MON_OCS_DURATION  = 7,
   12030 	/* Optional attribute used to notify WLAN firmware the current Zigbee
   12031 	 * channel.
   12032 	 * Value range 11 ~ 26
   12033 	 * NLA_U32 attribute
   12034 	 */
   12035 	QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_CHAN = 8,
   12036 	/* Optional attribute used to configure WLAN mute duration.
   12037 	 * Value range 0 ~ 400 (ms)
   12038 	 * NLA_U32 attribute
   12039 	 */
   12040 	QCA_MPTA_HELPER_VENDOR_ATTR_WLAN_MUTE_DURATION	= 9,
   12041 
   12042 	/* keep last */
   12043 	QCA_MPTA_HELPER_VENDOR_ATTR_AFTER_LAST,
   12044 	QCA_MPTA_HELPER_VENDOR_ATTR_MAX =
   12045 		QCA_MPTA_HELPER_VENDOR_ATTR_AFTER_LAST - 1
   12046 };
   12047 
   12048 /**
   12049  * enum qca_wlan_vendor_beacon_reporting_op_types - Defines different types of
   12050  * operations for which %QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING can be used.
   12051  * Will be used by %QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE.
   12052  *
   12053  * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START: Sent by userspace to the driver
   12054  * to request the driver to start reporting Beacon frames.
   12055  * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_STOP: Sent by userspace to the driver to
   12056  * request the driver to stop reporting Beacon frames.
   12057  * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO: Sent by the driver to
   12058  * userspace to report received Beacon frames.
   12059  * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE: Sent by the driver to userspace
   12060  * to indicate that the driver is going to pause reporting Beacon frames.
   12061  */
   12062 enum qca_wlan_vendor_beacon_reporting_op_types {
   12063 	QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START = 0,
   12064 	QCA_WLAN_VENDOR_BEACON_REPORTING_OP_STOP = 1,
   12065 	QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO = 2,
   12066 	QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE = 3,
   12067 };
   12068 
   12069 /**
   12070  * enum qca_wlan_vendor_beacon_reporting_pause_reasons - Defines different types
   12071  * of reasons for which the driver is pausing reporting Beacon frames. Will be
   12072  * used by %QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAUSE_REASON.
   12073  *
   12074  * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_UNSPECIFIED: For unspecified
   12075  * reasons.
   12076  * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_SCAN_STARTED: When the
   12077  * driver/firmware is starting a scan.
   12078  * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_DISCONNECTED: When the
   12079  * driver/firmware disconnects from the ESS and indicates the disconnection to
   12080  * userspace (non-seamless roaming case). This reason code will be used by the
   12081  * driver/firmware to indicate stopping of beacon report events. Userspace will
   12082  * need to start beacon reporting again (if desired) by sending vendor command
   12083  * QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING with
   12084  * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE set to
   12085  * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START after the next connection is
   12086  * completed.
   12087  */
   12088 enum qca_wlan_vendor_beacon_reporting_pause_reasons {
   12089 	QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_UNSPECIFIED = 0,
   12090 	QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_SCAN_STARTED = 1,
   12091 	QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_DISCONNECTED = 2,
   12092 };
   12093 
   12094 /*
   12095  * enum qca_wlan_vendor_attr_beacon_reporting_params - List of attributes used
   12096  * in vendor sub-command QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING.
   12097  */
   12098 enum qca_wlan_vendor_attr_beacon_reporting_params {
   12099 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_INVALID = 0,
   12100 	/* Specifies the type of operation that the vendor command/event is
   12101 	 * intended for. Possible values for this attribute are defined in
   12102 	 * enum qca_wlan_vendor_beacon_reporting_op_types. u32 attribute.
   12103 	 */
   12104 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE = 1,
   12105 	/* Optionally set by userspace to request the driver to report Beacon
   12106 	 * frames using asynchronous vendor events when the
   12107 	 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
   12108 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START. NLA_FLAG attribute.
   12109 	 * If this flag is not set, the driver will only update Beacon frames in
   12110 	 * cfg80211 scan cache but not send any vendor events.
   12111 	 */
   12112 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_ACTIVE_REPORTING = 2,
   12113 	/* Optionally used by userspace to request the driver/firmware to report
   12114 	 * Beacon frames periodically when the
   12115 	 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
   12116 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START.
   12117 	 * u32 attribute, indicates the period of Beacon frames to be reported
   12118 	 * and in the units of beacon interval.
   12119 	 * If this attribute is missing in the command, then the default value
   12120 	 * of 1 will be assumed by driver, i.e., to report every Beacon frame.
   12121 	 * Zero is an invalid value.
   12122 	 * If a valid value is received for this attribute, the driver will
   12123 	 * update the cfg80211 scan cache periodically as per the value received
   12124 	 * in this attribute in addition to updating the cfg80211 scan cache
   12125 	 * when there is significant change in Beacon frame IEs.
   12126 	 */
   12127 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PERIOD = 3,
   12128 	/* Used by the driver to encapsulate the SSID when the
   12129 	 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
   12130 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
   12131 	 * u8 array with a maximum size of 32.
   12132 	 *
   12133 	 * When generating beacon report from non-MBSSID Beacon frame, the SSID
   12134 	 * will be taken from the SSID element of the received Beacon frame.
   12135 	 *
   12136 	 * When generating beacon report from Multiple BSSID Beacon frame and if
   12137 	 * the BSSID of the current connected BSS matches the BSSID of the
   12138 	 * transmitting BSS, the SSID will be taken from the SSID element of the
   12139 	 * received Beacon frame.
   12140 	 *
   12141 	 * When generating beacon report from Multiple BSSID Beacon frame and if
   12142 	 * the BSSID of the current connected BSS matches the BSSID of one of
   12143 	 * the* nontransmitting BSSs, the SSID will be taken from the SSID field
   12144 	 * included in the nontransmitted BSS profile whose derived BSSID is
   12145 	 * same as the BSSID of the current connected BSS. When there is no
   12146 	 * nontransmitted BSS profile whose derived BSSID is same as the BSSID
   12147 	 * of current connected* BSS, this attribute will not be present.
   12148 	 */
   12149 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_SSID = 4,
   12150 	/* Used by the driver to encapsulate the BSSID of the AP to which STA is
   12151 	 * currently connected to when the
   12152 	 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
   12153 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u8 array with a
   12154 	 * fixed size of 6 bytes.
   12155 	 *
   12156 	 * When generating beacon report from a Multiple BSSID beacon and the
   12157 	 * current connected BSSID matches one of the nontransmitted BSSIDs in a
   12158 	 * Multiple BSSID set, this BSSID will be that particular nontransmitted
   12159 	 * BSSID and not the transmitted BSSID (i.e., the transmitting address
   12160 	 * of the Beacon frame).
   12161 	 */
   12162 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BSSID = 5,
   12163 	/* Used by the driver to encapsulate the frequency in MHz on which
   12164 	 * the Beacon frame was received when the
   12165 	 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is
   12166 	 * set to QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
   12167 	 * u32 attribute.
   12168 	 */
   12169 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_FREQ = 6,
   12170 	/* Used by the driver to encapsulate the Beacon interval
   12171 	 * when the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
   12172 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
   12173 	 * u16 attribute. The value will be copied from the Beacon frame and the
   12174 	 * units are TUs.
   12175 	 */
   12176 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BI = 7,
   12177 	/* Used by the driver to encapsulate the Timestamp field from the Beacon
   12178 	 * frame when the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set
   12179 	 * to QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
   12180 	 * u64 attribute.
   12181 	 */
   12182 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_TSF = 8,
   12183 	/* Used by the driver to encapsulate the CLOCK_BOOTTIME when this
   12184 	 * Beacon frame is received in the driver when the
   12185 	 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
   12186 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u64 attribute, in
   12187 	 * the units of nanoseconds. This value is expected to have accuracy of
   12188 	 * about 10 ms.
   12189 	 */
   12190 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BOOTTIME_WHEN_RECEIVED = 9,
   12191 	/* Used by the driver to encapsulate the IEs of the Beacon frame from
   12192 	 * which this event is generated when the
   12193 	 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
   12194 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u8 array.
   12195 	 */
   12196 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_IES = 10,
   12197 	/* Used by the driver to specify the reason for the driver/firmware to
   12198 	 * pause sending beacons to userspace when the
   12199 	 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
   12200 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE. Possible values are
   12201 	 * defined in enum qca_wlan_vendor_beacon_reporting_pause_reasons, u32
   12202 	 * attribute.
   12203 	 */
   12204 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAUSE_REASON = 11,
   12205 	/* Used by the driver to specify whether the driver will automatically
   12206 	 * resume reporting beacon events to userspace later (for example after
   12207 	 * the ongoing off-channel activity is completed etc.) when the
   12208 	 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
   12209 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE. NLA_FLAG attribute.
   12210 	 */
   12211 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES = 12,
   12212 	/* Optionally set by userspace to request the driver not to resume
   12213 	 * beacon reporting after a pause is completed, when the
   12214 	 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
   12215 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START. NLA_FLAG attribute.
   12216 	 * If this flag is set, the driver will not resume beacon reporting
   12217 	 * after any pause in beacon reporting is completed. Userspace has to
   12218 	 * send QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START command again in order
   12219 	 * to initiate beacon reporting again. If this flag is set in the recent
   12220 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START command, then in the
   12221 	 * subsequent QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE event (if any)
   12222 	 * the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES shall not be
   12223 	 * set by the driver. Setting this flag until and unless there is a
   12224 	 * specific need is not recommended as there is a chance of some beacons
   12225 	 * received after pause command and next start command being not
   12226 	 * reported.
   12227 	 */
   12228 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_DO_NOT_RESUME = 13,
   12229 	/* Attribute used for padding for 64-bit alignment */
   12230 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAD = 14,
   12231 
   12232 	/* Keep last */
   12233 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_LAST,
   12234 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_MAX =
   12235 		QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_LAST - 1
   12236 };
   12237 
   12238 /**
   12239  * enum qca_vendor_interop_issues_ap_type - Interop issue types
   12240  * This enum defines the valid set of values of interop issue types. These
   12241  * values are used by attribute %QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE.
   12242  *
   12243  * @QCA_VENDOR_INTEROP_ISSUES_AP_ON_STA_PS: The AP has power save interop issue
   12244  * when the STA's Qpower feature is enabled.
   12245  */
   12246 enum qca_vendor_interop_issues_ap_type {
   12247 	QCA_VENDOR_INTEROP_ISSUES_AP_INVALID = 0,
   12248 	QCA_VENDOR_INTEROP_ISSUES_AP_ON_STA_PS = 1,
   12249 };
   12250 
   12251 /**
   12252  * enum qca_vendor_attr_interop_issues_ap - attribute for AP with interop issues
   12253  * Values are used by %QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP.
   12254  *
   12255  * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_INVALID: Invalid value
   12256  * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE: Interop issue type
   12257  * 32-bit unsigned value. The values defined in enum
   12258  * qca_vendor_interop_issues_ap_type are used.
   12259  * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST: APs' BSSID container
   12260  * array of nested QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID attributes.
   12261  * It is present and mandatory for the command but is not used for the event
   12262  * since only a single BSSID is reported in an event.
   12263  * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID: AP's BSSID 6-byte MAC address.
   12264  * It is used within the nested QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST
   12265  * attribute in command case and without such encapsulation in the event case.
   12266  * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST: last value
   12267  * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_MAX: max value
   12268  */
   12269 enum qca_vendor_attr_interop_issues_ap {
   12270 	QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_INVALID,
   12271 	QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE,
   12272 	QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST,
   12273 	QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID,
   12274 	/* keep last */
   12275 	QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST,
   12276 	QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_MAX =
   12277 		QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST - 1
   12278 };
   12279 
   12280 /**
   12281  * enum qca_vendor_oem_device_type - Represents the target device in firmware.
   12282  * It is used by QCA_WLAN_VENDOR_ATTR_OEM_DEVICE_INFO.
   12283  *
   12284  * @QCA_VENDOR_OEM_DEVICE_VIRTUAL: The command is intended for
   12285  * a virtual device.
   12286  *
   12287  * @QCA_VENDOR_OEM_DEVICE_PHYSICAL: The command is intended for
   12288  * a physical device.
   12289  */
   12290 enum qca_vendor_oem_device_type {
   12291 	QCA_VENDOR_OEM_DEVICE_VIRTUAL = 0,
   12292 	QCA_VENDOR_OEM_DEVICE_PHYSICAL = 1,
   12293 };
   12294 
   12295 /**
   12296  * enum qca_wlan_vendor_attr_oem_data_params - Used by the vendor command/event
   12297  * QCA_NL80211_VENDOR_SUBCMD_OEM_DATA.
   12298  *
   12299  * @QCA_WLAN_VENDOR_ATTR_OEM_DATA_CMD_DATA: This NLA_BINARY attribute is
   12300  * used to set/query the data to/from the firmware. On query, the same
   12301  * attribute is used to carry the respective data in the reply sent by the
   12302  * driver to userspace. The request to set/query the data and the format of the
   12303  * respective data from the firmware are embedded in the attribute. The
   12304  * maximum size of the attribute payload is 1024 bytes.
   12305  * Userspace has to set the QCA_WLAN_VENDOR_ATTR_OEM_DATA_RESPONSE_EXPECTED
   12306  * attribute when the data is queried from the firmware.
   12307  *
   12308  * @QCA_WLAN_VENDOR_ATTR_OEM_DEVICE_INFO: The binary blob will be routed
   12309  * based on this field. This optional attribute is included to specify whether
   12310  * the device type is a virtual device or a physical device for the
   12311  * command/event. This attribute can be omitted for a virtual device (default)
   12312  * command/event.
   12313  * This u8 attribute is used to carry information for the device type using
   12314  * values defined by enum qca_vendor_oem_device_type.
   12315  *
   12316  * @QCA_WLAN_VENDOR_ATTR_OEM_DATA_RESPONSE_EXPECTED: This NLA_FLAG attribute
   12317  * is set when the userspace queries data from the firmware. This attribute
   12318  * should not be set when userspace sets the OEM data to the firmware.
   12319  */
   12320 enum qca_wlan_vendor_attr_oem_data_params {
   12321 	QCA_WLAN_VENDOR_ATTR_OEM_DATA_INVALID = 0,
   12322 	QCA_WLAN_VENDOR_ATTR_OEM_DATA_CMD_DATA = 1,
   12323 	QCA_WLAN_VENDOR_ATTR_OEM_DEVICE_INFO = 2,
   12324 	QCA_WLAN_VENDOR_ATTR_OEM_DATA_RESPONSE_EXPECTED = 3,
   12325 
   12326 	/* keep last */
   12327 	QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_AFTER_LAST,
   12328 	QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_MAX =
   12329 		QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_AFTER_LAST - 1
   12330 };
   12331 
   12332 /**
   12333  * enum qca_wlan_vendor_attr_avoid_frequency_ext - Defines attributes to be
   12334  * used with vendor command/event QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_EXT.
   12335  *
   12336  * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_RANGE: Required
   12337  * Nested attribute containing multiple ranges with following attributes:
   12338  *	QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START,
   12339  *	QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END, and
   12340  *	QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM.
   12341  *
   12342  * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START: Required (u32)
   12343  * Starting center frequency in MHz.
   12344  *
   12345  * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END: Required (u32)
   12346  * Ending center frequency in MHz.
   12347  *
   12348  * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM:
   12349  * s32 attribute, optional. It is a per frequency range attribute.
   12350  * The maximum TX power limit from user space is to be applied on an
   12351  * unrestricted interface for corresponding frequency range. It is also
   12352  * possible that the actual TX power may be even lower than this cap due to
   12353  * other considerations such as regulatory compliance, SAR, etc. In absence of
   12354  * this attribute the driver shall follow current behavior which means
   12355  * interface (SAP/P2P) function can keep operating on an unsafe channel with TX
   12356  * power derived by the driver based on regulatory/SAR during interface up.
   12357  *
   12358  * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_IFACES_BITMASK:
   12359  * u32 attribute, optional. Indicates all the interface types which are
   12360  * restricted for all frequency ranges provided in
   12361  * %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START and
   12362  * %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END.
   12363  * This attribute encapsulates bitmasks of interface types defined in
   12364  * enum nl80211_iftype. If an interface is marked as restricted the driver must
   12365  * move to a safe channel and if no safe channel is available the driver shall
   12366  * terminate that interface functionality. In absence of this attribute,
   12367  * interface (SAP/P2P) can still continue operating on an unsafe channel with
   12368  * TX power limit derived from either
   12369  * %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM or based on
   12370  * regulatory/SAE limits if %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM
   12371  * is not provided.
   12372  *
   12373  * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_IFINDEX: u32 attribute, optional.
   12374  * This specifies the interface index (netdev) for which the corresponding
   12375  * configurations are applied. If the interface index is not specified, the
   12376  * configurations are applied based on
   12377  * %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_IFACES_BITMASK.
   12378  * %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_IFACES_BITMASK along with this
   12379  * attribute shall have the matching nl80211_iftype.
   12380  */
   12381 enum qca_wlan_vendor_attr_avoid_frequency_ext {
   12382 	QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_INVALID = 0,
   12383 	QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_RANGE = 1,
   12384 	QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START = 2,
   12385 	QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END = 3,
   12386 	QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM = 4,
   12387 	QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_IFACES_BITMASK = 5,
   12388 	QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_IFINDEX = 6,
   12389 
   12390 	QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_AFTER_LAST,
   12391 	QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_MAX =
   12392 		QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_AFTER_LAST - 1
   12393 };
   12394 
   12395 /*
   12396  * enum qca_wlan_vendor_attr_add_sta_node_params - Used by the vendor command
   12397  * QCA_NL80211_VENDOR_SUBCMD_ADD_STA_NODE.
   12398  */
   12399 enum qca_wlan_vendor_attr_add_sta_node_params {
   12400 	QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_INVALID = 0,
   12401 	/* 6 byte MAC address of STA */
   12402 	QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_MAC_ADDR = 1,
   12403 	/* Authentication algorithm used by the station of size u16;
   12404 	 * defined in enum nl80211_auth_type.
   12405 	 */
   12406 	QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_AUTH_ALGO = 2,
   12407 
   12408 	/*
   12409 	 * This flag attribute is set if the node being added is an
   12410 	 * MLD STA node.
   12411 	 */
   12412 	QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_IS_ML = 3,
   12413 
   12414 	/* keep last */
   12415 	QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_AFTER_LAST,
   12416 	QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_MAX =
   12417 		QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_AFTER_LAST - 1
   12418 };
   12419 
   12420 /**
   12421  * enum qca_btc_chain_mode - Specifies BT coex chain mode.
   12422  * This enum defines the valid set of values of BT coex chain mode.
   12423  * These values are used by attribute %QCA_VENDOR_ATTR_BTC_CHAIN_MODE of
   12424  * %QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE.
   12425  *
   12426  * @QCA_BTC_CHAIN_SHARED: chains of BT and WLAN 2.4 GHz are shared.
   12427  * @QCA_BTC_CHAIN_SEPARATED_HYBRID: chains of BT and WLAN 2.4 GHz are
   12428  * separated, hybrid mode.
   12429  * @QCA_BTC_CHAIN_SEPARATED_FDD: chains of BT and WLAN 2.4 GHz are
   12430  * separated, fixed FDD mode.
   12431  */
   12432 enum qca_btc_chain_mode {
   12433 	QCA_BTC_CHAIN_SHARED = 0,
   12434 	QCA_BTC_CHAIN_SEPARATED_HYBRID = 1,
   12435 	QCA_BTC_CHAIN_SEPARATED_FDD = 2,
   12436 };
   12437 
   12438 /* deprecated legacy name */
   12439 #define QCA_BTC_CHAIN_SEPARATED QCA_BTC_CHAIN_SEPARATED_HYBRID
   12440 
   12441 /**
   12442  * enum qca_vendor_attr_btc_chain_mode - Specifies attributes for BT coex
   12443  * chain mode.
   12444  * Attributes for data used by QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE.
   12445  *
   12446  * @QCA_VENDOR_ATTR_COEX_BTC_CHAIN_MODE: u32 attribute.
   12447  * Indicates the BT coex chain mode, are 32-bit values from
   12448  * enum qca_btc_chain_mode. This attribute is mandatory.
   12449  *
   12450  * @QCA_VENDOR_ATTR_COEX_BTC_CHAIN_MODE_RESTART: flag attribute.
   12451  * If set, vdev should be restarted when BT coex chain mode is updated.
   12452  * This attribute is optional.
   12453  */
   12454 enum qca_vendor_attr_btc_chain_mode {
   12455 	QCA_VENDOR_ATTR_BTC_CHAIN_MODE_INVALID = 0,
   12456 	QCA_VENDOR_ATTR_BTC_CHAIN_MODE = 1,
   12457 	QCA_VENDOR_ATTR_BTC_CHAIN_MODE_RESTART = 2,
   12458 
   12459 	/* Keep last */
   12460 	QCA_VENDOR_ATTR_BTC_CHAIN_MODE_LAST,
   12461 	QCA_VENDOR_ATTR_BTC_CHAIN_MODE_MAX =
   12462 	QCA_VENDOR_ATTR_BTC_CHAIN_MODE_LAST - 1,
   12463 };
   12464 
   12465 /**
   12466  * enum qca_vendor_wlan_sta_flags - Station feature flags
   12467  * Bits will be set to 1 if the corresponding features are enabled.
   12468  * @QCA_VENDOR_WLAN_STA_FLAG_AMPDU: AMPDU is enabled for the station
   12469  * @QCA_VENDOR_WLAN_STA_FLAG_TX_STBC: TX Space-time block coding is enabled
   12470     for the station
   12471  * @QCA_VENDOR_WLAN_STA_FLAG_RX_STBC: RX Space-time block coding is enabled
   12472     for the station
   12473  */
   12474 enum qca_vendor_wlan_sta_flags {
   12475 	QCA_VENDOR_WLAN_STA_FLAG_AMPDU = BIT(0),
   12476 	QCA_VENDOR_WLAN_STA_FLAG_TX_STBC = BIT(1),
   12477 	QCA_VENDOR_WLAN_STA_FLAG_RX_STBC = BIT(2),
   12478 };
   12479 
   12480 /**
   12481  * enum qca_vendor_wlan_sta_guard_interval - Station guard interval
   12482  * @QCA_VENDOR_WLAN_STA_GI_800_NS: Legacy normal guard interval
   12483  * @QCA_VENDOR_WLAN_STA_GI_400_NS: Legacy short guard interval
   12484  * @QCA_VENDOR_WLAN_STA_GI_1600_NS: Guard interval used by HE
   12485  * @QCA_VENDOR_WLAN_STA_GI_3200_NS: Guard interval used by HE
   12486  */
   12487 enum qca_vendor_wlan_sta_guard_interval {
   12488 	QCA_VENDOR_WLAN_STA_GI_800_NS = 0,
   12489 	QCA_VENDOR_WLAN_STA_GI_400_NS = 1,
   12490 	QCA_VENDOR_WLAN_STA_GI_1600_NS = 2,
   12491 	QCA_VENDOR_WLAN_STA_GI_3200_NS = 3,
   12492 };
   12493 
   12494 /**
   12495  * enum qca_wlan_vendor_attr_get_sta_info - Defines attributes
   12496  * used by QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO vendor command.
   12497  *
   12498  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAC:
   12499  * Required attribute in request for AP mode only, 6-byte MAC address,
   12500  * corresponding to the station's MAC address for which information is
   12501  * requested. For STA mode this is not required as the info always correspond
   12502  * to the self STA and the current/last association.
   12503  *
   12504  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_FLAGS:
   12505  * Optionally used in response, u32 attribute, contains a bitmap of different
   12506  * fields defined in enum qca_vendor_wlan_sta_flags, used in AP mode only.
   12507  *
   12508  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_GUARD_INTERVAL:
   12509  * Optionally used in response, u32 attribute, possible values are defined in
   12510  * enum qca_vendor_wlan_sta_guard_interval, used in AP mode only.
   12511  * Guard interval used by the station.
   12512  *
   12513  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_RETRY_COUNT:
   12514  * Optionally used in response, u32 attribute, used in AP mode only.
   12515  * Value indicates the number of data frames received from station with retry
   12516  * bit set to 1 in FC.
   12517  *
   12518  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BC_MC_COUNT:
   12519  * Optionally used in response, u32 attribute, used in AP mode only.
   12520  * Counter for number of data frames with broadcast or multicast address in
   12521  * the destination address received from the station.
   12522  *
   12523  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_SUCCEED:
   12524  * Optionally used in response, u32 attribute, used in both STA and AP modes.
   12525  * Value indicates the number of data frames successfully transmitted only
   12526  * after retrying the packets and for which the TX status has been updated
   12527  * back to host from target.
   12528  *
   12529  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_EXHAUSTED:
   12530  * Optionally used in response, u32 attribute, used in both STA and AP mode.
   12531  * Value indicates the number of data frames not transmitted successfully even
   12532  * after retrying the packets for the number of times equal to the total number
   12533  * of retries allowed for that packet and for which the TX status has been
   12534  * updated back to host from target.
   12535  *
   12536  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_TOTAL:
   12537  * Optionally used in response, u32 attribute, used in AP mode only.
   12538  * Counter in the target for the number of data frames successfully transmitted
   12539  * to the station.
   12540  *
   12541  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY:
   12542  * Optionally used in response, u32 attribute, used in AP mode only.
   12543  * Value indicates the number of data frames successfully transmitted only
   12544  * after retrying the packets.
   12545  *
   12546  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY_EXHAUSTED:
   12547  * Optionally used in response, u32 attribute, used in both STA & AP mode.
   12548  * Value indicates the number of data frames not transmitted successfully even
   12549  * after retrying the packets for the number of times equal to the total number
   12550  * of retries allowed for that packet.
   12551  *
   12552  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_PROBE_REQ_BMISS_COUNT: u32, used in
   12553  * the STA mode only. Represent the number of probe requests sent by the STA
   12554  * while attempting to roam on missing certain number of beacons from the
   12555  * connected AP. If queried in the disconnected state, this represents the
   12556  * count for the last connected state.
   12557  *
   12558  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_PROBE_RESP_BMISS_COUNT: u32, used in
   12559  * the STA mode. Represent the number of probe responses received by the station
   12560  * while attempting to roam on missing certain number of beacons from the
   12561  * connected AP. When queried in the disconnected state, this represents the
   12562  * count when in last connected state.
   12563  *
   12564  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_ALL_COUNT: u32, used in the
   12565  * STA mode only. Represents the total number of frames sent out by STA
   12566  * including Data, ACK, RTS, CTS, Control Management. This data is maintained
   12567  * only for the connect session. Represents the count of last connected session,
   12568  * when queried in the disconnected state.
   12569  *
   12570  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_COUNT: u32, used in the STA mode.
   12571  * Total number of RTS sent out by the STA. This data is maintained per connect
   12572  * session. Represents the count of last connected session, when queried in the
   12573  * disconnected state.
   12574  *
   12575  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_RETRY_FAIL_COUNT: u32, used in the
   12576  * STA mode.Represent the number of RTS transmission failure that reach retry
   12577  * limit. This data is maintained per connect session. Represents the count of
   12578  * last connected session, when queried in the disconnected state.
   12579  *
   12580  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_NON_AGGREGATED_COUNT: u32, used in
   12581  * the STA mode. Represent the total number of non aggregated frames transmitted
   12582  * by the STA. This data is maintained per connect session. Represents the count
   12583  * of last connected session, when queried in the disconnected state.
   12584  *
   12585  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_AGGREGATED_COUNT: u32, used in the
   12586  * STA mode. Represent the total number of aggregated frames transmitted by the
   12587  * STA. This data is maintained per connect session. Represents the count of
   12588  * last connected session, when queried in the disconnected state.
   12589  *
   12590  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_GOOD_PLCP_COUNT: u32, used in
   12591  * the STA mode. Represents the number of received frames with a good PLCP. This
   12592  * data is maintained per connect session. Represents the count of last
   12593  * connected session, when queried in the disconnected state.
   12594  *
   12595  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_INVALID_DELIMITER_COUNT: u32,
   12596  * used in the STA mode. Represents the number of occasions that no valid
   12597  * delimiter is detected by A-MPDU parser. This data is maintained per connect
   12598  * session. Represents the count of last connected session, when queried in the
   12599  * disconnected state.
   12600  *
   12601  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_CRC_FAIL_COUNT: u32, used in the
   12602  * STA mode. Represents the number of frames for which CRC check failed in the
   12603  * MAC. This data is maintained per connect session. Represents the count of
   12604  * last connected session, when queried in the disconnected state.
   12605  *
   12606  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_ACKS_GOOD_FCS_COUNT: u32, used in the
   12607  * STA mode. Represents the number of unicast ACKs received with good FCS. This
   12608  * data is maintained per connect session. Represents the count of last
   12609  * connected session, when queried in the disconnected state.
   12610  *
   12611  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BLOCKACK_COUNT: u32, used in the STA
   12612  * mode. Represents the number of received Block Acks. This data is maintained
   12613  * per connect session. Represents the count of last connected session, when
   12614  * queried in the disconnected state.
   12615  *
   12616  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BEACON_COUNT: u32, used in the STA
   12617  * mode. Represents the number of beacons received from the connected BSS. This
   12618  * data is maintained per connect session. Represents the count of last
   12619  * connected session, when queried in the disconnected state.
   12620  *
   12621  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_OTHER_BEACON_COUNT: u32, used in the
   12622  * STA mode. Represents the number of beacons received by the other BSS when in
   12623  * connected state (through the probes done by the STA). This data is maintained
   12624  * per connect session. Represents the count of last connected session, when
   12625  * queried in the disconnected state.
   12626  *
   12627  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_UCAST_DATA_GOOD_FCS_COUNT: u64, used in
   12628  * the STA mode. Represents the number of received DATA frames with good FCS and
   12629  * matching Receiver Address when in connected state. This data is maintained
   12630  * per connect session. Represents the count of last connected session, when
   12631  * queried in the disconnected state.
   12632  *
   12633  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_DATA_BC_MC_DROP_COUNT: u32, used in the
   12634  * STA mode. Represents the number of RX Data multicast frames dropped by the HW
   12635  * when in the connected state. This data is maintained per connect session.
   12636  * Represents the count of last connected session, when queried in the
   12637  * disconnected state.
   12638  *
   12639  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_1MBPS: u32, used in the
   12640  * STA mode. This represents the target power in dBm for the transmissions done
   12641  * to the AP in 2.4 GHz at 1 Mbps (DSSS) rate. This data is maintained per
   12642  * connect session. Represents the count of last connected session, when
   12643  * queried in the disconnected state.
   12644  *
   12645  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_6MBPS: u32, used in the
   12646  * STA mode. This represents the Target power in dBm for transmissions done to
   12647  * the AP in 2.4 GHz at 6 Mbps (OFDM) rate. This data is maintained per connect
   12648  * session. Represents the count of last connected session, when queried in the
   12649  * disconnected state.
   12650  *
   12651  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_MCS0: u32, used in the
   12652  * STA mode. This represents the Target power in dBm for transmissions done to
   12653  * the AP in 2.4 GHz at MCS0 rate. This data is maintained per connect session.
   12654  * Represents the count of last connected session, when queried in the
   12655  * disconnected state.
   12656  *
   12657  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_6MBPS: u32, used in the
   12658  * STA mode. This represents the Target power in dBm for transmissions done to
   12659  * the AP in 5 GHz at 6 Mbps (OFDM) rate. This data is maintained per connect
   12660  * session. Represents the count of last connected session, when queried in
   12661  * the disconnected state.
   12662  *
   12663  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_MCS0: u32, used in the
   12664  * STA mode. This represents the Target power in dBm for transmissions done
   12665  * to the AP in 5 GHz at MCS0 rate. This data is maintained per connect session.
   12666  * Represents the count of last connected session, when queried in the
   12667  * disconnected state.
   12668  *
   12669  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_HW_BUFFERS_OVERFLOW_COUNT: u32, used
   12670  * in the STA mode. This represents the Nested attribute representing the
   12671  * overflow counts of each receive buffer allocated to the hardware during the
   12672  * STA's connection. The number of hw buffers might vary for each WLAN
   12673  * solution and hence this attribute represents the nested array of all such
   12674  * HW buffer count. This data is maintained per connect session. Represents
   12675  * the count of last connected session, when queried in the disconnected state.
   12676  *
   12677  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAX_TX_POWER: u32, Max TX power (dBm)
   12678  * allowed as per the regulatory requirements for the current or last connected
   12679  * session. Used in the STA mode.
   12680  *
   12681  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_POWER: u32, Latest TX power
   12682  * (dBm) used by the station in its latest unicast frame while communicating
   12683  * to the AP in the connected state. When queried in the disconnected state,
   12684  * this represents the TX power used by the STA with last AP communication
   12685  * when in connected state.
   12686  *
   12687  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ANI_LEVEL: u32, Adaptive noise immunity
   12688  * level used to adjust the RX sensitivity. Represents the current ANI level
   12689  * when queried in the connected state. When queried in the disconnected
   12690  * state, this corresponds to the latest ANI level at the instance of
   12691  * disconnection.
   12692  *
   12693  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_IES: Binary attribute containing
   12694  * the raw information elements from Beacon frames. Represents the Beacon frames
   12695  * of the current BSS in the connected state. When queried in the disconnected
   12696  * state, these IEs correspond to the last connected BSSID.
   12697  *
   12698  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PROBE_RESP_IES: Binary attribute
   12699  * containing the raw information elements from Probe Response frames.
   12700  * Represents the Probe Response frames of the current BSS in the connected
   12701  * state. When queried in the disconnected state, these IEs correspond to the
   12702  * last connected BSSID.
   12703  *
   12704  * @QCA_WLAN_VENDOR_ATTR_GET_STA_DRIVER_DISCONNECT_REASON: u32, Driver
   12705  * disconnect reason for the last disconnection if the disconnection is
   12706  * triggered from the host driver. The values are referred from
   12707  * enum qca_disconnect_reason_codes.
   12708  *
   12709  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_MIC_ERROR_COUNT: u32, used in STA mode
   12710  * only. This represents the number of group addressed robust management frames
   12711  * received from this station with an invalid MIC or a missing MME when PMF is
   12712  * enabled.
   12713  *
   12714  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_REPLAY_COUNT: u32, used in STA mode
   12715  * only. This represents the number of group addressed robust management frames
   12716  * received from this station with the packet number less than or equal to the
   12717  * last received packet number when PMF is enabled.
   12718  *
   12719  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_MIC_ERROR_COUNT: u32, used in STA
   12720  * mode only. This represents the number of Beacon frames received from this
   12721  * station with an invalid MIC or a missing MME when beacon protection is
   12722  * enabled.
   12723  *
   12724  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_REPLAY_COUNT: u32, used in STA mode
   12725  * only. This represents number of Beacon frames received from this station with
   12726  * the packet number less than or equal to the last received packet number when
   12727  * beacon protection is enabled.
   12728  *
   12729  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_CONNECT_FAIL_REASON_CODE: u32, used in
   12730  * STA mode only. The driver uses this attribute to populate the connection
   12731  * failure reason codes and the values are defined in
   12732  * enum qca_sta_connect_fail_reason_codes. Userspace applications can send
   12733  * QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO vendor command after receiving
   12734  * a connection failure indication from the driver. The driver shall not
   12735  * include this attribute in response to the
   12736  * QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO command if there is no connection
   12737  * failure observed in the last attempted connection.
   12738  *
   12739  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_RATE: u32, latest TX rate (Kbps)
   12740  * used by the station in its last TX frame while communicating to the AP in the
   12741  * connected state. When queried in the disconnected state, this represents the
   12742  * rate used by the STA in the last TX frame to the AP when it was connected.
   12743  * This attribute is used for STA mode only.
   12744  *
   12745  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_RIX: u32, used in STA mode only.
   12746  * This represents the rate index used by the STA for the last TX frame to the
   12747  * AP. When queried in the disconnected state, this gives the last RIX used by
   12748  * the STA in the last TX frame to the AP when it was connected.
   12749  *
   12750  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TSF_OUT_OF_SYNC_COUNT: u32, used in STA
   12751  * mode only. This represents the number of times the STA TSF goes out of sync
   12752  * from the AP after the connection. If queried in the disconnected state, this
   12753  * gives the count of TSF out of sync for the last connection.
   12754  *
   12755  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_TRIGGER_REASON: u32, used in STA
   12756  * mode only. This represents the roam trigger reason for the last roaming
   12757  * attempted by the firmware. This can be queried either in connected state or
   12758  * disconnected state. Each bit of this attribute represents the different
   12759  * roam trigger reason code which are defined in enum qca_vendor_roam_triggers.
   12760  *
   12761  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_FAIL_REASON: u32, used in STA mode
   12762  * only. This represents the roam fail reason for the last failed roaming
   12763  * attempt by the firmware. Different roam failure reason codes are specified
   12764  * in enum qca_vendor_roam_fail_reasons. This can be queried either in
   12765  * connected state or disconnected state.
   12766  *
   12767  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_INVOKE_FAIL_REASON: u32, used in
   12768  * STA mode only. This represents the roam invoke fail reason for the last
   12769  * failed roam invoke. Different roam invoke failure reason codes
   12770  * are specified in enum qca_vendor_roam_invoke_fail_reasons. This can be
   12771  * queried either in connected state or disconnected state.
   12772  *
   12773  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY: u32, used in STA mode only.
   12774  * This represents the average congestion duration of uplink frames in MAC
   12775  * queue in unit of ms. This can be queried either in connected state or
   12776  * disconnected state.
   12777  *
   12778  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PER_MCS_TX_PACKETS: Array of u32 nested
   12779  * values, used in AP mode. This represents the MPDU packet count per MCS
   12780  * rate value of TX packets. Every index of this nested attribute corresponds
   12781  * to MCS index, e.g., Index 0 represents MCS0 TX rate. This can be
   12782  * queried in connected state.
   12783  *
   12784  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PER_MCS_RX_PACKETS: Array of u32 nested
   12785  * values, used in AP mode. This represents the MPDU packet count per MCS
   12786  * rate value of RX packets. Every index of this nested attribute corresponds
   12787  * to MCS index, e.g., Index 0 represents MCS0 RX rate. This can be
   12788  * queried in connected state.
   12789  *
   12790  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PAD: Attribute used for padding for
   12791  * 64-bit alignment.
   12792  *
   12793  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY_JITTER: u32, used in STA mode
   12794  * only. This represents the average of the delta between successive uplink
   12795  * frames congestion duration in MAC queue in unit of ms. This can be queried
   12796  * either in connected state or disconnected state.
   12797  *
   12798  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_NSS_PKT_COUNT: Array of nested attributes,
   12799  * used in STA mode. This represents the number of MSDU packets
   12800  * (unicast/multicast/broadcast) transmitted/received with each NSS value. See
   12801  * enum qca_wlan_vendor_attr_nss_pkt.
   12802  */
   12803 enum qca_wlan_vendor_attr_get_sta_info {
   12804 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_INVALID = 0,
   12805 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAC = 1,
   12806 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_FLAGS = 2,
   12807 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_GUARD_INTERVAL = 3,
   12808 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_RETRY_COUNT = 4,
   12809 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BC_MC_COUNT = 5,
   12810 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_SUCCEED = 6,
   12811 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_EXHAUSTED = 7,
   12812 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_TOTAL = 8,
   12813 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY = 9,
   12814 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY_EXHAUSTED = 10,
   12815 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_PROBE_REQ_BMISS_COUNT = 11,
   12816 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_PROBE_RESP_BMISS_COUNT = 12,
   12817 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_ALL_COUNT = 13,
   12818 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_COUNT = 14,
   12819 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_RETRY_FAIL_COUNT = 15,
   12820 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_NON_AGGREGATED_COUNT = 16,
   12821 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_AGGREGATED_COUNT = 17,
   12822 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_GOOD_PLCP_COUNT = 18,
   12823 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_INVALID_DELIMITER_COUNT = 19,
   12824 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_CRC_FAIL_COUNT = 20,
   12825 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_ACKS_GOOD_FCS_COUNT = 21,
   12826 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BLOCKACK_COUNT = 22,
   12827 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BEACON_COUNT = 23,
   12828 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_OTHER_BEACON_COUNT = 24,
   12829 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_UCAST_DATA_GOOD_FCS_COUNT = 25,
   12830 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_DATA_BC_MC_DROP_COUNT = 26,
   12831 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_1MBPS = 27,
   12832 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_6MBPS = 28,
   12833 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_MCS0 = 29,
   12834 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_6MBPS = 30,
   12835 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_MCS0 = 31,
   12836 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_HW_BUFFERS_OVERFLOW_COUNT = 32,
   12837 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAX_TX_POWER = 33,
   12838 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_POWER = 34,
   12839 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ANI_LEVEL = 35,
   12840 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_IES = 36,
   12841 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PROBE_RESP_IES = 37,
   12842 	QCA_WLAN_VENDOR_ATTR_GET_STA_DRIVER_DISCONNECT_REASON = 38,
   12843 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_MIC_ERROR_COUNT = 39,
   12844 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_REPLAY_COUNT = 40,
   12845 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_MIC_ERROR_COUNT = 41,
   12846 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_REPLAY_COUNT = 42,
   12847 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_CONNECT_FAIL_REASON_CODE = 43,
   12848 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_RATE = 44,
   12849 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_RIX = 45,
   12850 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TSF_OUT_OF_SYNC_COUNT = 46,
   12851 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_TRIGGER_REASON = 47,
   12852 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_FAIL_REASON = 48,
   12853 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_INVOKE_FAIL_REASON = 49,
   12854 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY = 50,
   12855 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PER_MCS_TX_PACKETS = 51,
   12856 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PER_MCS_RX_PACKETS = 52,
   12857 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PAD = 53,
   12858 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY_JITTER = 54,
   12859 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_NSS_PKT_COUNT = 55,
   12860 
   12861 	/* keep last */
   12862 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_AFTER_LAST,
   12863 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAX =
   12864 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_AFTER_LAST - 1,
   12865 };
   12866 
   12867 /**
   12868  * enum qca_wlan_vendor_attr_update_sta_info - Defines attributes
   12869  * used by QCA_NL80211_VENDOR_SUBCMD_UPDATE_STA_INFO vendor command.
   12870  *
   12871  * @QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_CONNECT_CHANNELS: Type is NLA_UNSPEC.
   12872  * Used in STA mode. This attribute represents the list of channel center
   12873  * frequencies in MHz (u32) the station has learnt during the last connection
   12874  * or roaming attempt. This information shall not signify the channels for
   12875  * an explicit scan request from the user space. Host drivers can update this
   12876  * information to the user space in both connected and disconnected state.
   12877  * In the disconnected state this information shall signify the channels
   12878  * scanned in the last connection/roam attempt that lead to the disconnection.
   12879  */
   12880 enum qca_wlan_vendor_attr_update_sta_info {
   12881 	QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_INVALID = 0,
   12882 	QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_CONNECT_CHANNELS = 1,
   12883 
   12884 	/* keep last */
   12885 	QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_AFTER_LAST,
   12886 	QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_MAX =
   12887 	QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_AFTER_LAST - 1,
   12888 };
   12889 
   12890 /**
   12891  * enum qca_disconnect_reason_codes - Specifies driver disconnect reason codes.
   12892  * Used when the driver triggers the STA to disconnect from the AP.
   12893  *
   12894  * @QCA_DISCONNECT_REASON_UNSPECIFIED: The host driver triggered the
   12895  * disconnection with the AP due to unspecified reasons.
   12896  *
   12897  * @QCA_DISCONNECT_REASON_INTERNAL_ROAM_FAILURE: The host driver triggered the
   12898  * disconnection with the AP due to a roaming failure. This roaming is triggered
   12899  * internally (host driver/firmware).
   12900  *
   12901  * @QCA_DISCONNECT_REASON_EXTERNAL_ROAM_FAILURE: The driver disconnected from
   12902  * the AP when the user/external triggered roaming fails.
   12903  *
   12904  * @QCA_DISCONNECT_REASON_GATEWAY_REACHABILITY_FAILURE: This reason code is used
   12905  * by the host driver whenever gateway reachability failure is detected and the
   12906  * driver disconnects with AP.
   12907  *
   12908  * @QCA_DISCONNECT_REASON_UNSUPPORTED_CHANNEL_CSA: The driver disconnected from
   12909  * the AP on a channel switch announcement from it with an unsupported channel.
   12910  *
   12911  * @QCA_DISCONNECT_REASON_OPER_CHANNEL_DISABLED_INDOOR: On a concurrent AP start
   12912  * with indoor channels disabled and if the STA is connected on one of these
   12913  * disabled channels, the host driver disconnected the STA with this reason
   12914  * code.
   12915  *
   12916  * @QCA_DISCONNECT_REASON_OPER_CHANNEL_USER_DISABLED: Disconnection due to an
   12917  * explicit request from the user to disable the current operating channel.
   12918  *
   12919  * @QCA_DISCONNECT_REASON_DEVICE_RECOVERY: STA disconnected from the AP due to
   12920  * the internal host driver/firmware recovery.
   12921  *
   12922  * @QCA_DISCONNECT_REASON_KEY_TIMEOUT: The driver triggered the disconnection on
   12923  * a timeout for the key installations from the user space.
   12924  *
   12925  * @QCA_DISCONNECT_REASON_OPER_CHANNEL_BAND_CHANGE: The dDriver disconnected the
   12926  * STA on a band change request from the user space to a different band from the
   12927  * current operation channel/band.
   12928  *
   12929  * @QCA_DISCONNECT_REASON_IFACE_DOWN: The STA disconnected from the AP on an
   12930  * interface down trigger from the user space.
   12931  *
   12932  * @QCA_DISCONNECT_REASON_PEER_XRETRY_FAIL: The host driver disconnected the
   12933  * STA on getting continuous transmission failures for multiple Data frames.
   12934  *
   12935  * @QCA_DISCONNECT_REASON_PEER_INACTIVITY: The STA does a keep alive
   12936  * notification to the AP by transmitting NULL/G-ARP frames. This disconnection
   12937  * represents inactivity from AP on such transmissions.
   12938 
   12939  * @QCA_DISCONNECT_REASON_SA_QUERY_TIMEOUT: This reason code is used on
   12940  * disconnection when SA Query times out (AP does not respond to SA Query).
   12941  *
   12942  * @QCA_DISCONNECT_REASON_BEACON_MISS_FAILURE: The host driver disconnected the
   12943  * STA on missing the beacons continuously from the AP.
   12944  *
   12945  * @QCA_DISCONNECT_REASON_CHANNEL_SWITCH_FAILURE: Disconnection due to STA not
   12946  * able to move to the channel mentioned by the AP in CSA.
   12947  *
   12948  * @QCA_DISCONNECT_REASON_USER_TRIGGERED: User triggered disconnection.
   12949  */
   12950 enum qca_disconnect_reason_codes {
   12951 	QCA_DISCONNECT_REASON_UNSPECIFIED = 0,
   12952 	QCA_DISCONNECT_REASON_INTERNAL_ROAM_FAILURE = 1,
   12953 	QCA_DISCONNECT_REASON_EXTERNAL_ROAM_FAILURE = 2,
   12954 	QCA_DISCONNECT_REASON_GATEWAY_REACHABILITY_FAILURE = 3,
   12955 	QCA_DISCONNECT_REASON_UNSUPPORTED_CHANNEL_CSA = 4,
   12956 	QCA_DISCONNECT_REASON_OPER_CHANNEL_DISABLED_INDOOR = 5,
   12957 	QCA_DISCONNECT_REASON_OPER_CHANNEL_USER_DISABLED = 6,
   12958 	QCA_DISCONNECT_REASON_DEVICE_RECOVERY = 7,
   12959 	QCA_DISCONNECT_REASON_KEY_TIMEOUT = 8,
   12960 	QCA_DISCONNECT_REASON_OPER_CHANNEL_BAND_CHANGE = 9,
   12961 	QCA_DISCONNECT_REASON_IFACE_DOWN = 10,
   12962 	QCA_DISCONNECT_REASON_PEER_XRETRY_FAIL = 11,
   12963 	QCA_DISCONNECT_REASON_PEER_INACTIVITY = 12,
   12964 	QCA_DISCONNECT_REASON_SA_QUERY_TIMEOUT = 13,
   12965 	QCA_DISCONNECT_REASON_BEACON_MISS_FAILURE = 14,
   12966 	QCA_DISCONNECT_REASON_CHANNEL_SWITCH_FAILURE = 15,
   12967 	QCA_DISCONNECT_REASON_USER_TRIGGERED = 16,
   12968 };
   12969 
   12970 /**
   12971  * enum qca_wlan_vendor_attr_driver_disconnect_reason - Defines attributes
   12972  * used by %QCA_NL80211_VENDOR_SUBCMD_DRIVER_DISCONNECT_REASON vendor command.
   12973  *
   12974  * @QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASCON_CODE: u32 attribute.
   12975  * This attribute represents the driver specific reason codes (local
   12976  * driver/firmware initiated reasons for disconnection) defined
   12977  * in enum qca_disconnect_reason_codes.
   12978  */
   12979 enum qca_wlan_vendor_attr_driver_disconnect_reason {
   12980 	QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_INVALID = 0,
   12981 	QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASCON_CODE = 1,
   12982 
   12983 	/* keep last */
   12984 	QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_AFTER_LAST,
   12985 	QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_MAX =
   12986 	QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_AFTER_LAST - 1,
   12987 };
   12988 
   12989 /**
   12990  * enum qca_wlan_tspec_operation - Operation of the config TSPEC request
   12991  *
   12992  * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_OPERATION.
   12993  */
   12994 enum qca_wlan_tspec_operation {
   12995 	QCA_WLAN_TSPEC_ADD = 0,
   12996 	QCA_WLAN_TSPEC_DEL = 1,
   12997 	QCA_WLAN_TSPEC_GET = 2,
   12998 };
   12999 
   13000 /**
   13001  * enum qca_wlan_tspec_direction - Direction in TSPEC
   13002  * As what is defined in IEEE Std 802.11-2016, Table 9-139.
   13003  *
   13004  * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_DIRECTION.
   13005  */
   13006 enum qca_wlan_tspec_direction {
   13007 	QCA_WLAN_TSPEC_DIRECTION_UPLINK = 0,
   13008 	QCA_WLAN_TSPEC_DIRECTION_DOWNLINK = 1,
   13009 	QCA_WLAN_TSPEC_DIRECTION_DIRECT = 2,
   13010 	QCA_WLAN_TSPEC_DIRECTION_BOTH = 3,
   13011 };
   13012 
   13013 /**
   13014  * enum qca_wlan_tspec_ack_policy - MAC acknowledgment policy in TSPEC
   13015  * As what is defined in IEEE Std 802.11-2016, Table 9-141.
   13016  *
   13017  * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_ACK_POLICY.
   13018  */
   13019 enum qca_wlan_tspec_ack_policy {
   13020 	QCA_WLAN_TSPEC_NORMAL_ACK = 0,
   13021 	QCA_WLAN_TSPEC_NO_ACK = 1,
   13022 	/* Reserved */
   13023 	QCA_WLAN_TSPEC_BLOCK_ACK = 3,
   13024 };
   13025 
   13026 /**
   13027  * enum qca_wlan_vendor_attr_config_tspec - Defines attributes
   13028  * used by %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TSPEC vendor command.
   13029  *
   13030  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_OPERATION:
   13031  * u8 attribute. Specify the TSPEC operation of this request. Possible values
   13032  * are defined in enum qca_wlan_tspec_operation.
   13033  * Mandatory attribute for all kinds of config TSPEC requests.
   13034  *
   13035  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_TSID:
   13036  * u8 attribute. TS ID. Possible values are 0-7.
   13037  * Applicable for operation: QCA_WLAN_TSPEC_ADD, QCA_WLAN_TSPEC_DEL,
   13038  * QCA_WLAN_TSPEC_GET. A mandatory attribute.
   13039  *
   13040  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_DIRECTION:
   13041  * u8 attribute. Direction of data carried by the TS. Possible values are
   13042  * defined in enum qca_wlan_tspec_direction.
   13043  * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
   13044  *
   13045  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_APSD:
   13046  * Flag attribute. Indicate whether APSD is enabled for the traffic associated
   13047  * with the TS. set - enabled, not set - disabled.
   13048  * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
   13049  *
   13050  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_USER_PRIORITY:
   13051  * u8 attribute. User priority to be used for the transport of MSDUs/A-MSDUs
   13052  * belonging to this TS. Possible values are 0-7.
   13053  * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
   13054  *
   13055  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_ACK_POLICY:
   13056  * u8 attribute. Indicate whether MAC acknowledgements are required for
   13057  * MPDUs/A-MSDUs belonging to this TS and the form of those acknowledgements.
   13058  * Possible values are defined in enum qca_wlan_tspec_ack_policy.
   13059  * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
   13060  *
   13061  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_NOMINAL_MSDU_SIZE:
   13062  * u16 attribute. Specify the nominal size in bytes of MSDUs/A-MSDUs
   13063  * belonging to this TS.
   13064  * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
   13065  *
   13066  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAXIMUM_MSDU_SIZE:
   13067  * u16 attribute. Specify the maximum size in bytes of MSDUs/A-MSDUs
   13068  * belonging to this TS.
   13069  * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
   13070  *
   13071  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MIN_SERVICE_INTERVAL:
   13072  * u32 attribute. Specify the minimum interval in microseconds between the
   13073  * start of two successive SPs.
   13074  * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
   13075  *
   13076  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAX_SERVICE_INTERVAL:
   13077  * u32 attribute. Specify the maximum interval in microseconds between the
   13078  * start of two successive SPs.
   13079  * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
   13080  *
   13081  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_INACTIVITY_INTERVAL:
   13082  * u32 attribute. Specify the minimum interval in microseconds that can elapse
   13083  * without arrival or transfer of an MPDU belonging to the TS before this TS
   13084  * is deleted by the MAC entity at the HC.
   13085  * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
   13086  *
   13087  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SUSPENSION_INTERVAL:
   13088  * u32 attribute. Specify the minimum interval in microseconds that can elapse
   13089  * without arrival or transfer of an MSDU belonging to the TS before the
   13090  * generation of successive QoS(+)CF-Poll is stopped for this TS. A value of
   13091  * 0xFFFFFFFF disables the suspension interval. The value of the suspension
   13092  * interval is always less than or equal to the inactivity interval.
   13093  * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
   13094  *
   13095  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_DATA_RATE:
   13096  * u32 attribute. Indicate the lowest data rate in bps specified at the MAC
   13097  * SAP for transport of MSDUs or A-MSDUs belonging to this TS within the
   13098  * bounds of this TSPEC.
   13099  * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
   13100  *
   13101  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MEAN_DATA_RATE:
   13102  * u32 attribute. Indicate the average data rate in bps specified at the MAC
   13103  * SAP for transport of MSDUs or A-MSDUs belonging to this TS within the
   13104  * bounds of this TSPEC.
   13105  * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
   13106  *
   13107  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_PEAK_DATA_RATE:
   13108  * u32 attribute. Indicate the maximum allowable data rate in bps specified at
   13109  * the MAC SAP for transport of MSDUs or A-MSDUs belonging to this TS within
   13110  * the bounds of this TSPEC.
   13111  * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
   13112  *
   13113  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_BURST_SIZE:
   13114  * u32 attribute. Specify the maximum burst size in bytes of the MSDUs/A-MSDUs
   13115  * belonging to this TS that arrive at the MAC SAP at the peak data rate. A
   13116  * value of 0 indicates that there are no bursts.
   13117  * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
   13118  *
   13119  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_PHY_RATE:
   13120  * u32 attribute. Indicate the minimum PHY rate in bps for transport of
   13121  * MSDUs/A-MSDUs belonging to this TS within the bounds of this TSPEC.
   13122  * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
   13123  *
   13124  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SURPLUS_BANDWIDTH_ALLOWANCE:
   13125  * u16 attribute. Specify the excess allocation of time (and bandwidth) over
   13126  * and above the stated application rates required to transport an MSDU/A-MSDU
   13127  * belonging to the TS in this TSPEC.
   13128  * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
   13129  */
   13130 enum qca_wlan_vendor_attr_config_tspec {
   13131 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_INVALID = 0,
   13132 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_OPERATION = 1,
   13133 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_TSID = 2,
   13134 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_DIRECTION = 3,
   13135 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_APSD = 4,
   13136 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_USER_PRIORITY = 5,
   13137 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_ACK_POLICY = 6,
   13138 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_NOMINAL_MSDU_SIZE = 7,
   13139 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAXIMUM_MSDU_SIZE = 8,
   13140 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MIN_SERVICE_INTERVAL = 9,
   13141 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAX_SERVICE_INTERVAL = 10,
   13142 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_INACTIVITY_INTERVAL = 11,
   13143 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SUSPENSION_INTERVAL = 12,
   13144 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_DATA_RATE = 13,
   13145 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MEAN_DATA_RATE = 14,
   13146 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_PEAK_DATA_RATE = 15,
   13147 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_BURST_SIZE = 16,
   13148 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_PHY_RATE = 17,
   13149 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SURPLUS_BANDWIDTH_ALLOWANCE = 18,
   13150 
   13151 	/* keep last */
   13152 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_AFTER_LAST,
   13153 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAX =
   13154 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_AFTER_LAST - 1,
   13155 };
   13156 
   13157 /**
   13158  * enum qca_wlan_vendor_oci_override_frame_type - OCI override frame type
   13159  * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_REQ: SA Query Request frame
   13160  * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_RESP: SA Query Response frame
   13161  * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FT_REASSOC_REQ: FT Reassociation Request
   13162  * frame
   13163  * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FILS_REASSOC_REQ: FILS Reassociation
   13164  * Request frame.
   13165  */
   13166 enum qca_wlan_vendor_oci_override_frame_type {
   13167 	QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_REQ = 1,
   13168 	QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_RESP = 2,
   13169 	QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FT_REASSOC_REQ = 3,
   13170 	QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FILS_REASSOC_REQ = 4,
   13171 };
   13172 
   13173 /**
   13174  * enum qca_wlan_vendor_attr_oci_override: Represents attributes for
   13175  * OCI override request. These attributes are used inside nested attribute
   13176  * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OCI_OVERRIDE in QCA vendor command
   13177  * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION.
   13178  *
   13179  * @QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FRAME_TYPE: Required attribute, u8.
   13180  * Values from enum qca_wlan_vendor_oci_override_frame_type used in this
   13181  * attribute to specify the frame type in which the OCI is to be overridden.
   13182  *
   13183  * @QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FREQUENCY: Required (u32)
   13184  * OCI frequency (in MHz) to override in the specified frame type.
   13185  */
   13186 enum qca_wlan_vendor_attr_oci_override {
   13187 	QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_INVALID = 0,
   13188 	QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FRAME_TYPE = 1,
   13189 	QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FREQUENCY = 2,
   13190 
   13191 	/* keep last */
   13192 	QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_AFTER_LAST,
   13193 	QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_MAX =
   13194 	QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_AFTER_LAST - 1,
   13195 };
   13196 
   13197 /**
   13198  * enum qca_wlan_medium_assess_type - Type of medium assess request
   13199  *
   13200  * Values for %QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TYPE.
   13201  */
   13202 enum qca_wlan_medium_assess_type {
   13203 	QCA_WLAN_MEDIUM_ASSESS_CCA = 0,
   13204 	QCA_WLAN_MEDIUM_ASSESS_CONGESTION_REPORT = 1,
   13205 };
   13206 
   13207 /**
   13208  * enum qca_wlan_vendor_attr_medium_assess - Attributes used by
   13209  * %QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS vendor command.
   13210  *
   13211  * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TYPE:
   13212  * u8 attribute. Mandatory in all kinds of medium assess requests/responses.
   13213  * Specify the type of medium assess request and indicate its type in response.
   13214  * Possible values are defined in enum qca_wlan_medium_assess_type.
   13215  *
   13216  * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_PERIOD:
   13217  * u32 attribute. Mandatory in CCA request.
   13218  * Specify the assessment period in terms of seconds. Assessment result will be
   13219  * sent as the response to the CCA request after the assessment period.
   13220  *
   13221  * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TOTAL_CYCLE_COUNT:
   13222  * u32 attribute. Mandatory in response to CCA request.
   13223  * Total timer tick count of the assessment cycle.
   13224  *
   13225  * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IDLE_COUNT:
   13226  * u32 attribute. Mandatory in response to CCA request.
   13227  * Timer tick count of idle time in the assessment cycle.
   13228  *
   13229  * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IBSS_RX_COUNT:
   13230  * u32 attribute. Mandatory in response to CCA request.
   13231  * Timer tick count of Intra BSS traffic RX time in the assessment cycle.
   13232  *
   13233  * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_OBSS_RX_COUNT:
   13234  * u32 attribute. Mandatory in response to CCA request.
   13235  * Timer tick count of Overlapping BSS traffic RX time in the assessment cycle.
   13236  *
   13237  * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MAX_IBSS_RSSI:
   13238  * s32 attribute. Mandatory in response to CCA request.
   13239  * Maximum RSSI of Intra BSS traffic in the assessment cycle.
   13240  *
   13241  * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MIN_IBSS_RSSI:
   13242  * s32 attribute. Mandatory in response to CCA request.
   13243  * Minimum RSSI of Intra BSS traffic in the assessment cycle.
   13244  *
   13245  * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_ENABLE:
   13246  * u8 attribute. Mandatory in congestion report request.
   13247  * 1-enable 0-disable.
   13248  *
   13249  * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_THRESHOLD:
   13250  * u8 attribute. Mandatory in congestion report enable request and will be
   13251  * ignored if present in congestion report disable request. Possible values are
   13252  * 0-100. A vendor event QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS with the type
   13253  * QCA_WLAN_MEDIUM_ASSESS_CONGESTION_REPORT will be sent to userspace if
   13254  * congestion percentage reaches the configured threshold.
   13255  *
   13256  * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_INTERVAL:
   13257  * u8 attribute. Optional in congestion report enable request and will be
   13258  * ignored if present in congestion report disable request.
   13259  * Specify the interval of congestion report event in terms of seconds. Possible
   13260  * values are 1-255. Default value 1 will be used if this attribute is omitted
   13261  * or using invalid values.
   13262  *
   13263  * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_PERCENTAGE:
   13264  * u8 attribute. Mandatory in congestion report event.
   13265  * Indicate the actual congestion percentage. Possible values are 0-100.
   13266  */
   13267 enum qca_wlan_vendor_attr_medium_assess {
   13268 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_INVALID = 0,
   13269 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TYPE = 1,
   13270 
   13271 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_PERIOD = 2,
   13272 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TOTAL_CYCLE_COUNT = 3,
   13273 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IDLE_COUNT = 4,
   13274 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IBSS_RX_COUNT = 5,
   13275 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_OBSS_RX_COUNT = 6,
   13276 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MAX_IBSS_RSSI = 7,
   13277 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MIN_IBSS_RSSI = 8,
   13278 
   13279 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_ENABLE = 9,
   13280 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_THRESHOLD = 10,
   13281 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_INTERVAL = 11,
   13282 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_PERCENTAGE = 12,
   13283 
   13284 	/* keep last */
   13285 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_AFTER_LAST,
   13286 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MAX =
   13287 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_AFTER_LAST - 1,
   13288 };
   13289 
   13290 /**
   13291  * enum qca_wlan_vendor_attr_mbssid_tx_vdev_status - Defines attributes
   13292  * used by QCA_NL80211_VENDOR_SUBCMD_MBSSID_TX_VDEV_STATUS vendor command.
   13293  *
   13294  * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_VAL:
   13295  * u8 attribute. Notify the TX VDEV status. Possible values 0, 1
   13296  * belonging to MBSSID/EMA_AP configuration. 0 means Non-Tx VDEV,
   13297  * 1 means Tx VDEV. Mandatory attribute for all MBSSID VDEV status events.
   13298  *
   13299  * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_EVENT:
   13300  * u8 attribute, required. 1 means Tx VDEV up event. 0 means Tx VDEV down event.
   13301  *
   13302  * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_ID:
   13303  * u8 attribute, required. Indicates group id of Tx VDEV.
   13304  *
   13305  * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO:
   13306  * Nested attribute. This attribute shall be used by the driver to send
   13307  * group information. The attributes defined in enum
   13308  * qca_wlan_vendor_attr_mbssid_tx_vdev_group_info
   13309  * are nested in this attribute.
   13310  */
   13311 enum qca_wlan_vendor_attr_mbssid_tx_vdev_status {
   13312 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_INVALID = 0,
   13313 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_VAL = 1,
   13314 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_EVENT = 2,
   13315 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_ID = 3,
   13316 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO = 4,
   13317 
   13318 	/* keep last */
   13319 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_AFTER_LAST,
   13320 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_MAX =
   13321 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_AFTER_LAST - 1,
   13322 };
   13323 
   13324 /**
   13325  * enum qca_wlan_vendor_attr_mbssid_tx_vdev_group_info - Attributes used
   13326  * inside %QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO nested attribute.
   13327  *
   13328  * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_IF_INDEX:
   13329  * u32 attribute, required. Contains interface index.
   13330  *
   13331  * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_STATUS:
   13332  * u8 attribute, required. 0 - means vdev is in down state.
   13333  * 1 - means vdev is in up state.
   13334  */
   13335 enum qca_wlan_vendor_attr_mbssid_tx_vdev_group_info {
   13336 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_INVALID = 0,
   13337 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_IF_INDEX = 1,
   13338 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_STATUS = 2,
   13339 
   13340 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_AFTER_LAST,
   13341 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_MAX =
   13342 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO - 1,
   13343 };
   13344 
   13345 /**
   13346  * enum qca_wlan_concurrent_sta_policy_config - Concurrent STA policies
   13347  *
   13348  * @QCA_WLAN_CONCURRENT_STA_POLICY_PREFER_PRIMARY: Preference to the primary
   13349  * STA interface has to be given while selecting the connection policies
   13350  * (e.g., BSSID, band, TX/RX chains, etc.) for the subsequent STA interface.
   13351  * An interface is set as primary through the attribute
   13352  * QCA_WLAN_VENDOR_ATTR_CONFIG_CONCURRENT_STA_PRIMARY. This policy is not
   13353  * applicable if the primary interface has not been set earlier.
   13354  *
   13355  * The intention is not to downgrade the primary STA performance, such as:
   13356  * - Do not reduce the number of TX/RX chains of primary connection.
   13357  * - Do not optimize DBS vs. MCC/SCC, if DBS ends up reducing the number of
   13358  *   chains.
   13359  * - If using MCC, should set the MCC duty cycle of the primary connection to
   13360  *   be higher than the secondary connection.
   13361  *
   13362  * @QCA_WLAN_CONCURRENT_STA_POLICY_UNBIASED: The connection policies for the
   13363  * subsequent STA connection shall be chosen to balance with the existing
   13364  * concurrent STA's performance.
   13365  * Such as
   13366  * - Can choose MCC or DBS mode depending on the MCC efficiency and hardware
   13367  *   capability.
   13368  * - If using MCC, set the MCC duty cycle of the primary connection to be equal
   13369  *   to the secondary.
   13370  * - Prefer BSSID candidates which will help provide the best "overall"
   13371  *   performance for all the STA connections.
   13372  */
   13373 enum qca_wlan_concurrent_sta_policy_config {
   13374 	QCA_WLAN_CONCURRENT_STA_POLICY_PREFER_PRIMARY = 0,
   13375 	QCA_WLAN_CONCURRENT_STA_POLICY_UNBIASED = 1,
   13376 };
   13377 
   13378 /**
   13379  * enum qca_wlan_concurrent_ap_policy_config - Concurrent AP policies
   13380  *
   13381  * @QCA_WLAN_CONCURRENT_AP_POLICY_UNSPECIFIED: No specific policy for this AP
   13382  * interface.
   13383  *
   13384  * @QCA_WLAN_CONCURRENT_AP_POLICY_GAMING_AUDIO: Select interface concurrencies
   13385  * to meet gaming audio latency requirements.
   13386  * This policy is used only when the driver advertises support for
   13387  * QCA_WLAN_VENDOR_FEATURE_ENHANCED_AUDIO_EXPERIENCE_OVER_WLAN.
   13388  *
   13389  * @QCA_WLAN_CONCURRENT_AP_POLICY_LOSSLESS_AUDIO_STREAMING: Select interface
   13390  * concurrencies to meet lossless audio streaming requirements.
   13391  * This policy is used only when the driver advertises support for
   13392  * QCA_WLAN_VENDOR_FEATURE_ENHANCED_AUDIO_EXPERIENCE_OVER_WLAN.
   13393  *
   13394  * @QCA_WLAN_CONCURRENT_AP_POLICY_XR: Select interface concurrencies to meet
   13395  * XR (eXtended Reality) requirements.
   13396  */
   13397 enum qca_wlan_concurrent_ap_policy_config {
   13398 	QCA_WLAN_CONCURRENT_AP_POLICY_UNSPECIFIED = 0,
   13399 	QCA_WLAN_CONCURRENT_AP_POLICY_GAMING_AUDIO = 1,
   13400 	QCA_WLAN_CONCURRENT_AP_POLICY_LOSSLESS_AUDIO_STREAMING = 2,
   13401 	QCA_WLAN_CONCURRENT_AP_POLICY_XR = 3,
   13402 };
   13403 
   13404 /**
   13405  * enum qca_wlan_vendor_attr_concurrent_policy - Defines attributes
   13406  * used by QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_POLICY vendor command.
   13407  *
   13408  * @QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_STA_CONFIG:
   13409  * u8 attribute. Configures the concurrent STA policy configuration.
   13410  * Possible values are defined in enum qca_wlan_concurrent_sta_policy_config.
   13411 
   13412  * @QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_AP_CONFIG:
   13413  * u8 attribute. Configures the concurrent AP policy configuration.
   13414  * Possible values are defined in enum qca_wlan_concurrent_ap_policy_config.
   13415  */
   13416 enum qca_wlan_vendor_attr_concurrent_policy {
   13417 	QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_INVALID = 0,
   13418 	QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_STA_CONFIG = 1,
   13419 	QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_AP_CONFIG = 2,
   13420 
   13421 	/* keep last */
   13422 	QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_AFTER_LAST,
   13423 	QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_MAX =
   13424 	QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_AFTER_LAST - 1,
   13425 
   13426 };
   13427 
   13428 /* Compatibility defines for previously used enum
   13429  * qca_wlan_vendor_attr_concurrent_policy names. These values should not be used
   13430  * in any new implementation.
   13431  */
   13432 #define QCA_WLAN_VENDOR_ATTR_CONCURRENT_STA_POLICY_CONFIG \
   13433 	QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_STA_CONFIG
   13434 #define QCA_WLAN_VENDOR_ATTR_CONCURRENT_STA_POLICY_MAX \
   13435 	QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_MAX
   13436 #define qca_wlan_vendor_attr_concurrent_sta_policy \
   13437 	qca_wlan_vendor_attr_concurrent_policy
   13438 
   13439 /**
   13440  * enum qca_sta_connect_fail_reason_codes - Defines values carried
   13441  * by QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_CONNECT_FAIL_REASON_CODE vendor
   13442  * attribute.
   13443  * @QCA_STA_CONNECT_FAIL_REASON_NO_BSS_FOUND: No Probe Response frame received
   13444  *	for unicast Probe Request frame.
   13445  * @QCA_STA_CONNECT_FAIL_REASON_AUTH_TX_FAIL: STA failed to send auth request.
   13446  * @QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_ACK_RECEIVED: AP didn't send ACK for
   13447  *	auth request.
   13448  * @QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_RESP_RECEIVED: Auth response is not
   13449  *	received from AP.
   13450  * @QCA_STA_CONNECT_FAIL_REASON_ASSOC_REQ_TX_FAIL: STA failed to send
   13451  *	Association Request frame.
   13452  * @QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_ACK_RECEIVED: AP didn't send ACK for
   13453  *	Association Request frame.
   13454  * @QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_RESP_RECEIVED: Association Response
   13455  *	frame is not received from AP.
   13456  */
   13457 enum qca_sta_connect_fail_reason_codes {
   13458 	QCA_STA_CONNECT_FAIL_REASON_NO_BSS_FOUND = 1,
   13459 	QCA_STA_CONNECT_FAIL_REASON_AUTH_TX_FAIL = 2,
   13460 	QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_ACK_RECEIVED = 3,
   13461 	QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_RESP_RECEIVED = 4,
   13462 	QCA_STA_CONNECT_FAIL_REASON_ASSOC_REQ_TX_FAIL = 5,
   13463 	QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_ACK_RECEIVED = 6,
   13464 	QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_RESP_RECEIVED = 7,
   13465 };
   13466 
   13467 /**
   13468  * enum qca_wlan_vendor_usable_channels_filter - Bitmask of different
   13469  * filters defined in this enum are used in attribute
   13470  * %QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_FILTER_MASK.
   13471  *
   13472  * @QCA_WLAN_VENDOR_FILTER_CELLULAR_COEX: When this bit is set, the driver
   13473  * shall filter the channels which are not usable because of coexistence with
   13474  * cellular radio.
   13475  * @QCA_WLAN_VENDOR_FILTER_WLAN_CONCURRENCY: When this bit is set, the driver
   13476  * shall filter the channels which are not usable because of existing active
   13477  * interfaces in the driver and will result in Multi Channel Concurrency, etc.
   13478  *
   13479  */
   13480 enum qca_wlan_vendor_usable_channels_filter {
   13481 	QCA_WLAN_VENDOR_FILTER_CELLULAR_COEX = 0,
   13482 	QCA_WLAN_VENDOR_FILTER_WLAN_CONCURRENCY = 1,
   13483 };
   13484 
   13485 /**
   13486  * enum qca_wlan_vendor_attr_chan_info - Attributes used inside
   13487  * %QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_CHAN_INFO nested attribute.
   13488  *
   13489  * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_PRIMARY_FREQ:
   13490  * u32 attribute, required. Indicates the center frequency of the primary
   13491  * channel in MHz.
   13492  *
   13493  * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG0_FREQ:
   13494  * u32 attribute. Indicates the center frequency of the primary segment of the
   13495  * channel in MHz. This attribute is required when reporting 40 MHz, 80 MHz,
   13496  * 160 MHz, and 320 MHz channels.
   13497  *
   13498  * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG1_FREQ:
   13499  * u32 attribute. Indicates the center frequency of the secondary segment of
   13500  * 80+80 channel in MHz. This attribute is required only when
   13501  * QCA_WLAN_VENDOR_ATTR_CHAN_INFO_BANDWIDTH is set to NL80211_CHAN_WIDTH_80P80.
   13502  *
   13503  * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_BANDWIDTH:
   13504  * u32 attribute, required. Indicates the bandwidth of the channel, possible
   13505  * values are defined in enum nl80211_chan_width.
   13506  *
   13507  * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_IFACE_MODE_MASK:
   13508  * u32 attribute, required. Indicates all the interface types for which this
   13509  * channel is usable. This attribute encapsulates bitmasks of interface types
   13510  * defined in enum nl80211_iftype.
   13511  *
   13512  */
   13513 enum qca_wlan_vendor_attr_chan_info {
   13514 	QCA_WLAN_VENDOR_ATTR_CHAN_INFO_INVALID = 0,
   13515 	QCA_WLAN_VENDOR_ATTR_CHAN_INFO_PRIMARY_FREQ = 1,
   13516 	QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG0_FREQ = 2,
   13517 	QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG1_FREQ = 3,
   13518 	QCA_WLAN_VENDOR_ATTR_CHAN_INFO_BANDWIDTH = 4,
   13519 	QCA_WLAN_VENDOR_ATTR_CHAN_INFO_IFACE_MODE_MASK = 5,
   13520 
   13521 	/* keep last */
   13522 	QCA_WLAN_VENDOR_ATTR_CHAN_INFO_AFTER_LAST,
   13523 	QCA_WLAN_VENDOR_ATTR_CHAN_INFO_MAX =
   13524 	QCA_WLAN_VENDOR_ATTR_CHAN_INFO_AFTER_LAST - 1,
   13525 };
   13526 
   13527 /**
   13528  * enum qca_wlan_vendor_attr_usable_channels - Attributes used by
   13529  * %QCA_NL80211_VENDOR_SUBCMD_USABLE_CHANNELS vendor command.
   13530  *
   13531  * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_BAND_MASK:
   13532  * u32 attribute. Indicates the bands from which the channels should be reported
   13533  * in response. This attribute encapsulates bit masks of bands defined in enum
   13534  * nl80211_band. Optional attribute, if not present in the request the driver
   13535  * shall return channels from all supported bands.
   13536  *
   13537  * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_IFACE_MODE_MASK:
   13538  * u32 attribute. Indicates all the interface types for which the usable
   13539  * channels information is requested. This attribute encapsulates bitmasks of
   13540  * interface types defined in enum nl80211_iftype. Optional attribute, if not
   13541  * present in the request the driver shall send information of all supported
   13542  * interface modes.
   13543  *
   13544  * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_FILTER_MASK:
   13545  * u32 attribute. This attribute carries information of all filters that shall
   13546  * be applied while populating usable channels information by the driver. This
   13547  * attribute carries bit masks of different filters defined in enum
   13548  * qca_wlan_vendor_usable_channels_filter. Optional attribute, if not present
   13549  * in the request the driver shall send information of channels without applying
   13550  * any of the filters that can be configured through this attribute.
   13551  *
   13552  * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_CHAN_INFO:
   13553  * Nested attribute. This attribute shall be used by the driver to send
   13554  * usability information of each channel. The attributes defined in enum
   13555  * qca_wlan_vendor_attr_chan_info are used inside this attribute.
   13556  */
   13557 enum qca_wlan_vendor_attr_usable_channels {
   13558 	QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_INVALID = 0,
   13559 	QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_BAND_MASK = 1,
   13560 	QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_IFACE_MODE_MASK = 2,
   13561 	QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_FILTER_MASK = 3,
   13562 	QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_CHAN_INFO = 4,
   13563 
   13564 	/* keep last */
   13565 	QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_AFTER_LAST,
   13566 	QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_MAX =
   13567 	QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_AFTER_LAST - 1,
   13568 };
   13569 
   13570 /**
   13571  * enum qca_wlan_vendor_attr_radar_history: Used by the vendor command
   13572  * QCA_NL80211_VENDOR_SUBCMD_GET_RADAR_HISTORY to get DFS radar history.
   13573  *
   13574  * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_ENTRIES: Nested attribute to carry
   13575  *	the list of radar history entries.
   13576  *	Each entry contains freq, timestamp, and radar signal detect flag.
   13577  *	The driver shall add an entry when CAC has finished, or radar signal
   13578  *	has been detected post AP beaconing. The driver shall maintain at least
   13579  *	8 entries in order to save CAC result for a 160 MHz channel.
   13580  * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_FREQ: u32 attribute.
   13581  *	Channel frequency in MHz.
   13582  * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_TIMESTAMP: u64 nanoseconds.
   13583  *	CLOCK_BOOTTIME timestamp when this entry is updated due to CAC
   13584  *	or radar detection.
   13585  * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_DETECTED: NLA_FLAG attribute.
   13586  *	This flag indicates radar signal has been detected.
   13587  * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_PAD: Attribute used for padding for
   13588  *	64-bit alignment.
   13589  */
   13590 enum qca_wlan_vendor_attr_radar_history {
   13591 	QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_INVALID = 0,
   13592 
   13593 	QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_ENTRIES = 1,
   13594 	QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_FREQ = 2,
   13595 	QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_TIMESTAMP = 3,
   13596 	QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_DETECTED = 4,
   13597 	QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_PAD = 5,
   13598 
   13599 	/* keep last */
   13600 	QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_LAST,
   13601 	QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_MAX =
   13602 	QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_LAST - 1,
   13603 };
   13604 
   13605 /**
   13606  * enum qca_wlan_vendor_mcc_quota_type: MCC channel time quota type
   13607  *
   13608  * @QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_CLEAR: In the event, it indicates that the
   13609  *	target exited MCC state and cleared the quota information. In the
   13610  *	command it clears MCC quota setting and restores adaptive scheduling.
   13611  * @QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_FIXED: Channel time quota is fixed and
   13612  *      will not be changed.
   13613  *      This quota type is present in command/event.
   13614  * @QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_DYNAMIC: Channel time quota is dynamic
   13615  *      and the target may change the quota based on the data activity.
   13616  *      This quota type is only present in event.
   13617  * @QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_LOW_LATENCY: Channel time quota is optimized
   13618  *      by the target for low latency.
   13619  *      This quota type is only present in command.
   13620  */
   13621 enum qca_wlan_vendor_mcc_quota_type {
   13622 	QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_CLEAR = 0,
   13623 	QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_FIXED = 1,
   13624 	QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_DYNAMIC = 2,
   13625 	QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_LOW_LATENCY = 3,
   13626 };
   13627 
   13628 /**
   13629  * enum qca_wlan_vendor_attr_mcc_quota: Used by the vendor event
   13630  * QCA_NL80211_VENDOR_SUBCMD_MCC_QUOTA to indicate MCC channel
   13631  * quota information or as a command to set the required MCC quota for an
   13632  * interface.
   13633  *
   13634  * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_TYPE: u32 attribute.
   13635  * The type is defined in enum qca_wlan_vendor_mcc_quota_type.
   13636  * In a command this specifies the MCC quota type to be set for the interface.
   13637  * In an event this provides the current quota type in force.
   13638  * This is required in a command and an event.
   13639  *
   13640  * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_ENTRIES: Nested attribute to carry
   13641  * the list of channel quota entries.
   13642  * In an event each entry contains the frequency and respective time quota for
   13643  * all the MCC interfaces.
   13644  * In a command it specifies the interface index and respective time quota.
   13645  * In a command only one entry (ifindex, quota pair) may be specified.
   13646  *
   13647  * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_FREQ: u32 attribute.
   13648  * Channel frequency in MHz. This is present only in an event.
   13649  *
   13650  * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_TIME_PERCENTAGE: u32 attribute.
   13651  * Channel time quota expressed as percentage.
   13652  * This is present in an event and a command.
   13653  * In an command, the user shall specify the quota to be allocated for the
   13654  * interface represented by %QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_IFINDEX.
   13655  * In an event this provides the existing quota for the channel.
   13656  *
   13657  * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_IFINDEX: u32 attribute.
   13658  * Specifies the interface index (netdev) for which the corresponding
   13659  * configurations are applied. This is required in a command only. Only one
   13660  * interface index may be specified. If not specified, the configuration is
   13661  * rejected.
   13662  *
   13663  * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_LOW_LATENCY_MODE_ENABLE
   13664  * 8-bit unsigned value to enable/disable Multi-Channel Concurrency
   13665  * low latency mode. The firmware will do optimization for low
   13666  * latency in Multi-Channel concurrency state if enabled. And all existing
   13667  * user quota setting will be overwritten by the target.
   13668  * 0 - disable(default), 1 - enable.
   13669  * It is only present in a command with quota type of
   13670  * QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_LOW_LATENCY.
   13671  */
   13672 enum qca_wlan_vendor_attr_mcc_quota {
   13673 	QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_INVALID = 0,
   13674 	QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_TYPE = 1,
   13675 	QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_ENTRIES = 2,
   13676 	QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_FREQ = 3,
   13677 	QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_TIME_PERCENTAGE = 4,
   13678 	QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_IFINDEX = 5,
   13679 	QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_LOW_LATENCY_MODE_ENABLE = 6,
   13680 
   13681 	/* keep last */
   13682 	QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_LAST,
   13683 	QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_MAX =
   13684 	QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_LAST - 1,
   13685 };
   13686 
   13687 /**
   13688  * enum qca_wlan_roam_stats_invoke_reason - Roam invoke reason. These values
   13689  * are used by the attribute
   13690  * %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_USER_TRIGGER_INVOKE_REASON.
   13691  *
   13692  * @QCA_WLAN_ROAM_STATS_INVOKE_REASON_UNDEFINED: Default value when target
   13693  *  invoke roam.
   13694  * @QCA_WLAN_ROAM_STATS_INVOKE_REASON_NUD_FAILURE: Neighbor unreachable
   13695  *  detection failed when the roam trigger.
   13696  * @QCA_WLAN_ROAM_STATS_INVOKE_REASON_USER_SPACE: Invoke from user space.
   13697  */
   13698 
   13699 enum qca_wlan_roam_stats_invoke_reason {
   13700 	QCA_WLAN_ROAM_STATS_INVOKE_REASON_UNDEFINED = 0,
   13701 	QCA_WLAN_ROAM_STATS_INVOKE_REASON_NUD_FAILURE = 1,
   13702 	QCA_WLAN_ROAM_STATS_INVOKE_REASON_USER_SPACE = 2,
   13703 };
   13704 
   13705 /**
   13706  * enum qca_wlan_roam_stats_tx_failures_reason - Roam TX failures reason. These
   13707  * values are used by the attribute
   13708  * %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_TX_FAILURES_REASON.
   13709  *
   13710  * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_UNSPECIFIED: Default value when
   13711  *  roam by kickout.
   13712  * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_XRETRY: Excessive retry when roam
   13713  *  trigger by kickout.
   13714  * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_INACTIVITY: Station inactivity when
   13715  *  roam trigger by kickout.
   13716  * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_IBSS_DISCONNECT: IBSS disconnect when
   13717  *  roam trigger by kickout.
   13718  * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_TDLS_DISCONNECT: TDLS peer has
   13719  *  disappeared, and all TX is failing when roam trigger by kickout.
   13720  * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_SA_QUERY_TIMEOUT: SA query process
   13721  *   timeout when roam trigger by kickout.
   13722  * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_ROAMING_EVENT: Directly connected
   13723  *  peer has roamed to a repeater.
   13724  */
   13725 enum qca_wlan_roam_stats_tx_failures_reason {
   13726 	QCA_WLAN_ROAM_STATS_KICKOUT_REASON_UNSPECIFIED = 0,
   13727 	QCA_WLAN_ROAM_STATS_KICKOUT_REASON_XRETRY = 1,
   13728 	QCA_WLAN_ROAM_STATS_KICKOUT_REASON_INACTIVITY = 2,
   13729 	QCA_WLAN_ROAM_STATS_KICKOUT_REASON_IBSS_DISCONNECT = 3,
   13730 	QCA_WLAN_ROAM_STATS_KICKOUT_REASON_TDLS_DISCONNECT = 4,
   13731 	QCA_WLAN_ROAM_STATS_KICKOUT_REASON_SA_QUERY_TIMEOUT = 5,
   13732 	QCA_WLAN_ROAM_STATS_KICKOUT_REASON_ROAMING_EVENT = 6,
   13733 };
   13734 
   13735 /**
   13736  * enum qca_wlan_roam_stats_abort_reason - Roam abort reason. These values
   13737  * are used by the attribute %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ABORT_REASON.
   13738  *
   13739  * @QCA_WLAN_ROAM_STATS_ABORT_UNSPECIFIED: Target did not specify the
   13740  *  detailed reason for roam scan being aborted.
   13741  * @QCA_WLAN_ROAM_STATS_ABORT_LOWRSSI_DATA_RSSI_HIGH: Roam scan is not
   13742  *  started due to high data RSSI during LOW-RSSI roaming.
   13743  * @QCA_WLAN_ROAM_STATS_ABORT_LOWRSSI_LINK_SPEED_GOOD: Roam scan is not
   13744  *  started due to good link speed during LOW-RSSI roaming.
   13745  * @QCA_WLAN_ROAM_STATS_ABORT_BG_DATA_RSSI_HIGH: Roam scan is not started
   13746  *  due to high data RSSI during background roaming.
   13747  * @QCA_WLAN_ROAM_STATS_ABORT_BG_RSSI_ABOVE_THRESHOLD: Roam scan is not
   13748  *  started due to high beacon RSSI during background roaming
   13749  */
   13750 enum qca_wlan_roam_stats_abort_reason {
   13751 	QCA_WLAN_ROAM_STATS_ABORT_UNSPECIFIED = 0,
   13752 	QCA_WLAN_ROAM_STATS_ABORT_LOWRSSI_DATA_RSSI_HIGH = 1,
   13753 	QCA_WLAN_ROAM_STATS_ABORT_LOWRSSI_LINK_SPEED_GOOD = 2,
   13754 	QCA_WLAN_ROAM_STATS_ABORT_BG_DATA_RSSI_HIGH = 3,
   13755 	QCA_WLAN_ROAM_STATS_ABORT_BG_RSSI_ABOVE_THRESHOLD = 4,
   13756 };
   13757 
   13758 /**
   13759  * enum qca_wlan_roam_stats_scan_type - Roam scan type define.
   13760  * These values are used by the attribute
   13761  * %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_TYPE.
   13762  *
   13763  * @QCA_WLAN_ROAM_STATS_SCAN_TYPE_PARTIAL: Partial channel scan
   13764  * @QCA_WLAN_ROAM_STATS_SCAN_TYPE_FULL: Full channel scan
   13765  * @QCA_WLAN_ROAM_STATS_SCAN_TYPE_NO_SCAN: No roam scan was triggered.
   13766  *  This is generally used in BTM events to indicate BTM frame exchange logs.
   13767  * @QCA_WLAN_ROAM_STATS_SCAN_TYPE_HIGHER_BAND_5GHZ_6GHZ: Higher band roam scan
   13768  *  from 2.4 GHz to 5 GHz or 6 GHz
   13769  * @QCA_WLAN_ROAM_STATS_SCAN_TYPE_HIGHER_BAND_6GHZ: Higher band roam scan from
   13770  *  5 GHz to 6 GHz
   13771  */
   13772 enum qca_wlan_roam_stats_scan_type {
   13773 	QCA_WLAN_ROAM_STATS_SCAN_TYPE_PARTIAL = 0,
   13774 	QCA_WLAN_ROAM_STATS_SCAN_TYPE_FULL = 1,
   13775 	QCA_WLAN_ROAM_STATS_SCAN_TYPE_NO_SCAN = 2,
   13776 	QCA_WLAN_ROAM_STATS_SCAN_TYPE_HIGHER_BAND_5GHZ_6GHZ = 3,
   13777 	QCA_WLAN_ROAM_STATS_SCAN_TYPE_HIGHER_BAND_6GHZ = 4,
   13778 };
   13779 
   13780 /**
   13781  * enum qca_wlan_roam_stats_scan_dwell_type - Roam scan dwell type.
   13782  * These values are used by the attribute
   13783  * %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_DWELL_TYPE.
   13784  *
   13785  * @QCA_WLAN_ROAM_STATS_DWELL_TYPE_UNSPECIFIED: Target did not specify the
   13786  *  detailed roam scan type.
   13787  * @QCA_WLAN_ROAM_STATS_DWELL_ACTIVE_TYPE: Active scan during roam.
   13788  * @QCA_WLAN_ROAM_STATS_DWELL_PASSIVE_TYPE: Passive scan during roam.
   13789  */
   13790 enum qca_wlan_roam_stats_scan_dwell_type {
   13791 	QCA_WLAN_ROAM_STATS_DWELL_TYPE_UNSPECIFIED = 0,
   13792 	QCA_WLAN_ROAM_STATS_DWELL_TYPE_ACTIVE = 1,
   13793 	QCA_WLAN_ROAM_STATS_DWELL_TYPE_PASSIVE = 2,
   13794 };
   13795 
   13796 /**
   13797  * enum qca_wlan_vendor_attr_roam_stats_scan_chan_info - Attributes used inside
   13798  * the %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_CHAN_INFO nested attribute.
   13799  */
   13800 enum qca_wlan_vendor_attr_roam_stats_scan_chan_info {
   13801 	/* 32-bit unsigned value to indicate center frequency of the primary
   13802 	 * channel in MHz for each roam scan channel.
   13803 	 */
   13804 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_CHANNEL_FREQ = 1,
   13805 	/* 8-bit unsigned value to indicate channel scan type for each
   13806 	 * roam scan channel, values in qca_wlan_roam_stats_scan_dwell_type.
   13807 	 */
   13808 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_DWELL_TYPE = 2,
   13809 	/* 32-bit unsigned value to indicate maximum scan time in milliseconds
   13810 	 * for each roam scan channel.
   13811 	 */
   13812 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_MAX_DWELL_TIME = 3,
   13813 
   13814 	/* keep last */
   13815 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_INFO_AFTER_LAST,
   13816 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_INFO_FRAME_MAX =
   13817 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_INFO_AFTER_LAST - 1,
   13818 };
   13819 
   13820 /**
   13821  * enum qca_wlan_roam_stats_frame_subtype - Roam frame subtypes. These values
   13822  * are used by the attribute %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_SUBTYPE.
   13823  *
   13824  * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_AUTH_RESP: Authentication Response frame
   13825  * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_REASSOC_RESP: Reassociation Response frame
   13826  * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M1: EAPOL-Key M1 frame
   13827  * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M2: EAPOL-Key M2 frame
   13828  * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M3: EAPOL-Key M3 frame
   13829  * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M4: EAPOL-Key M4 frame
   13830  * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_GTK_M1: EAPOL-Key GTK M1 frame
   13831  * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_GTK_M2: EAPOL-Key GTK M2 frame
   13832  * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_AUTH_REQ: Authentication Request frame
   13833  * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_REASSOC_REQ: Reassociation Request frame
   13834  */
   13835 enum qca_wlan_roam_stats_frame_subtype {
   13836 	QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_AUTH_RESP = 1,
   13837 	QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_REASSOC_RESP = 2,
   13838 	QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M1 = 3,
   13839 	QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M2 = 4,
   13840 	QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M3 = 5,
   13841 	QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M4 = 6,
   13842 	QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_GTK_M1 = 7,
   13843 	QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_GTK_M2 = 8,
   13844 	QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_AUTH_REQ = 9,
   13845 	QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_REASSOC_REQ = 10,
   13846 };
   13847 
   13848 /* Compatibility defines for previously used names.
   13849  * These values should not be used in any new implementation.
   13850  */
   13851 #define QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_PREAUTH \
   13852 	QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_AUTH_RESP
   13853 #define QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_REASSOC \
   13854 	QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_REASSOC_RESP
   13855 
   13856 /**
   13857  * enum roam_frame_status - Specifies the valid values the vendor roam frame
   13858  * attribute QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_STATUS can take.
   13859  *
   13860  * @QCA_WLAN_ROAM_FRAME_STATUS_SUCCESS: It indicates the roam frame was
   13861  *  sent or received successfully.
   13862  * @QCA_WLAN_ROAM_FRAME_STATUS_FAIL: It indicates the roam frame sending or
   13863  *  receiving failed.
   13864  */
   13865 enum qca_wlan_roam_stats_frame_status {
   13866 	QCA_WLAN_ROAM_STATS_FRAME_STATUS_SUCCESS = 0,
   13867 	QCA_WLAN_ROAM_STATS_FRAME_STATUS_FAIL = 1,
   13868 };
   13869 
   13870 /**
   13871  * enum qca_wlan_vendor_attr_roam_stats_frame_info - Attributes used within the
   13872  * %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_INFO nested attribute.
   13873  */
   13874 enum qca_wlan_vendor_attr_roam_stats_frame_info {
   13875 	/* 8-bit unsigned value to indicate the frame subtype during
   13876 	 * roaming, one of the values in qca_wlan_roam_stats_frame_subtype.
   13877 	 */
   13878 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_SUBTYPE = 1,
   13879 	/* 8-bit unsigned value to indicate the frame is successful or failed
   13880 	 * during roaming, one of the values in
   13881 	 * qca_wlan_roam_stats_frame_status.
   13882 	 */
   13883 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_STATUS = 2,
   13884 	/* 64-bit unsigned value to indicate the timestamp for frame of
   13885 	 * preauthentication/reassociation/EAPOL-M1/EAPOL-M2/EAPOL-M3/EAPOL-M4
   13886 	 * when sent or received during roaming, timestamp in milliseconds
   13887 	 * from system boot.
   13888 	 */
   13889 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_TIMESTAMP = 3,
   13890 	/* Attribute used for padding for 64-bit alignment */
   13891 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_PAD = 4,
   13892 	/* This attribute indicates a 6-byte MAC address representing
   13893 	 * the BSSID of the AP.
   13894 	 * For non-MLO scenario, it indicates the AP BSSID.
   13895 	 * For MLO scenario, it indicates the AP BSSID which may be the primary
   13896 	 * link BSSID or a nonprimary link BSSID.
   13897 	 */
   13898 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_BSSID = 5,
   13899 
   13900 	/* keep last */
   13901 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_INFO_AFTER_LAST,
   13902 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_INFO_MAX =
   13903 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_INFO_AFTER_LAST - 1,
   13904 };
   13905 
   13906 /**
   13907  * enum qca_wlan_vendor_attr_roam_stats_info - Used by the attribute
   13908  * QCA_WLAN_VENDOR_ATTR_ROAM_STATS_INFO.
   13909  */
   13910 enum qca_wlan_vendor_attr_roam_stats_info {
   13911 	/* 64-bit unsigned value to indicate the timestamp when roam was
   13912 	 * triggered by the firmware, timestamp in milliseconds from system
   13913 	 * boot.
   13914 	 */
   13915 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ROAM_TRIGGER_TIMESTAMP = 1,
   13916 	/* 32-bit unsigned value to indicate the roam trigger reason for the
   13917 	 * last roaming attempted by the firmware. This can be queried either
   13918 	 * in a connected state or disconnected state. The values of this
   13919 	 * attribute represent the roam trigger reason codes, which
   13920 	 * are defined in enum qca_roam_reason.
   13921 	 */
   13922 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_TRIGGER_REASON = 2,
   13923 	/* 8-bit unsigned value to indicate percentage of packets for which
   13924 	 * the RX rate is lower than the RX rate threshold in total RX packets,
   13925 	 * used for roaming trigger by per.
   13926 	 */
   13927 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_PER_RXRATE_THRESHOLD_PERCENT = 3,
   13928 	/* 8-bit unsigned value to indicate percentage of packets for which
   13929 	 * the TX rate is lower than TX rate threshold in total TX packets,
   13930 	 * used for roaming trigger by per.
   13931 	 */
   13932 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_PER_TXRATE_THRESHOLD_PERCENT = 4,
   13933 	/* 32-bit unsigned value to indicate final beacon miss count for
   13934 	 * trigger reason of beacon miss.
   13935 	 */
   13936 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FINAL_BMISS_CNT = 5,
   13937 	/* 32-bit unsigned value to indicate consecutive beacon miss count
   13938 	 * for trigger reason of beacon miss.
   13939 	 */
   13940 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_CONSECUTIVE_BMISS_CNT = 6,
   13941 	/* 8-bit unsigned value to indicate QOS-NULL TX status for trigger
   13942 	 * reason of beacon miss, 0 - success, 1 - fail.
   13943 	 * If QOS-NULL TX status is successful, beacon miss final count and
   13944 	 * consecutive beacon miss count will be reset to zero, and roam will
   13945 	 * not be triggered. If QOS-NULL TX status is failed, beacon miss final
   13946 	 * count and consecutive beacon miss count continue to calculate until
   13947 	 * roaming trigger by beacon miss.
   13948 	 */
   13949 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BMISS_QOS_NULL_SUCCESS = 7,
   13950 	/* 8-bit signed value to indicate connected AP RSSI in dBm
   13951 	 * for trigger reason of poor RSSI.
   13952 	 */
   13953 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_POOR_RSSI_CURRENT_RSSI = 8,
   13954 	/* 8-bit signed value to indicate RSSI threshold value in dBm
   13955 	 * for trigger reason of poor RSSI.
   13956 	 */
   13957 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_POOR_RSSI_ROAM_RSSI_THRESHOLD = 9,
   13958 	/* 8-bit unsigned value to indicate RX link speed status
   13959 	 * for trigger reason of poor RSSI, 0 - good link speed,
   13960 	 * 1 - bad link speed.
   13961 	 */
   13962 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_POOR_RSSI_RX_LINKSPEED_STATUS = 10,
   13963 	/* 8-bit signed value to indicate connected AP RSSI in dBm
   13964 	 * for trigger reason of better RSSI.
   13965 	 */
   13966 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BETTER_RSSI_CURRENT_RSSI = 11,
   13967 	/* 8-bit signed value to indicate RSSI threshold value in dBm
   13968 	 * for trigger reason of better RSSI.
   13969 	 */
   13970 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BETTER_RSSI_HIGH_RSSI_THRESHOLD = 12,
   13971 	/* 32-bit unsigned value to indicate RX throughput in bytes per second
   13972 	 * for trigger reason of congestion.
   13973 	 */
   13974 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_CONGESTION_RX_TPUT = 13,
   13975 	/* 32-bit unsigned value to indicate TX throughput in bytes per second
   13976 	 * for trigger reason of congestion.
   13977 	 */
   13978 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_CONGESTION_TX_TPUT = 14,
   13979 	/* 8-bit unsigned value to indicate roamable AP count
   13980 	 * for trigger reason of congestion.
   13981 	 */
   13982 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_CONGESTION_ROAMABLE_CNT = 15,
   13983 	/* 8-bit unsigned value to indicate invoke reason, one of the values
   13984 	 * defined in qca_wlan_roam_stats_invoke_reason.
   13985 	 */
   13986 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_USER_TRIGGER_INVOKE_REASON = 16,
   13987 	/* 8-bit unsigned value to indicate request mode for trigger reason
   13988 	 * of BTM, values are defined in IEEE Std 802.11-2020, 9.6.13.9.
   13989 	 */
   13990 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_REQUEST_MODE = 17,
   13991 	/* 32-bit unsigned value to indicate disassociate time in milliseconds
   13992 	 * for trigger reason of BTM.
   13993 	 */
   13994 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_DISASSOC_IMMINENT_TIME = 18,
   13995 	/* 32-bit unsigned value to indicate preferred candidate list valid
   13996 	 * interval in milliseconds for trigger reason of BTM.
   13997 	 */
   13998 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_VALID_INTERNAL = 19,
   13999 	/* 8-bit unsigned value to indicate the number of preferred
   14000 	 * candidates for trigger reason of BTM.
   14001 	 */
   14002 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_CANDIDATE_LIST_CNT = 20,
   14003 	/* 8-bit unsigned value to indicate response status for trigger
   14004 	 * reason of BTM, values are defined in IEEE Std 802.11-2020,
   14005 	 * Table 9-428 (BTM status code definitions).
   14006 	 */
   14007 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_RESPONSE_STATUS_CODE = 21,
   14008 	/* 32-bit unsigned value to indicate BSS termination timeout value
   14009 	 * in milliseconds for trigger reason of BTM.
   14010 	 */
   14011 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_BSS_TERMINATION_TIMEOUT = 22,
   14012 	/* 32-bit unsigned value to indicate MBO associate retry timeout
   14013 	 * value in milliseconds for trigger reason of BTM.
   14014 	 */
   14015 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_MBO_ASSOC_RETRY_TIMEOUT = 23,
   14016 	/* 8-bit unsigned value to indicate dialog token number
   14017 	 * for trigger reason of BTM.
   14018 	 */
   14019 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_REQ_DIALOG_TOKEN = 24,
   14020 	/* 8-bit unsigned value to indicate percentage of connected AP
   14021 	 * channel congestion utilization for trigger reason of BSS load.
   14022 	 */
   14023 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BSS_CU_LOAD = 25,
   14024 	/* 8-bit unsigned value to indicate disconnection type
   14025 	 * for trigger reason of disconnection. 1 - Deauthentication,
   14026 	 * 2 - Disassociation.
   14027 	 */
   14028 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_DISCONNECTION_TYPE = 26,
   14029 	/* 16-bit unsigned value to indicate deauthentication or disassociation
   14030 	 * reason for trigger reason of disconnection, values are defined
   14031 	 * in IEEE Std 802.11-2020, Table 9-49 (Reason codes).
   14032 	 */
   14033 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_DISCONNECTION_REASON = 27,
   14034 	/* 32-bit unsigned value to indicate milliseconds of roam scan
   14035 	 * periodicity when needing to roam to find a better AP for trigger
   14036 	 * reason of periodic timer.
   14037 	 */
   14038 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_PERIODIC_TIMER_MS = 28,
   14039 	/* 8-bit signed value to indicate connected AP RSSI in dBm for
   14040 	 * trigger reason of background scan.
   14041 	 */
   14042 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BACKGROUND_SCAN_CURRENT_RSSI = 29,
   14043 	/* 8-bit signed value to indicate data RSSI in dBm for trigger reason
   14044 	 * of background scan.
   14045 	 */
   14046 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BACKGROUND_SCAN_DATA_RSSI = 30,
   14047 	/* 8-bit signed value to indicate data RSSI threshold in dBm
   14048 	 * for trigger reason of background scan.
   14049 	 */
   14050 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BACKGROUND_SCAN_DATA_RSSI_THRESH = 31,
   14051 	/* 32-bit unsigned value to indicate consecutive TX failure threshold
   14052 	 * for trigger reason of TX failures.
   14053 	 */
   14054 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_TX_FAILURES_THRESHOLD = 32,
   14055 	/* 8-bit unsigned value to indicate TX failure reason for trigger
   14056 	 * reason of TX failures, one of the values defined in
   14057 	 *  qca_wlan_roam_stats_tx_failures_reason.
   14058 	 */
   14059 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_TX_FAILURES_REASON = 33,
   14060 	/* 8-bit unsigned value to indicate detail abort reason. One of the
   14061 	 * values in enum qca_wlan_roam_stats_abort_reason.
   14062 	 */
   14063 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ABORT_REASON = 34,
   14064 	/* 8-bit signed value to indicate data RSSI in dBm when aborting the
   14065 	 * roam scan.
   14066 	 */
   14067 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_DATA_RSSI = 35,
   14068 	/* 8-bit signed value to indicate data RSSI threshold in dBm when
   14069 	 * aborting the roam scan.
   14070 	 */
   14071 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_DATA_RSSI_THRESHOLD = 36,
   14072 	/* 8-bit unsigned value to indicate data RSSI threshold in RX link
   14073 	 * speed status when aborting the roam scan.
   14074 	 * 0 - good link speed, 1 - bad link speed
   14075 	 */
   14076 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_DATA_RX_LINKSPEED_STATUS = 37,
   14077 	/* 8-bit unsigned value to indicate roaming scan type.
   14078 	 * One of the values in enum qca_wlan_roam_stats_scan_type.
   14079 	 */
   14080 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_TYPE = 38,
   14081 	/* 8-bit unsigned value to indicate roaming result, used in STA mode
   14082 	 * only.
   14083 	 * 0-Roaming is successful, 1-Roaming is failed
   14084 	 */
   14085 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ROAM_STATUS = 39,
   14086 	/* 8-bit unsigned value to indicate the roam fail reason for the
   14087 	 * last failed roaming attempt by the firmware. Different roam failure
   14088 	 * reason codes are specified in enum qca_vendor_roam_fail_reasons.
   14089 	 * This can be queried either in connected state or disconnected state.
   14090 	 */
   14091 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FAIL_REASON = 40,
   14092 	/* Nested attribute. Indicate roam scan info for each channel, the
   14093 	 * attributes defined in enum
   14094 	 * qca_wlan_vendor_attr_roam_stats_scan_chan_info are used inside
   14095 	 * this attribute.
   14096 	 */
   14097 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_CHAN_INFO = 41,
   14098 	/* 32-bit unsigned value to indicate total scan time during roam scan
   14099 	 * all channels, time in milliseconds.
   14100 	 */
   14101 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_TOTAL_SCAN_TIME = 42,
   14102 	/* Nested attribute. This attribute shall be used by the driver to
   14103 	 * send roam information of each subtype. The attributes defined in
   14104 	 * enum qca_wlan_vendor_attr_roam_stats_frame_info are used inside
   14105 	 * this attribute.
   14106 	 */
   14107 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_INFO = 43,
   14108 	/* Attribute used for padding for 64-bit alignment */
   14109 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_PAD = 44,
   14110 	/* 6-byte MAC address used by the driver to send roam stats information
   14111 	 * of the original AP BSSID. The original AP is the connected AP before
   14112 	 * roam happens, regardless of the roam resulting in success or failure.
   14113 	 * This attribute is only present when
   14114 	 * QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ROAM_STATUS has a value of
   14115 	 * 0 (success) or 1 (failure).
   14116 	 * For non-MLO scenario, it indicates the original connected AP BSSID.
   14117 	 * For MLO scenario, it indicates the original BSSID of the link
   14118 	 * for which the reassociation occurred during the roam.
   14119 	 */
   14120 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ORIGINAL_BSSID = 45,
   14121 	/* 6-byte MAC address used by the driver to send roam stats information
   14122 	 * of the roam candidate AP BSSID when roam failed. This is only present
   14123 	 * when QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ROAM_STATUS has a value of
   14124 	 * 1 (failure). If the firmware updates more than one candidate AP BSSID
   14125 	 * to the driver, the driver only fills the last candidate AP BSSID and
   14126 	 * reports it to user space.
   14127 	 * For non-MLO scenario, it indicates the last candidate AP BSSID.
   14128 	 * For MLO scenario, it indicates the AP BSSID which may be the primary
   14129 	 * link BSSID or a nonprimary link BSSID.
   14130 	 */
   14131 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_CANDIDATE_BSSID = 46,
   14132 	/* 6-byte MAC address used by the driver to send roam stats information
   14133 	 * of the roamed AP BSSID when roam succeeds. This is only present when
   14134 	 * QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ROAM_STATUS has a value of
   14135 	 * 0 (success).
   14136 	 * For non-MLO scenario, it indicates the new AP BSSID to which has
   14137 	 * been successfully roamed.
   14138 	 * For MLO scenario, it indicates the new AP BSSID of the link on
   14139 	 * which the reassociation occurred during the roam.
   14140 	 */
   14141 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ROAMED_BSSID = 47,
   14142 
   14143 	/* keep last */
   14144 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_AFTER_LAST,
   14145 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_MAX =
   14146 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_AFTER_LAST - 1,
   14147 };
   14148 
   14149 /**
   14150  * enum qca_wlan_vendor_attr_roam_cached_stats - Vendor subcmd attributes to
   14151  * report cached roam info from the driver to user space, enum values are used
   14152  * for netlink attributes sent with the
   14153  * %QCA_NL80211_VENDOR_SUBCMD_ROAM_STATS sub command.
   14154  */
   14155 enum qca_wlan_vendor_attr_roam_cached_stats {
   14156 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_INVALID = 0,
   14157 	/* Nested attribute, this attribute contains nested array roam info
   14158 	 * statistics defined in enum qca_wlan_vendor_attr_roam_stats_info.
   14159 	 */
   14160 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_INFO = 1,
   14161 
   14162 	/* keep last */
   14163 	QCA_WLAN_VENDOR_ATTR_ROAM_CACHED_STATS_AFTER_LAST,
   14164 	QCA_WLAN_VENDOR_ATTR_ROAM_CACHED_STATS_MAX =
   14165 	QCA_WLAN_VENDOR_ATTR_ROAM_CACHED_STATS_AFTER_LAST - 1,
   14166 };
   14167 
   14168 /**
   14169  * enum qca_wlan_vendor_attr_supported_radio_cfg - Attributes for
   14170  * radio configurations present in each radio combination.
   14171  *
   14172  * @QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_BAND: u32 attribute indicates
   14173  * the band info in the radio configuration. Uses the enum qca_set_band values.
   14174  *
   14175  * @QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_ANTENNA: u8 attribute indicates
   14176  * the number of antennas info in the radio configuration.
   14177  */
   14178 enum qca_wlan_vendor_attr_supported_radio_cfg {
   14179 	QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_INVALID = 0,
   14180 	QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_BAND = 1,
   14181 	QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_ANTENNA = 2,
   14182 
   14183 	/* keep last */
   14184 	QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_LAST,
   14185 	QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_MAX =
   14186 	QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_LAST - 1,
   14187 };
   14188 
   14189 /**
   14190  * enum qca_wlan_vendor_attr_radio_combination - Attributes for
   14191  * radio combinations supported by the device.
   14192  *
   14193  * @QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_CFGS: Nested attribute
   14194  * provides the radio configurations present in the radio combination.
   14195  * Uses the enum qca_wlan_vendor_attr_supported_radio_cfg attributes.
   14196  * This attribute provides the values for radio combination matrix.
   14197  * For standalone config, the number of config values is one and the config
   14198  * carries the band and antenna information for standalone configuration. For
   14199  * Dual Band Simultaneous (DBS)/Single Band Simultaneous (SBS) mode
   14200  * configuration the number of config values is two and the config carries the
   14201  * band and antenna information for each simultaneous radio.
   14202  */
   14203 enum qca_wlan_vendor_attr_radio_combination {
   14204 	QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_INVALID = 0,
   14205 	QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_CFGS = 1,
   14206 
   14207 	/* keep last */
   14208 	QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_LAST,
   14209 	QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_MAX =
   14210 	QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_LAST - 1,
   14211 };
   14212 
   14213 /**
   14214  * enum qca_wlan_vendor_attr_radio_combination_matrix - Attributes used by
   14215  * %QCA_NL80211_VENDOR_SUBCMD_GET_RADIO_COMBINATION_MATRIX
   14216  *
   14217  * @QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_SUPPORTED_CFGS: Nested attribute
   14218  * provides the radio combinations supported by the device.
   14219  * Uses the enum qca_wlan_vendor_attr_radio_combination attributes.
   14220  * For example, in the radio combination matrix for a device which has two
   14221  * radios, where one radio is capable of 2.4 GHz 2X2 only and another radio is
   14222  * capable of either 5 GHz or 6 GHz 2X2, the possible number of radio
   14223  * combinations is 5 and the radio combinations are
   14224  * {{{2.4 GHz 2X2}}, //Standalone 2.4 GHz
   14225  * {{5 GHz 2X2}}, //Standalone 5 GHz
   14226  * {{6 GHz 2X2}}, //Standalone 6 GHz
   14227  * {{2.4 GHz 2X2}, {5 GHz 2X2}}, //2.4 GHz + 5 GHz DBS
   14228  * {{2.4 GHz 2X2}, {6 GHz 2X2}}} //2.4 GHz + 6 GHz DBS
   14229  * The band and antenna info together as nested data provides one radio config.
   14230  * Standalone configuration has one config with band and antenna nested data.
   14231  * Dual Band Simultaneous (DBS)/Single Band Simultaneous (SBS) configuration
   14232  * have two nested band and antenna info data.
   14233  */
   14234 enum qca_wlan_vendor_attr_radio_combination_matrix {
   14235 	QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_INVALID = 0,
   14236 	QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_SUPPORTED_CFGS = 1,
   14237 
   14238 	/* keep last */
   14239 	QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_LAST,
   14240 	QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_MAX =
   14241 	QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_LAST - 1,
   14242 };
   14243 
   14244 /**
   14245  * enum qca_wlan_vendor_attr_mdns_offload - Attributes used by
   14246  * %QCA_NL80211_VENDOR_SUBCMD_MDNS_OFFLOAD vendor command.
   14247  *
   14248  * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENABLE: Required (flag)
   14249  * Enable mDNS offload. This attribute is mandatory to enable
   14250  * mDNS offload feature. If this attribute is not present, mDNS offload
   14251  * is disabled.
   14252  *
   14253  * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_TABLE: Nested attribute containing
   14254  * one or more %QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENTRY attributes. This
   14255  * attribute is mandatory when enabling the feature, and not required when
   14256  * disabling the feature.
   14257  *
   14258  * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENTRY: Nested attribute containing
   14259  * the following attributes:
   14260  *	%QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_FQDN
   14261  *	%QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_RESOURCE_RECORDS_COUNT
   14262  *	%QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_PAYLOAD
   14263  *
   14264  * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_FQDN: Required string attribute.
   14265  * It consists of a hostname and ".local" as the domain name. The character
   14266  * set is limited to UTF-8 encoding. The maximum allowed size is 63 bytes.
   14267  * It is used to compare the domain in the "QU" query. Only 1 FQDN is
   14268  * supported per vdev.
   14269  * For example: myphone.local
   14270  *
   14271  * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_RESOURCE_RECORDS_COUNT: Required
   14272  * u16 attribute. It specifies the total number of resource records present
   14273  * in the answer section of the answer payload. This attribute is needed by the
   14274  * firmware to populate the mDNS response frame for mDNS queries without having
   14275  * to parse the answer payload.
   14276  *
   14277  * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_PAYLOAD: Required binary blob
   14278  * attribute sent by the mdnsResponder from userspace. It contains resource
   14279  * records of various types (e.g., A, AAAA, PTR, TXT) and service list. This
   14280  * payload is passed down to the firmware and is transmitted in response to
   14281  * mDNS queries.
   14282  * The maximum supported size of the answer payload is 512 bytes.
   14283  */
   14284 enum qca_wlan_vendor_attr_mdns_offload {
   14285 	QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_INVALID = 0,
   14286 	QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENABLE = 1,
   14287 	QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_TABLE = 2,
   14288 	QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENTRY = 3,
   14289 	QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_FQDN = 4,
   14290 	QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_RESOURCE_RECORDS_COUNT = 5,
   14291 	QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_PAYLOAD = 6,
   14292 
   14293 	/* keep last */
   14294 	QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_AFTER_LAST,
   14295 	QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_MAX =
   14296 	QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_AFTER_LAST - 1,
   14297 };
   14298 
   14299 /**
   14300  * qca_wlan_vendor_monitor_data_frame_type - Represent the various
   14301  * Data frame types to be sent over the monitor interface.
   14302  */
   14303 enum qca_wlan_vendor_monitor_data_frame_type {
   14304 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ALL = BIT(0),
   14305 	/* valid only if QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ALL is not set
   14306 	 */
   14307 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ARP = BIT(1),
   14308 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DHCPV4 = BIT(2),
   14309 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DHCPV6 = BIT(3),
   14310 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_EAPOL = BIT(4),
   14311 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DNSV4 = BIT(5),
   14312 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DNSV6 = BIT(6),
   14313 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_SYN = BIT(7),
   14314 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_SYNACK = BIT(8),
   14315 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_FIN = BIT(9),
   14316 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_FINACK = BIT(10),
   14317 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_ACK = BIT(11),
   14318 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_RST = BIT(12),
   14319 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ICMPV4 = BIT(13),
   14320 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ICMPV6 = BIT(14),
   14321 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_RTP = BIT(15),
   14322 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_SIP = BIT(16),
   14323 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_QOS_NULL = BIT(17),
   14324 };
   14325 
   14326 /**
   14327  * qca_wlan_vendor_monitor_mgmt_frame_type - Represent the various
   14328  * Management frame types to be sent over the monitor interface.
   14329  * @QCA_WLAN_VENDOR_MONITOR_MGMT_FRAME_TYPE_ALL: All the Management Frames.
   14330  * @QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_NO_BEACON: All the Management frames
   14331  * except the Beacon frame.
   14332  * @QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_BEACON: Only the connected
   14333  * BSSID Beacon frames. Valid only in the connected state.
   14334  * @QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_SCAN_BEACON: Represents
   14335  * the Beacon frames obtained during the scan (off channel and connected
   14336  * channel), when in connected state.
   14337  */
   14338 enum qca_wlan_vendor_monitor_mgmt_frame_type {
   14339 	QCA_WLAN_VENDOR_MONITOR_MGMT_FRAME_TYPE_ALL = BIT(0),
   14340 	/* valid only if QCA_WLAN_VENDOR_MONITOR_MGMT_FRAME_TYPE_ALL is not set
   14341 	 */
   14342 	QCA_WLAN_VENDOR_MONITOR_MGMT_NO_BEACON = BIT(1),
   14343 	QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_BEACON = BIT(2),
   14344 	QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_SCAN_BEACON = BIT(3),
   14345 };
   14346 
   14347 /**
   14348  * qca_wlan_vendor_monitor_ctrl_frame_type - Represent the various
   14349  * Control frame types to be sent over the monitor interface.
   14350  * @QCA_WLAN_VENDOR_MONITOR_CTRL_FRAME_TYPE_ALL: All the Control frames
   14351  * @QCA_WLAN_VENDOR_MONITOR_CTRL_TRIGGER_FRAME: Trigger frame
   14352  */
   14353 enum qca_wlan_vendor_monitor_ctrl_frame_type {
   14354 	QCA_WLAN_VENDOR_MONITOR_CTRL_FRAME_TYPE_ALL = BIT(0),
   14355 	/* valid only if QCA_WLAN_VENDOR_MONITOR_CTRL_FRAME_TYPE_ALL is not set
   14356 	 */
   14357 	QCA_WLAN_VENDOR_MONITOR_CTRL_TRIGGER_FRAME = BIT(1),
   14358 };
   14359 
   14360 /**
   14361  * enum qca_wlan_vendor_attr_set_monitor_mode - Used by the
   14362  * vendor command QCA_NL80211_VENDOR_SUBCMD_SET_MONITOR_MODE to set the
   14363  * monitor mode.
   14364  *
   14365  * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_TX_FRAME_TYPE: u32 attribute.
   14366  * Represents the TX Data frame types to be monitored (u32). These Data frames
   14367  * are represented by enum qca_wlan_vendor_monitor_data_frame_type.
   14368  *
   14369  * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_RX_FRAME_TYPE: u32 attribute.
   14370  * Represents the RX Data frame types to be monitored (u32). These Data frames
   14371  * are represented by enum qca_wlan_vendor_monitor_data_frame_type.
   14372  *
   14373  * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_TX_FRAME_TYPE: u32 attribute.
   14374  * Represents the TX Management frame types to be monitored (u32). These
   14375  * Management frames are represented by
   14376  * enum qca_wlan_vendor_monitor_mgmt_frame_type.
   14377  *
   14378  * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_RX_FRAME_TYPE: u32 attribute.
   14379  * Represents the RX Management frame types to be monitored (u32). These
   14380  * Management frames are represented by
   14381  * enum qca_wlan_vendor_monitor_mgmt_frame_type.
   14382  *
   14383  * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_TX_FRAME_TYPE: u32 attribute.
   14384  * Represents the TX Control frame types to be monitored (u32). These Control
   14385  * frames are represented by enum qca_wlan_vendor_monitor_ctrl_frame_type.
   14386  *
   14387  * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_RX_FRAME_TYPE: u32 attribute.
   14388  * Represents the RX Control frame types to be monitored (u32). These Control
   14389  * frames are represented by enum qca_wlan_vendor_monitor_ctrl_frame_type.
   14390  *
   14391  * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CONNECTED_BEACON_INTERVAL: u32
   14392  * attribute.
   14393  * Represents the interval in milliseconds only for the connected Beacon frames,
   14394  * expecting the connected BSS's Beacon frames to be sent on the monitor
   14395  * interface at this specific interval.
   14396  */
   14397 enum qca_wlan_vendor_attr_set_monitor_mode {
   14398 	QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_INVALID = 0,
   14399 	QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_TX_FRAME_TYPE = 1,
   14400 	QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_RX_FRAME_TYPE = 2,
   14401 	QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_TX_FRAME_TYPE = 3,
   14402 	QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_RX_FRAME_TYPE = 4,
   14403 	QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_TX_FRAME_TYPE = 5,
   14404 	QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_RX_FRAME_TYPE = 6,
   14405 	QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CONNECTED_BEACON_INTERVAL = 7,
   14406 
   14407 	/* keep last */
   14408 	QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_AFTER_LAST,
   14409 	QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MAX =
   14410 	QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_AFTER_LAST - 1,
   14411 };
   14412 
   14413 /**
   14414  * enum qca_wlan_vendor_roam_scan_state - Roam scan state flags.
   14415  * Bits will be set to 1 if the corresponding state is enabled.
   14416  *
   14417  * @QCA_VENDOR_WLAN_ROAM_SCAN_STATE_START: Scan Start.
   14418  * @QCA_VENDOR_WLAN_ROAM_SCAN_STATE_END: Scan end.
   14419  */
   14420 enum qca_wlan_vendor_roam_scan_state {
   14421 	QCA_WLAN_VENDOR_ROAM_SCAN_STATE_START = BIT(0),
   14422 	QCA_WLAN_VENDOR_ROAM_SCAN_STATE_END = BIT(1),
   14423 };
   14424 
   14425 /**
   14426  * enum qca_wlan_vendor_roam_event_type - Roam event type flags.
   14427  * Bits will be set to 1 if the corresponding event is notified.
   14428  *
   14429  * @QCA_WLAN_VENDOR_ROAM_EVENT_TRIGGER_REASON: Represents that the roam event
   14430  * carries the trigger reason. When set, it is expected that the roam event
   14431  * carries the respective reason via the attribute
   14432  * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TRIGGER_REASON. This event also carries
   14433  * the BSSID, RSSI, frequency info of the AP to which the roam is attempted.
   14434  *
   14435  * @QCA_WLAN_VENDOR_ROAM_EVENT_FAIL_REASON: Represents that the roam event
   14436  * carries the roam fail reason. When set, it is expected that the roam event
   14437  * carries the respective reason via the attribute
   14438  * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_FAIL_REASON. This event also carries the
   14439  * BSSID, RSSI, frequency info of the AP to which the roam was attempted.
   14440  *
   14441  * @QCA_WLAN_VENDOR_ROAM_EVENT_INVOKE_FAIL_REASON: Represents that the roam
   14442  * event carries the roam invoke fail reason. When set, it is expected that
   14443  * the roam event carries the respective reason via the attribute
   14444  * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVOKE_FAIL_REASON.
   14445  *
   14446  * @QCA_WLAN_VENDOR_ROAM_EVENT_SCAN_STATE: Represents that the roam event
   14447  * carries the roam scan state. When set, it is expected that the roam event
   14448  * carries the respective scan state via the attribute
   14449  * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_STATE and the corresponding
   14450  * frequency info via QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_FREQ_LIST.
   14451  */
   14452 enum qca_wlan_vendor_roam_event_type {
   14453 	QCA_WLAN_VENDOR_ROAM_EVENT_TRIGGER_REASON = BIT(0),
   14454 	QCA_WLAN_VENDOR_ROAM_EVENT_FAIL_REASON = BIT(1),
   14455 	QCA_WLAN_VENDOR_ROAM_EVENT_INVOKE_FAIL_REASON = BIT(2),
   14456 	QCA_WLAN_VENDOR_ROAM_EVENT_ROAM_SCAN_STATE = BIT(3),
   14457 };
   14458 
   14459 /**
   14460  * enum qca_wlan_vendor_attr_roam_events_candidate_info: Roam candidate info.
   14461  * Referred by QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO.
   14462  *
   14463  * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_BSSID: 6-byte MAC address
   14464  * representing the BSSID of the AP to which the roam is attempted.
   14465  *
   14466  * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_RSSI: Signed 32-bit value
   14467  * in dBm, signifying the RSSI of the candidate BSSID to which the Roaming is
   14468  * attempted.
   14469  *
   14470  * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FREQ: u32, frequency in MHz
   14471  * on which the roam is attempted.
   14472  *
   14473  * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FAIL_REASON: u32, used in
   14474  * STA mode only. This represents the roam fail reason for the last failed
   14475  * roaming attempt by the firmware for the specific BSSID. Different roam
   14476  * failure reason codes are specified in enum qca_vendor_roam_fail_reasons.
   14477  */
   14478 enum qca_wlan_vendor_attr_roam_events_candidate_info {
   14479 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_INVALID = 0,
   14480 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_BSSID = 1,
   14481 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_RSSI = 2,
   14482 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FREQ = 3,
   14483 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FAIL_REASON = 4,
   14484 
   14485 	/* keep last */
   14486 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_AFTER_LAST,
   14487 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_MAX =
   14488 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_AFTER_LAST - 1,
   14489 };
   14490 
   14491 /**
   14492  * enum qca_wlan_vendor_attr_roam_events - Used by the
   14493  * vendor command QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS to either configure the
   14494  * roam events to the driver or notify these events from the driver.
   14495  *
   14496  * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CONFIGURE: u8 attribute. Configures the
   14497  * driver/firmware to enable/disable the notification of roam events. It's a
   14498  * mandatory attribute and used only in the request from the userspace to the
   14499  * host driver. 1-Enable, 0-Disable.
   14500  * If the roaming is totally offloaded to the firmware, this request when
   14501  * enabled shall mandate the firmware to notify all the relevant roam events
   14502  * represented by the below attributes. If the host is in the suspend mode,
   14503  * the behavior of the firmware to notify these events is guided by
   14504  * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_DEVICE_STATE, and if the request is to get
   14505  * these events in the suspend state, the firmware is expected to wake up the
   14506  * host before the respective events are notified. Please note that such a
   14507  * request to get the events in the suspend state will have a definite power
   14508  * implication.
   14509  *
   14510  * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_SUSPEND_STATE: flag attribute. Represents
   14511  * that the roam events need to be notified in the suspend state too. By
   14512  * default, these roam events are notified in the resume state. With this flag,
   14513  * the roam events are notified in both resume and suspend states.
   14514  * This attribute is used in the request from the userspace to the host driver.
   14515  *
   14516  * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TYPE: u32, used in STA mode only.
   14517  * Represents the different roam event types, signified by the enum
   14518  * qca_wlan_vendor_roam_event_type.
   14519  * Each bit of this attribute represents the different roam even types reported
   14520  * through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
   14521  * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
   14522  *
   14523  * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TRIGGER_REASON: u32, used in STA
   14524  * mode only. This represents the roam trigger reason for the last roaming
   14525  * attempted by the firmware. Each bit of this attribute represents the
   14526  * different roam trigger reason code which are defined in enum
   14527  * qca_vendor_roam_triggers.
   14528  * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
   14529  *
   14530  * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVOKE_FAIL_REASON: u32, used in
   14531  * STA mode only. This represents the roam invoke fail reason for the last
   14532  * failed roam invoke. Different roam invoke failure reason codes
   14533  * are specified in enum qca_vendor_roam_invoke_fail_reasons.
   14534  *
   14535  * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO: Array of candidates info
   14536  * for which the roam is attempted. Each entry is a nested attribute defined
   14537  * by enum qca_wlan_vendor_attr_roam_events_candidate_info.
   14538  * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
   14539  *
   14540  * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_STATE: u8 attribute. Represents
   14541  * the scan state on which the roam events need to be notified. The values for
   14542  * this attribute are referred from enum qca_wlan_vendor_roam_scan_state.
   14543  * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
   14544  *
   14545  * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_FREQ_LIST: Nested attribute of
   14546  * u32 values. List of frequencies in MHz considered for a roam scan.
   14547  * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
   14548  */
   14549 enum qca_wlan_vendor_attr_roam_events {
   14550 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVALID = 0,
   14551 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CONFIGURE = 1,
   14552 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_SUSPEND_STATE = 2,
   14553 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TYPE = 3,
   14554 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TRIGGER_REASON = 4,
   14555 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVOKE_FAIL_REASON = 5,
   14556 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO = 6,
   14557 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_STATE = 7,
   14558 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_FREQ_LIST = 8,
   14559 
   14560 	/* keep last */
   14561 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_AFTER_LAST,
   14562 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_MAX =
   14563 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_AFTER_LAST - 1,
   14564 };
   14565 
   14566 /**
   14567  * enum qca_wlan_ratemask_params_type - Rate mask config type
   14568  *
   14569  * @QCA_WLAN_RATEMASK_PARAMS_TYPE_CCK_OFDM: CCK/OFDM rate mask config
   14570  * @QCA_WLAN_RATEMASK_PARAMS_TYPE_HT: HT rate mask config
   14571  * @QCA_WLAN_RATEMASK_PARAMS_TYPE_VHT: VHT rate mask config
   14572  * @QCA_WLAN_RATEMASK_PARAMS_TYPE_HE: HE rate mask config
   14573  * @QCA_WLAN_RATEMASK_PARAMS_TYPE_EHT: EHT rate mask config
   14574  */
   14575 enum qca_wlan_ratemask_params_type {
   14576 	QCA_WLAN_RATEMASK_PARAMS_TYPE_CCK_OFDM = 0,
   14577 	QCA_WLAN_RATEMASK_PARAMS_TYPE_HT = 1,
   14578 	QCA_WLAN_RATEMASK_PARAMS_TYPE_VHT = 2,
   14579 	QCA_WLAN_RATEMASK_PARAMS_TYPE_HE = 3,
   14580 	QCA_WLAN_RATEMASK_PARAMS_TYPE_EHT = 4,
   14581 };
   14582 
   14583 /**
   14584  * enum qca_wlan_vendor_attr_ratemask_params - Used by the
   14585  * vendor command QCA_NL80211_VENDOR_SUBCMD_RATEMASK_CONFIG.
   14586  * This is used to set the rate mask value to be used in rate selection.
   14587  *
   14588  * @QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_LIST:
   14589  * Array of nested containing attributes
   14590  * QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_TYPE and
   14591  * QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_BITMAP.
   14592  *
   14593  * @QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_TYPE: u8, represents
   14594  * the different PHY types to which the rate mask config is to be applied.
   14595  * The values for this attribute are referred from enum
   14596  * qca_wlan_vendor_ratemask_params_type.
   14597  *
   14598  * @QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_BITMAP: binary, rate mask bitmap.
   14599  * A bit value of 1 represents rate is enabled and a value of 0
   14600  * represents rate is disabled.
   14601  * For EHT targets,
   14602  * b0-1  => NSS1, MCS 14-15
   14603  * b2-15 => NSS1, MCS 0-13
   14604  * b16-29 => NSS2, MCS 0-13
   14605  * For HE targets, 14 bits correspond to one NSS setting.
   14606  * b0-13  => NSS1, MCS 0-13
   14607  * b14-27 => NSS2, MCS 0-13 and so on for other NSS.
   14608  * For VHT targets, 10 bits correspond to one NSS setting.
   14609  * b0-9   => NSS1, MCS 0-9
   14610  * b10-19 => NSS2, MCS 0-9 and so on for other NSS.
   14611  * For HT targets, 8 bits correspond to one NSS setting.
   14612  * b0-7  => NSS1, MCS 0-7
   14613  * b8-15 => NSS2, MCS 0-7 and so on for other NSS.
   14614  * For OFDM/CCK targets, 8 bits correspond to one NSS setting.
   14615  *
   14616  * @QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_LINK_ID: u8, used to specify the
   14617  * MLO link ID of a link to be configured. Optional attribute.
   14618  * No need of this attribute in non-MLO cases. If the attribute is
   14619  * not provided, ratemask will be applied for setup link.
   14620  */
   14621 enum qca_wlan_vendor_attr_ratemask_params {
   14622 	QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_INVALID = 0,
   14623 	QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_LIST = 1,
   14624 	QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_TYPE = 2,
   14625 	QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_BITMAP = 3,
   14626 	QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_LINK_ID = 4,
   14627 
   14628 	/* keep last */
   14629 	QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_AFTER_LAST,
   14630 	QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_MAX =
   14631 	QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_AFTER_LAST - 1,
   14632 };
   14633 
   14634 /**
   14635  * enum qca_wlan_audio_data_path - Defines the data path to be used for audio
   14636  * traffic.
   14637  *
   14638  * @QCA_WLAN_AUDIO_DATA_PATH_VIA_HOST_PROCESSOR:
   14639  * Send audio traffic through the host processor.
   14640  * @QCA_WLAN_AUDIO_DATA_PATH_VIA_LOW_POWER_DSP:
   14641  * Send audio traffic using the low power DSP to/from the encoder.
   14642  */
   14643 enum qca_wlan_audio_data_path {
   14644 	QCA_WLAN_AUDIO_DATA_PATH_VIA_HOST_PROCESSOR = 0,
   14645 	QCA_WLAN_AUDIO_DATA_PATH_VIA_LOW_POWER_DSP = 1,
   14646 };
   14647 
   14648 /**
   14649  * enum qca_wlan_vendor_pasn_action - Action to authenticate (and generate keys
   14650  *	for) or drop existing PASN security association for the listed the
   14651  *	peers. Used by QCA_WLAN_VENDOR_ATTR_PASN_ACTION and sent from the driver
   14652  *	to userspace.
   14653  *
   14654  * @QCA_WLAN_VENDOR_PASN_ACTION_AUTH: Initiate PASN handshake with the peer
   14655  *	devices indicated with %QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR.
   14656  * @QCA_WLAN_VENDOR_PASN_ACTION_DELETE_SECURE_RANGING_CONTEXT: Indication from
   14657  *	the driver to userspace to inform that the existing PASN keys of the
   14658  *	peer devices specified with %QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR are
   14659  *	not valid anymore.
   14660  */
   14661 enum qca_wlan_vendor_pasn_action {
   14662 	QCA_WLAN_VENDOR_PASN_ACTION_AUTH,
   14663 	QCA_WLAN_VENDOR_PASN_ACTION_DELETE_SECURE_RANGING_CONTEXT,
   14664 };
   14665 
   14666 /**
   14667  * enum qca_wlan_vendor_attr_pasn_peer: Defines the nested attributes used in
   14668  *	QCA_WLAN_VENDOR_ATTR_PASN_PEERS.
   14669  *
   14670  * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_SRC_ADDR: This attribute is optional in the
   14671  *	event from the driver to userspace and represents the local MAC address
   14672  *	to be used for PASN handshake. When this attribute is present, userspace
   14673  *	shall use the source address specified in this attribute by the driver
   14674  *	for PASN handshake with peer device.
   14675  *	This attribute is required in a command response from userspace to the
   14676  *	driver and represents the MAC address that was used in PASN handshake
   14677  *	with the peer device.
   14678  * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR: Indicates the MAC address of the
   14679  *	peer device to which PASN handshake is requested in an event from the
   14680  *	driver to userspace when QCA_WLAN_VENDOR_ATTR_PASN_ACTION is set to
   14681  *	QCA_WLAN_VENDOR_PASN_ACTION_AUTH.
   14682  *	Indicates the MAC address of the peer device for which the keys are to
   14683  *	be invalidated in an event from the driver to userspace when
   14684  *	QCA_WLAN_VENDOR_ATTR_PASN_ACTION is set to
   14685  *	QCA_WLAN_VENDOR_PASN_ACTION_DELETE_SECURE_RANGING_CONTEXT.
   14686  *	Indicates the MAC address of the peer device for which the status is
   14687  *	being sent in a status report from userspace to the driver.
   14688  * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_LTF_KEYSEED_REQUIRED: NLA_FLAG attribute used
   14689  *	in the event from the driver to userspace. When set, userspace is
   14690  *	required to derive LTF key seed from KDK and set it to the driver.
   14691  * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_STATUS_SUCCESS: NLA_FLAG attribute. This
   14692  *	attribute is used in the command response from userspace to the driver.
   14693  *	If present, it indicates the successful PASN handshake with the peer. If
   14694  *	this flag is not present, it indicates that the PASN handshake with the
   14695  *	peer device failed.
   14696  */
   14697 enum qca_wlan_vendor_attr_pasn_peer {
   14698 	QCA_WLAN_VENDOR_ATTR_PASN_PEER_INVALID = 0,
   14699 	QCA_WLAN_VENDOR_ATTR_PASN_PEER_SRC_ADDR = 1,
   14700 	QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR = 2,
   14701 	QCA_WLAN_VENDOR_ATTR_PASN_PEER_LTF_KEYSEED_REQUIRED = 3,
   14702 	QCA_WLAN_VENDOR_ATTR_PASN_PEER_STATUS_SUCCESS = 4,
   14703 
   14704 	/* keep last */
   14705 	QCA_WLAN_VENDOR_ATTR_PASN_PEER_AFTER_LAST,
   14706 	QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAX =
   14707 	QCA_WLAN_VENDOR_ATTR_PASN_PEER_AFTER_LAST - 1,
   14708 };
   14709 
   14710 /**
   14711  * enum qca_wlan_vendor_attr_pasn: Defines the attributes used in the
   14712  *	QCA_NL80211_VENDOR_SUBCMD_PASN command.
   14713  *
   14714  * @QCA_WLAN_VENDOR_ATTR_PASN_ACTION: u32 attribute, possible values are
   14715  *	defined in enum qca_wlan_vendor_pasn_action and used only in an event
   14716  *	from the driver to userspace.
   14717  * @QCA_WLAN_VENDOR_ATTR_PASN_PEERS: Nested attribute, used to pass PASN peer
   14718  *	details for each peer and used in both an event and a command response.
   14719  *	The nested attributes used inside QCA_WLAN_VENDOR_ATTR_PASN_PEERS are
   14720  *	defined in enum qca_wlan_vendor_attr_pasn_peer.
   14721  * @QCA_WLAN_VENDOR_ATTR_PASN_LINK_ID: u8 attribute used to identify a
   14722  *	specific link affiliated to an MLD.
   14723  */
   14724 enum qca_wlan_vendor_attr_pasn {
   14725 	QCA_WLAN_VENDOR_ATTR_PASN_INVALID = 0,
   14726 	QCA_WLAN_VENDOR_ATTR_PASN_ACTION = 1,
   14727 	QCA_WLAN_VENDOR_ATTR_PASN_PEERS = 2,
   14728 	QCA_WLAN_VENDOR_ATTR_PASN_LINK_ID = 3,
   14729 
   14730 	/* keep last */
   14731 	QCA_WLAN_VENDOR_ATTR_PASN_AFTER_LAST,
   14732 	QCA_WLAN_VENDOR_ATTR_PASN_MAX =
   14733 	QCA_WLAN_VENDOR_ATTR_PASN_AFTER_LAST - 1,
   14734 };
   14735 
   14736 /**
   14737  * enum qca_wlan_vendor_secure_ranging_ctx_action - Used to add or delete
   14738  *	the ranging security context derived from PASN for each peer. Used in
   14739  *	QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_ACTION.
   14740  *
   14741  * @QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_ADD: Add the secure ranging
   14742  *	context for the peer.
   14743  * @QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_DELETE: Delete the secure ranging
   14744  *	context for the peer.
   14745  */
   14746 enum qca_wlan_vendor_secure_ranging_ctx_action {
   14747 	QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_ADD,
   14748 	QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_DELETE,
   14749 };
   14750 
   14751 /**
   14752  * enum qca_wlan_vendor_sha_type - SHA types. Used to configure the SHA type
   14753  *	used for deriving PASN keys to the driver. Used in
   14754  *	QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE
   14755  * @QCA_WLAN_VENDOR_SHA_256: SHA-256
   14756  * @QCA_WLAN_VENDOR_SHA_384: SHA-384
   14757  */
   14758 enum qca_wlan_vendor_sha_type {
   14759 	QCA_WLAN_VENDOR_SHA_256,
   14760 	QCA_WLAN_VENDOR_SHA_384,
   14761 };
   14762 
   14763 /**
   14764  * enum qca_wlan_vendor_attr_secure_ranging_ctx: Defines the attributes used
   14765  *	to set security context for the PASN peer from userspace to the driver.
   14766  *	Used with QCA_NL80211_VENDOR_SUBCMD_SECURE_RANGING_CONTEXT.
   14767  *
   14768  * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_ACTION: u32 attribute, possible
   14769  *	values are defined in enum qca_wlan_vendor_secure_ranging_ctx_action
   14770  * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SRC_ADDR: The local MAC address that
   14771  *	was used during the PASN handshake.
   14772  * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_PEER_MAC_ADDR: The MAC address of
   14773  *	the peer device for which secure ranging context is being configured.
   14774  * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE: u32 attribute, defines the
   14775  *	hash algorithm to be used, possible values are defined in enum
   14776  *	qca_wlan_vendor_sha_type.
   14777  * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_TK: Variable length attribute, holds
   14778  *	the temporal key generated from the PASN handshake. The length of this
   14779  *	attribute is dependent on the value of
   14780  *	%QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_CIPHER.
   14781  * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_CIPHER: cipher suite to use with the
   14782  *	TK, u32, as defined in IEEE Std 802.11-2020, 9.4.2.24.2 (Cipher suites)
   14783  *	(e.g., 0x000FAC04).
   14784  * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_LTF_KEYSEED: Variable length
   14785  *	attribute, holds the LTF keyseed derived from KDK of PASN handshake.
   14786  *	The length of this attribute is dependent on the value of
   14787  *	%QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE.
   14788  * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_LINK_ID: This u8 attribute is used
   14789  *	for secure ranging to identify a specific link affiliated to an AP MLD.
   14790  */
   14791 enum qca_wlan_vendor_attr_secure_ranging_ctx {
   14792 	QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_INVALID = 0,
   14793 	QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_ACTION = 1,
   14794 	QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SRC_ADDR = 2,
   14795 	QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_PEER_MAC_ADDR = 3,
   14796 	QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE = 4,
   14797 	QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_TK = 5,
   14798 	QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_CIPHER = 6,
   14799 	QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_LTF_KEYSEED = 7,
   14800 	QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_LINK_ID = 8,
   14801 
   14802 	/* keep last */
   14803 	QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_AFTER_LAST,
   14804 	QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_MAX =
   14805 	QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_AFTER_LAST - 1,
   14806 };
   14807 
   14808 /**
   14809  * enum qca_wlan_vendor_attr_coap_offload_filter - Attributes used
   14810  * inside %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_FILTER
   14811  * nested attribute. The packets that match a filter will be replied with
   14812  * attributes configured in %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY.
   14813  *
   14814  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4:
   14815  * u32 attribute. Destination IPv4 address in network byte order, the
   14816  * IPv4 packets with different address will be filtered out.
   14817  * This attribute is optional.
   14818  *
   14819  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4_IS_BC:
   14820  * Flag attribute. If it's present, indicates that
   14821  * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4 is a broadcast
   14822  * address; while if not, indicates that the address is a unicast/multicast
   14823  * address.
   14824  * This attribute is optional.
   14825  *
   14826  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV6:
   14827  * NLA_BINARY attribute, length is 16 bytes.
   14828  * Destination IPv6 address in network byte order, the IPv6 packets
   14829  * with different destination address will be filtered out.
   14830  * This attribute is optional.
   14831  *
   14832  * At least one of %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4 and
   14833  * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV6 must be configured.
   14834  * Packets on both IPv4 and IPv6 will be processed if both are configured.
   14835  *
   14836  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_PORT:
   14837  * u16 attribute. Destination UDP port, the packets with different destination
   14838  * UDP port will be filtered out.
   14839  * This attribute is mandatory.
   14840  *
   14841  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_OFFSET:
   14842  * u32 attribute. Represents the offset (in UDP payload) of the data
   14843  * to be matched.
   14844  * This attribute is mandatory.
   14845  *
   14846  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_DATA:
   14847  * NLA_BINARY attribute, the maximum allowed size is 16 bytes.
   14848  * Binary data that is compared bit-by-bit against the data (specified
   14849  * by %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_OFFSET) in UDP
   14850  * payload, the packets don't match will be filtered out.
   14851  * This attribute is mandatory.
   14852  */
   14853 enum qca_wlan_vendor_attr_coap_offload_filter {
   14854 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_INVALID = 0,
   14855 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4 = 1,
   14856 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4_IS_BC = 2,
   14857 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV6 = 3,
   14858 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_PORT = 4,
   14859 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_OFFSET = 5,
   14860 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_DATA = 6,
   14861 
   14862 	/* keep last */
   14863 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_AFTER_LAST,
   14864 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MAX =
   14865 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_AFTER_LAST - 1,
   14866 };
   14867 
   14868 /**
   14869  * enum qca_wlan_vendor_attr_coap_offload_reply - Attributes used
   14870  * inside %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY nested attribute.
   14871  *
   14872  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV4:
   14873  * u32 attribute. Source address (in network byte order) for replying
   14874  * the matching broadcast/multicast IPv4 packets.
   14875  * This attribute is optional.
   14876  *
   14877  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV6:
   14878  * NLA_BINARY attribute, length is 16 bytes.
   14879  * Source address (in network byte order) for replying the matching
   14880  * multicast IPv6 packets.
   14881  * This attribute is optional.
   14882  *
   14883  * For broadcast/multicast offload reply, one of
   14884  * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV4 and
   14885  * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV6 or both must be
   14886  * configured according to version of the IP address(es) configured in
   14887  * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_FILTER;
   14888  * while for unicast case, firmware will take the destination IP address
   14889  * in the received matching packet as the source address for replying.
   14890  *
   14891  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_FILTER:
   14892  * Nested attribute. Filter for the received UDP packets, only the matching
   14893  * packets will be replied and cached.
   14894  * See enum qca_wlan_vendor_attr_coap_offload_filter for list of supported
   14895  * attributes.
   14896  * This attribute is mandatory.
   14897  *
   14898  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_MSG:
   14899  * NLA_BINARY attribute, the maximum allowed size is 1152 bytes.
   14900  * CoAP message (UDP payload) to be sent upon receiving matching packets.
   14901  * Firmware is responsible for adding any necessary protocol headers.
   14902  * This attribute is mandatory.
   14903  *
   14904  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_CACHE_EXPTIME:
   14905  * u32 attribute. Expiration time in milliseconds of the cached CoAP messages.
   14906  * A cached message will be dropped by firmware if it's expired.
   14907  * This attribute is optional. A default value of 40000 will be used in the
   14908  * absence of it.
   14909  */
   14910 enum qca_wlan_vendor_attr_coap_offload_reply {
   14911 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_INVALID = 0,
   14912 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV4 = 1,
   14913 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV6 = 2,
   14914 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_FILTER = 3,
   14915 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_MSG = 4,
   14916 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_CACHE_EXPTIME = 5,
   14917 
   14918 	/* keep last */
   14919 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_AFTER_LAST,
   14920 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_MAX =
   14921 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_AFTER_LAST - 1,
   14922 };
   14923 
   14924 /**
   14925  * enum qca_wlan_vendor_attr_coap_offload_tx_ipv4 - Represents parameters for
   14926  * CoAP message (UDP) transmitting on IPv4.
   14927  *
   14928  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_SRC_ADDR:
   14929  * u32 attribute. Source address (in network byte order) for transmitting
   14930  * packets on IPv4.
   14931  * This attribute is mandatory.
   14932  *
   14933  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_SRC_PORT:
   14934  * u16 attribute. Source UDP port.
   14935  * This attribute is optional, a random port is taken if it's not present.
   14936  *
   14937  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_ADDR:
   14938  * u32 attribute. Destination IPv4 address (in network byte order).
   14939  * This attribute is mandatory.
   14940  *
   14941  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_IS_BC:
   14942  * Flag attribute. If it's present, indicates that
   14943  * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_ADDR is a broadcast
   14944  * address; while if not, indicates that the address is unicast/multicast
   14945  * address.
   14946  * This attribute is optional.
   14947  *
   14948  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_PORT:
   14949  * u16 attribute. Destination UDP port.
   14950  * This attribute is mandatory.
   14951  */
   14952 enum qca_wlan_vendor_attr_coap_offload_tx_ipv4 {
   14953 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_INVALID = 0,
   14954 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_SRC_ADDR = 1,
   14955 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_SRC_PORT = 2,
   14956 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_ADDR = 3,
   14957 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_IS_BC = 4,
   14958 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_PORT = 5,
   14959 
   14960 	/* keep last */
   14961 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_AFTER_LAST,
   14962 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_MAX =
   14963 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_AFTER_LAST - 1,
   14964 };
   14965 
   14966 /**
   14967  * enum qca_wlan_vendor_attr_coap_offload_tx_ipv6 - Represents parameters for
   14968  * CoAP message (UDP) transmitting on IPv6.
   14969  *
   14970  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_SRC_ADDR:
   14971  * NLA_BINARY attribute, length is 16 bytes.
   14972  * Source address (in network byte order) for transmitting packets on IPv6.
   14973  * This attribute is mandatory.
   14974  *
   14975  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_SRC_PORT:
   14976  * u16 attribute. Source UDP port.
   14977  * This attribute is optional, a random port is taken if it's not present.
   14978  *
   14979  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_DEST_ADDR:
   14980  * NLA_BINARY attribute, length is 16 bytes.
   14981  * Destination IPv6 address (in network byte order).
   14982  * This attribute is mandatory.
   14983  *
   14984  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_DEST_PORT:
   14985  * u16 attribute. Destination UDP port.
   14986  * This attribute is mandatory.
   14987  */
   14988 enum qca_wlan_vendor_attr_coap_offload_tx_ipv6 {
   14989 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_INVALID = 0,
   14990 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_SRC_ADDR = 1,
   14991 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_SRC_PORT = 2,
   14992 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_DEST_ADDR = 3,
   14993 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_DEST_PORT = 4,
   14994 
   14995 	/* keep last */
   14996 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_AFTER_LAST,
   14997 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_MAX =
   14998 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_AFTER_LAST - 1,
   14999 };
   15000 
   15001 /**
   15002  * enum qca_wlan_vendor_attr_coap_offload_periodic_tx - Attributes used
   15003  * inside %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX nested attribute.
   15004  *
   15005  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV4:
   15006  * Nested attribute. The IPv4 source/destination address/port for offload
   15007  * transmitting. See enum qca_wlan_vendor_attr_coap_offload_tx_ipv4 for the list
   15008  * of supported attributes.
   15009  * This attribute is optional.
   15010  *
   15011  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV6:
   15012  * Nested attribute. The IPv6 source/destination address/port for offload
   15013  * transmitting. See enum qca_wlan_vendor_attr_coap_offload_tx_ipv6 for the list
   15014  * of supported attributes.
   15015  * This attribute is optional.
   15016  *
   15017  * At least one of %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV4 and
   15018  * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV6 must be configured.
   15019  * Firmware will transmit the packets on both IPv4 and IPv6 if both are
   15020  * configured.
   15021  *
   15022  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_PERIOD:
   15023  * u32 attribute. Period in milliseconds for the periodic transmitting.
   15024  * This attribute is mandatory.
   15025  *
   15026  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_MSG:
   15027  * NLA_BINARY attribute, the maximum allowed size is 1152 bytes.
   15028  * CoAP message (UDP payload) to be periodically transmitted. Firmware
   15029  * is responsible for adding any necessary protocol headers.
   15030  * This attribute is mandatory.
   15031  */
   15032 enum qca_wlan_vendor_attr_coap_offload_periodic_tx {
   15033 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_INVALID = 0,
   15034 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV4 = 1,
   15035 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV6 = 2,
   15036 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_PERIOD = 3,
   15037 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_MSG = 4,
   15038 
   15039 	/* keep last */
   15040 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_AFTER_LAST,
   15041 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_MAX =
   15042 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_AFTER_LAST - 1,
   15043 };
   15044 
   15045 /**
   15046  * enum qca_wlan_vendor_attr_coap_offload_cache_info - Attributes used
   15047  * inside %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHES nested attribute.
   15048  *
   15049  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_TS:
   15050  * u64 attribute. Received time (since system booted in microseconds) of
   15051  * the cached CoAP message.
   15052  * This attribute is mandatory.
   15053  *
   15054  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV4:
   15055  * u32 attribute. Source IPv4 address (in network byte order) of the cached
   15056  * CoAP message.
   15057  * This attribute is optional.
   15058  *
   15059  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV6:
   15060  * NLA_BINARY attribute, length is 16 bytes.
   15061  * Source IPv6 address (in network byte order) of the cached CoAP message.
   15062  * This attribute is optional.
   15063  *
   15064  * At most and at least one of
   15065  * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV4 and
   15066  * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV6 is given for
   15067  * an entry.
   15068  *
   15069  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_MSG:
   15070  * NLA_BINARY attribute, the maximum allowed size is 1152 bytes.
   15071  * The cached CoAP message (UDP payload). If the actual message size is
   15072  * greater than the maximum size, it will be truncated and leaving only
   15073  * the first 1152 bytes.
   15074  * This attribute is mandatory.
   15075  *
   15076  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_PAD: Attribute used for
   15077  * padding for 64-bit alignment
   15078  */
   15079 enum qca_wlan_vendor_attr_coap_offload_cache_info {
   15080 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_INVALID = 0,
   15081 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_TS = 1,
   15082 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV4 = 2,
   15083 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV6 = 3,
   15084 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_MSG = 4,
   15085 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_PAD = 5,
   15086 
   15087 	/* keep last */
   15088 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_AFTER_LAST,
   15089 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_MAX =
   15090 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_AFTER_LAST - 1,
   15091 };
   15092 
   15093 /**
   15094  * enum qca_wlan_vendor_coap_offload_action - Actions for
   15095  * vendor command QCA_NL80211_VENDOR_SUBCMD_COAP_OFFLOAD.
   15096  *
   15097  * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_ENABLE:
   15098  * Enable CoAP offload reply.
   15099  * If it's enabled, firmware will start offload processing on each suspend
   15100  * and stop on each resume.
   15101  *
   15102  * Offload reply on match works as follows:
   15103  * Reply the packets that match the filter with the given CoAP
   15104  * message (with necessary protocol headers), increase the CoAP message
   15105  * ID in the given CoAP message by one for the next use after each successful
   15106  * transmission, and try to store the information of the received packet,
   15107  * including the received time, source IP address, and CoAP message (UDP
   15108  * payload).
   15109  *
   15110  * Firmware has a limit to the maximum stored entries, it takes the source IP
   15111  * address as the key of an entry, and keeps at most one entry for each key.
   15112  * A packet won't be stored if no entry for the same key is present and the
   15113  * total number of the existing unexpired entries reaches the maximum value.
   15114  *
   15115  * If any configured item is changed, user space should disable offload reply
   15116  * first and then issue a new enable request.
   15117  *
   15118  * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_DISABLE:
   15119  * Disable CoAP offload reply and return information of any cached CoAP
   15120  * messages.
   15121  *
   15122  * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_ENABLE:
   15123  * Enable CoAP offload periodic transmitting.
   15124  * If it's enabled, firmware will start offload periodic transmitting on
   15125  * each suspend and stop on each resume.
   15126  *
   15127  * Offload periodic transmitting works as follows:
   15128  * Send the given CoAP message (with necessary protocol headers) with the given
   15129  * source/destination IP address/UDP port periodically based on the given
   15130  * period and increase the CoAP message ID in the given CoAP message by one
   15131  * for the next use after each successful transmission.
   15132  *
   15133  * If any configured item is changed, user space should disable offload
   15134  * periodic transmitting first and then issue a new enable request.
   15135  *
   15136  * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_DISABLE:
   15137  * Disable CoAP offload periodic transmitting.
   15138  *
   15139  * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_CACHE_GET:
   15140  * Get information of the CoAP messages cached during offload reply
   15141  * processing. The cache is cleared after retrieval.
   15142  */
   15143 enum qca_wlan_vendor_coap_offload_action {
   15144 	QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_ENABLE = 0,
   15145 	QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_DISABLE = 1,
   15146 	QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_ENABLE = 2,
   15147 	QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_DISABLE = 3,
   15148 	QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_CACHE_GET = 4,
   15149 };
   15150 
   15151 /**
   15152  * enum qca_wlan_vendor_attr_coap_offload - Used by the
   15153  * vendor command QCA_NL80211_VENDOR_SUBCMD_COAP_OFFLOAD.
   15154  * This is used to set parameters for CoAP offload processing, or get
   15155  * cached CoAP messages from firmware.
   15156  *
   15157  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION:
   15158  * u32 attribute. Action to take in this vendor command.
   15159  * See enum qca_wlan_vendor_coap_offload_action for supported actions.
   15160  * This attribute is mandatory.
   15161  *
   15162  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REQ_ID:
   15163  * u32 attribute. Represents the Request ID for the CoAP offload
   15164  * configuration, which can help to identify the user entity starting
   15165  * the CoAP offload processing and accordingly stop the respective
   15166  * ones/get the cached CoAP messages with the matching ID.
   15167  * This attribute is mandatory.
   15168  *
   15169  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY:
   15170  * Nested attribute. Parameters for offload reply.
   15171  * See enum qca_wlan_vendor_attr_coap_offload_reply for the list of
   15172  * supported attributes.
   15173  * This attribute is mandatory if %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION
   15174  * is QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_ENABLE, and is ignored
   15175  * otherwise.
   15176  *
   15177  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX:
   15178  * Nested attribute. Parameters for offload periodic transmitting.
   15179  * See enum qca_wlan_vendor_attr_coap_offload_periodic_tx for the list of
   15180  * supported attributes.
   15181  * This attribute is mandatory if %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION is
   15182  * QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_ENABLE, and is ignored
   15183  * otherwise.
   15184  *
   15185  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHES:
   15186  * Array of nested attributes. Information of the cached CoAP messages,
   15187  * where each entry is taken from
   15188  * enum qca_wlan_vendor_attr_coap_offload_cache_info.
   15189  * This attribute is used for reporting the cached CoAP messages
   15190  * in reply for command in which %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION
   15191  * is QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_CACHE_GET or
   15192  * QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_DISABLE. It means there is no
   15193  * cached item if this attribute is not present.
   15194  */
   15195 enum qca_wlan_vendor_attr_coap_offload {
   15196 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_INVALID = 0,
   15197 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION = 1,
   15198 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REQ_ID = 2,
   15199 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY = 3,
   15200 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX = 4,
   15201 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHES = 5,
   15202 
   15203 	/* keep last */
   15204 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_AFTER_LAST,
   15205 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_MAX =
   15206 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_AFTER_LAST - 1,
   15207 };
   15208 
   15209 /**
   15210  * enum qca_wlan_vendor_attr_scs_rule_config - Used by the vendor command
   15211  * QCA_NL80211_VENDOR_SUBCMD_SCS_RULE_CONFIG to configure Stream Classification
   15212  * Service (SCS) rule.
   15213  *
   15214  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_RULE_ID: Mandatory u32 attribute.
   15215  * Represents the unique id of SCS rule to be configured.
   15216 
   15217  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_REQUEST_TYPE: Mandatory u8 attribute.
   15218  * Represents the request type: add, remove, or change.
   15219  * Values as defined in IEEE Std 802.11-2020, Table 9-246 (SCS Request
   15220  * Type definitions).
   15221  *
   15222  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_OUTPUT_TID: Mandatory u8 attribute
   15223  * in case of add/change request type.
   15224  * Represents the output traffic identifier (TID) to be assigned to the flow
   15225  * matching the rule.
   15226  *
   15227  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_CLASSIFIER_TYPE: Mandatory u8
   15228  * attribute in case of add/change request type.
   15229  * Represents type of classifier parameters present in SCS rule.
   15230  * Refer IEEE Std 802.11-2020 Table 9-164 (Frame classifier type).
   15231  * Only classifier types 4 and 10 are supported for SCS.
   15232  *
   15233  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_VERSION: Mandatory u8 attribute
   15234  * in case of add/change request type when classifier type is TCLAS4.
   15235  * Represents the IP version (4: IPv4, 6: IPv6) of the rule.
   15236  *
   15237  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_IPV4_ADDR: Optional
   15238  * attribute in case of add/change request type when classifier type is TCLAS4
   15239  * and version attribute is IPv4.
   15240  * Represents the source IPv4 address in the rule which is to be compared
   15241  * against the source IP address in the IPv4 header.
   15242  *
   15243  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_IPV4_ADDR: Optional
   15244  * attribute in case of add/change request type when classifier type is TCLAS4
   15245  * and version attribute is IPv4.
   15246  * Represents the destination IPv4 address in the rule which is to be compared
   15247  * against the destination IP address in the IPv4 header.
   15248  *
   15249  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_IPV6_ADDR: Optional
   15250  * attribute in case of add/change request type when classifier type is TCLAS4
   15251  * and version attribute is IPv6.
   15252  * Represents the source IPv6 address in the rule which is to be compared
   15253  * against the source IP address in the IPv6 header.
   15254  *
   15255  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_IPV6_ADDR: Optional
   15256  * attribute in case of add/change request type when classifier type is TCLAS4
   15257  * and version attribute is IPv6.
   15258  * Represents the destination IPv6 address in the rule which is to be compared
   15259  * against the destination IP address in the IPv6 header.
   15260  *
   15261  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_PORT: Optional u16 attribute
   15262  * in case of add/change request type when classifier type is TCLAS4.
   15263  * Represents the source port number in the rule which is to be compared against
   15264  * the source port number in the protocol header.
   15265  *
   15266  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_PORT: Optional u16 attribute
   15267  * in case of add/change request type when classifier type is TCLAS4.
   15268  * Represents the destination port number in the rule which is to be compared
   15269  * against the destination port number in the protocol header.
   15270  *
   15271  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DSCP: Optional u8 attribute
   15272  * in case of add/change request type when classifier type is TCLAS4.
   15273  * Represents the DSCP value in the rule which is to be compared against the
   15274  * DSCP field present in the IP header.
   15275  *
   15276  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_NEXT_HEADER: Optional u8
   15277  * attribute in case of add/change request type when classifier type is TCLAS4.
   15278  * Represents the protocol/next header in the rule which is to be compared
   15279  * against the protocol/next header field present in the IPv4/IPv6 header.
   15280  *
   15281  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_FLOW_LABEL: Optional
   15282  * attribute of size 3 bytes present in case of add/change request type
   15283  * when classifier type is TCLAS4 and version is IPv6.
   15284  * Represents the flow label value in the rule which is to be compared against
   15285  * the flow label field present in the IPv6 header.
   15286  *
   15287  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_PROTOCOL_INSTANCE: Optional u8
   15288  * attribute in case of add/change request type when classifier type is TCLAS10.
   15289  * Represents the protocol instance number in the rule.
   15290  *
   15291  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_NEXT_HEADER: Optional u8
   15292  * attribute in case of add/change request type when classifier type is TCLAS10.
   15293  * Represents the protocol/next header in the rule which is to be compared
   15294  * against the protocol/next header field present in the IPv4/IPv6 header.
   15295  *
   15296  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_MASK: Optional
   15297  * attribute of variable length present when request type is add/change and
   15298  * classifier type is TCLAS10.
   15299  * Represents the mask to be used for masking the header contents of the header
   15300  * specified by QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_NEXT_HEADER
   15301  * attribute.
   15302  *
   15303  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_VALUE: Optional
   15304  * attribute of variable length present when request type is add/change and
   15305  * classifier type is TCLAS10.
   15306  * Represents the value to be compared against after masking the header contents
   15307  * of the header specified by the
   15308  * QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_NEXT_HEADER attribute with the
   15309  * filter mask specified by the
   15310  * QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_MASK attribute.
   15311  *
   15312  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_SERVICE_CLASS_ID: Optional u16
   15313  * attribute.
   15314  * Represents the service class id of the configured SCS rule.
   15315  *
   15316  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_DST_MAC_ADDR: Optional 6 bytes
   15317  * MAC address.
   15318  * Represents the destination MAC address in the rule.
   15319  *
   15320  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_NETDEV_IF_INDEX: Optional u32 attribute
   15321  * Represents the netdevice interface index in the rule.
   15322  */
   15323 enum qca_wlan_vendor_attr_scs_rule_config {
   15324 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_INVALID = 0,
   15325 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_RULE_ID = 1,
   15326 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_REQUEST_TYPE = 2,
   15327 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_OUTPUT_TID = 3,
   15328 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_CLASSIFIER_TYPE = 4,
   15329 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_VERSION = 5,
   15330 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_IPV4_ADDR = 6,
   15331 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_IPV4_ADDR = 7,
   15332 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_IPV6_ADDR = 8,
   15333 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_IPV6_ADDR = 9,
   15334 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_PORT = 10,
   15335 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_PORT = 11,
   15336 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DSCP = 12,
   15337 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_NEXT_HEADER = 13,
   15338 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_FLOW_LABEL = 14,
   15339 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_PROTOCOL_INSTANCE = 15,
   15340 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_NEXT_HEADER = 16,
   15341 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_MASK = 17,
   15342 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_VALUE = 18,
   15343 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_SERVICE_CLASS_ID = 19,
   15344 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_DST_MAC_ADDR = 20,
   15345 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_NETDEV_IF_INDEX = 21,
   15346 
   15347 	/* Keep last */
   15348 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_AFTER_LAST,
   15349 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_MAX =
   15350 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_AFTER_LAST - 1,
   15351 };
   15352 
   15353 /**
   15354  * enum qca_wlan_vendor_attr_mlo_links - Definition of attributes used inside
   15355  * nested attribute QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_MLO_LINKS.
   15356  *
   15357  * @QCA_WLAN_VENDOR_ATTR_MLO_LINK_ID: u8 attribute, link ID of this MLO link.
   15358  * @QCA_WLAN_VENDOR_ATTR_MLO_LINK_MAC_ADDR: Own MAC address of this MLO link.
   15359  * @QCA_WLAN_VENDOR_ATTR_MLO_LINK_BSSID: AP link MAC address of this MLO link.
   15360  */
   15361 enum qca_wlan_vendor_attr_mlo_links {
   15362 	QCA_WLAN_VENDOR_ATTR_MLO_LINK_INVALID = 0,
   15363 	QCA_WLAN_VENDOR_ATTR_MLO_LINK_ID = 1,
   15364 	QCA_WLAN_VENDOR_ATTR_MLO_LINK_MAC_ADDR = 2,
   15365 	QCA_WLAN_VENDOR_ATTR_MLO_LINK_BSSID = 3,
   15366 
   15367 	/* Keep last */
   15368 	QCA_WLAN_VENDOR_ATTR_MLO_LINK_AFTER_LAST,
   15369 	QCA_WLAN_VENDOR_ATTR_MLO_LINK_MAX =
   15370 	QCA_WLAN_VENDOR_ATTR_MLO_LINK_AFTER_LAST - 1,
   15371 };
   15372 
   15373 /**
   15374  * enum qca_wlan_vendor_sar_version - This describes the current SAR version
   15375  * used in the firmware.
   15376  *
   15377  * @QCA_WLAN_VENDOR_SAR_VERSION_1: The firmware supports legacy SAR.
   15378  * In legacy SAR, the firmware supports 5 static and 1 user defined SAR limits.
   15379  *
   15380  * @QCA_WLAN_VENDOR_SAR_VERSION_2: The firmware supports SAR version 2,
   15381  * i.e., SAR Non DBS mode. In SAR version 2, the firmware has 6 SAR tables for
   15382  * each CTL group. So user can select up to 6 SAR indexes from the current CTL
   15383  * groups.
   15384  *
   15385  * @QCA_WLAN_VENDOR_SAR_VERSION_3: The firmware supports SAR version 3,
   15386  * i.e., SAR DBS mode. In SAR version 3, the firmware has 6 SAR tables for each
   15387  * CTL group but user can choose up to 3 SAR set index only, as the top half
   15388  * of the SAR index (0 to 2) is used for non DBS purpose and the bottom half of
   15389  * the SAR index (3 to 5) is used for DBS mode.
   15390  *
   15391  * @QCA_WLAN_VENDOR_SAR_VERSION_4: The firmware supports SAR version 4,
   15392  * known as SAR Smart Transmit (STX) mode. STX is time averaging algorithmic
   15393  * for power limit computation in collaboration with WWAN.
   15394  * In STX mode, firmware has 41 indexes and there is no ctl grouping uses.
   15395  *
   15396  * @QCA_WLAN_VENDOR_SAR_VERSION_5: The firmware supports SAR version 5,
   15397  * known as TAS (Time Averaging SAR) mode. In TAS mode, as name implies
   15398  * instead of fixed static SAR power limit firmware uses time averaging
   15399  * to adjust the SAR limit dynamically. It is wlan soc standalone mechanism.
   15400  * In this mode firmware has up to 43 indexes.
   15401  */
   15402 enum qca_wlan_vendor_sar_version {
   15403 	QCA_WLAN_VENDOR_SAR_VERSION_INVALID = 0,
   15404 	QCA_WLAN_VENDOR_SAR_VERSION_1 = 1,
   15405 	QCA_WLAN_VENDOR_SAR_VERSION_2 = 2,
   15406 	QCA_WLAN_VENDOR_SAR_VERSION_3 = 3,
   15407 	QCA_WLAN_VENDOR_SAR_VERSION_4 = 4,
   15408 	QCA_WLAN_VENDOR_SAR_VERSION_5 = 5,
   15409 };
   15410 
   15411 /**
   15412  * enum qca_wlan_vendor_sar_ctl_group_state - This describes whether
   15413  * CTL grouping is enabled or disabled in the firmware.
   15414  *
   15415  * @QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_ENABLED: CTL grouping
   15416  * is enabled in firmware.
   15417  *
   15418  * @QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_DISABLED: CTL grouping
   15419  * is disabled in firmware.
   15420  *
   15421  */
   15422 enum qca_wlan_vendor_sar_ctl_group_state {
   15423 	QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_INVALID = 0,
   15424 	QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_ENABLED = 1,
   15425 	QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_DISABLED = 2,
   15426 };
   15427 
   15428 /**
   15429  * enum qca_wlan_vendor_attr_sar_capability - Used by the vendor command
   15430  * QCA_NL80211_VENDOR_SUBCMD_GET_SAR_CAPABILITY to get SAR capabilities
   15431  * supported by the firmware.
   15432 
   15433  * @QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_VERSION:
   15434  * u32 attribute. This field describes current SAR version supported by the
   15435  * firmware.
   15436  * See enum qca_wlan_vendor_sar_version for more information.
   15437  * This attribute is mandatory.
   15438 
   15439  * @QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_CTL_GROUP_STATE:
   15440  * u32 attribute. This field describes whether CTL groups are enabled
   15441  * or disabled in the firmware.
   15442  * See enum qca_wlan_vendor_sar_ctl_group_state for more information.
   15443  * This attribute is optional.
   15444  */
   15445 
   15446 enum qca_wlan_vendor_attr_sar_capability {
   15447 	QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_INVALID = 0,
   15448 	QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_VERSION = 1,
   15449 	QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_CTL_GROUP_STATE = 2,
   15450 
   15451 	/* Keep last */
   15452 	QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_AFTER_LAST,
   15453 	QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_MAX =
   15454 	QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_AFTER_LAST - 1,
   15455 };
   15456 
   15457 /**
   15458  * enum qca_wlan_vendor_attr_sr_stats - Attributes for Spatial Reuse statistics.
   15459  * These statistics are sent from the driver in a response when userspace
   15460  * queries to get the statistics using the operation
   15461  * %QCA_WLAN_SR_OPERATION_GET_STATS. These statistics are reset
   15462  * by the driver when the SR feature is enabled, when the driver receives
   15463  * %QCA_WLAN_SR_OPERATION_CLEAR_STATS operation, or when disconnected.
   15464  *
   15465  * @QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_OPPORTUNITIES_COUNT: u32 attribute.
   15466  * Mandatory only when non-SRG is supported by the AP and optional otherwise.
   15467  * This represents the number of non-SRG TX opportunities.
   15468  *
   15469  * @QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_PPDU_TRIED_COUNT: u32 attribute.
   15470  * Mandatory only when non-SRG is supported by the AP and optional otherwise.
   15471  * This represents the number of non-SRG PPDUs tried to transmit.
   15472  *
   15473  * @QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_PPDU_SUCCESS_COUNT: u32 attribute.
   15474  * Mandatory only when non-SRG is supported by the AP and optional otherwise.
   15475  * This represents the number of non-SRG PPDUs successfully transmitted.
   15476  *
   15477  * @QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_OPPORTUNITIES_COUNT: u32 attribute.
   15478  * Mandatory only when SRG is supported by the AP and optional otherwise.
   15479  * This represents the number of SRG TX opportunities.
   15480  *
   15481  * @QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_PPDU_TRIED_COUNT: u32 attribute.
   15482  * Mandatory only when SRG is supported by the AP and optional otherwise.
   15483  * This represents the number of SRG PPDUs tried to transmit.
   15484  *
   15485  * @QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_PPDU_SUCCESS_COUNT: u32 attribute.
   15486  * Mandatory only when SRG is supported by the AP and optional otherwise.
   15487  * This represents the number of SRG PPDUs successfully transmitted.
   15488  */
   15489 enum qca_wlan_vendor_attr_sr_stats {
   15490 	QCA_WLAN_VENDOR_ATTR_SR_STATS_INVALID = 0,
   15491 	QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_OPPORTUNITIES_COUNT = 1,
   15492 	QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_PPDU_TRIED_COUNT = 2,
   15493 	QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_PPDU_SUCCESS_COUNT = 3,
   15494 	QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_OPPORTUNITIES_COUNT = 4,
   15495 	QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_PPDU_TRIED_COUNT = 5,
   15496 	QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_PPDU_SUCCESS_COUNT = 6,
   15497 
   15498 	/* Keep last */
   15499 	QCA_WLAN_VENDOR_ATTR_SR_STATS_AFTER_LAST,
   15500 	QCA_WLAN_VENDOR_ATTR_SR_STATS_MAX =
   15501 	QCA_WLAN_VENDOR_ATTR_SR_STATS_AFTER_LAST - 1,
   15502 };
   15503 
   15504 /**
   15505  * enum qca_wlan_sr_reason_code - Defines the different reason codes used in
   15506  * Spatial Reuse feature.
   15507  *
   15508  * @QCA_WLAN_SR_REASON_CODE_ROAMING: The SR feature is disabled/enabled due to
   15509  * roaming to an AP that doesn't support/supports SR feature, respectively.
   15510  *
   15511  * @QCA_WLAN_SR_REASON_CODE_CONCURRENCY: The SR feature is disabled/enabled due
   15512  * to change in concurrent interfaces that are supported by the driver.
   15513  */
   15514 enum qca_wlan_sr_reason_code {
   15515 	QCA_WLAN_SR_REASON_CODE_ROAMING = 0,
   15516 	QCA_WLAN_SR_REASON_CODE_CONCURRENCY = 1,
   15517 };
   15518 
   15519 /**
   15520  * enum qca_wlan_sr_operation - Defines the different types of SR operations.
   15521  * The values are used inside attribute %QCA_WLAN_VENDOR_ATTR_SR_OPERATION.
   15522  *
   15523  * @QCA_WLAN_SR_OPERATION_SR_ENABLE: Userspace sends this operation to the
   15524  * driver to enable the Spatial Reuse feature. Attributes
   15525  * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_PD_THRESHOLD and
   15526  * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_PD_THRESHOLD are used with this
   15527  * operation.
   15528  *
   15529  * @QCA_WLAN_SR_OPERATION_SR_DISABLE: Userspace sends this operation to the
   15530  * driver to disable the Spatial Reuse feature.
   15531  *
   15532  * @QCA_WLAN_SR_OPERATION_SR_SUSPEND: The driver uses this operation in an
   15533  * asynchronous event sent to userspace when the SR feature is disabled.
   15534  * The disable reason is encoded in QCA_WLAN_VENDOR_ATTR_SR_PARAMS_REASON_CODE
   15535  * and sent along with the asynchronous event.
   15536  *
   15537  * @QCA_WLAN_SR_OPERATION_SR_RESUME: The driver uses this operation in an
   15538  * asynchronous event when the SR feature is enabled again after the SR feature
   15539  * was suspended by the driver earlier. The enable reason is
   15540  * encoded in QCA_WLAN_VENDOR_ATTR_SR_PARAMS_REASON_CODE. Attributes used are
   15541  * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_PD_THRESHOLD and
   15542  * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_PD_THRESHOLD.
   15543  *
   15544  * @QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_PROHIBIT: This operation is
   15545  * used to prohibit PSR-based spatial reuse and non-SRG OBSS PD-based spatial
   15546  * reuse transmissions. Userspace sends this operation to the driver.
   15547  * The driver/firmware upon receiving this operation shall prohibit PSR-based
   15548  * spatial reuse and non-SRG OBSS PD-based spatial reuse transmissions.
   15549  *
   15550  * @QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_ALLOW: This operation is
   15551  * used to allow PSR-based spatial reuse and non-SRG OBSS PD-based spatial
   15552  * reuse transmissions. Userspace sends this operation to the driver.
   15553  * The driver/firmware upon receiving this operation shall allow PSR-based
   15554  * spatial reuse and non-SRG OBSS PD-based spatial reuse transmissions.
   15555  *
   15556  * @QCA_WLAN_SR_OPERATION_GET_STATS: Userspace sends this operation to the
   15557  * driver to get the SR statistics and the driver sends a synchronous response
   15558  * with the attributes defined in enum qca_wlan_vendor_attr_sr_stats using the
   15559  * nested attribute %QCA_WLAN_VENDOR_ATTR_SR_STATS.
   15560  *
   15561  * @QCA_WLAN_SR_OPERATION_CLEAR_STATS: Userspace sends this operation to the
   15562  * driver to clear the SR statistics and upon receiving this operation
   15563  * the driver/firmware shall clear the SR statistics.
   15564  *
   15565  * @QCA_WLAN_SR_OPERATION_GET_PARAMS: Userspace sends this operation to the
   15566  * driver to get the SR parameters and the driver sends the synchronous response
   15567  * with the following required attributes:
   15568  * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MIN_OFFSET,
   15569  * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MAX_OFFSET,
   15570  * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_MAX_OFFSET,
   15571  * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_HESIGA_VAL15_ENABLE,
   15572  * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_DISALLOW.
   15573  *
   15574  * @QCA_WLAN_SR_OPERATION_UPDATE_PARAMS: The driver uses this operation in an
   15575  * asynchronous event to userspace to update any changes in SR parameters.
   15576  * The following attributes are used with this operation:
   15577  * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MIN_OFFSET,
   15578  * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MAX_OFFSET,
   15579  * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_MAX_OFFSET,
   15580  * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_HESIGA_VAL15_ENABLE,
   15581  * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_DISALLOW.
   15582  */
   15583 enum qca_wlan_sr_operation {
   15584 	QCA_WLAN_SR_OPERATION_SR_ENABLE = 0,
   15585 	QCA_WLAN_SR_OPERATION_SR_DISABLE = 1,
   15586 	QCA_WLAN_SR_OPERATION_SR_SUSPEND = 2,
   15587 	QCA_WLAN_SR_OPERATION_SR_RESUME = 3,
   15588 	QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_PROHIBIT = 4,
   15589 	QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_ALLOW = 5,
   15590 	QCA_WLAN_SR_OPERATION_GET_STATS = 6,
   15591 	QCA_WLAN_SR_OPERATION_CLEAR_STATS = 7,
   15592 	QCA_WLAN_SR_OPERATION_GET_PARAMS = 8,
   15593 	QCA_WLAN_SR_OPERATION_UPDATE_PARAMS = 9,
   15594 };
   15595 
   15596 /**
   15597  * enum qca_wlan_vendor_attr_sr_params - Defines attributes for SR configuration
   15598  * parameters used by attribute %QCA_WLAN_VENDOR_ATTR_SR_PARAMS.
   15599  *
   15600  * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_HESIGA_VAL15_ENABLE: Flag attribute.
   15601  * This attribute is optionally set in response to
   15602  * %QCA_WLAN_SR_OPERATION_GET_PARAMS and in request when operation is set to
   15603  * %QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_PROHIBIT. Refer IEEE Std
   15604  * 802.11ax-2021 Figure 9-788r-SR Control field format to understand more
   15605  * about HESIGA_Spatial_reuse_value15_allowed.
   15606  *
   15607  * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_DISALLOW: Flag attribute.
   15608  * This attribute is used in response to %QCA_WLAN_SR_OPERATION_GET_PARAMS
   15609  * operation. This indicates whether non-SRG OBSS PD SR transmissions are
   15610  * allowed or not at non-AP STAs that are associated with the AP. If present
   15611  * non-SRG OBSS PD SR transmissions are not allowed else are allowed.
   15612  *
   15613  * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MIN_OFFSET: Optional u8
   15614  * attribute. This attribute is used in response to
   15615  * %QCA_WLAN_SR_OPERATION_GET_PARAMS operation. This indicates the SRG OBSS PD
   15616  * Min Offset field which contains an unsigned integer that is added to -82 dBm
   15617  * to generate the value of the SRG OBSS PD Min parameter.
   15618  *
   15619  * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MAX_OFFSET: Optional u8
   15620  * attribute. This attribute is used in response to
   15621  * %QCA_WLAN_SR_OPERATION_GET_PARAMS operation. This indicates the SRG OBSS PD
   15622  * Max Offset field which contains an unsigned integer that is added to -82 dBm
   15623  * to generate the value of the SRG OBSS PD Max parameter.
   15624  *
   15625  * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_MAX_OFFSET: Optional u8
   15626  * attribute. This attribute is used in response to
   15627  * %QCA_WLAN_SR_OPERATION_GET_PARAMS operation. This indicates the Non-SRG OBSS
   15628  * PD Max Offset field which contains an unsigned integer that is added to -82
   15629  * dBm to generate the value of the Non-SRG OBSS PD Max parameter.
   15630  *
   15631  * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_PD_THRESHOLD: s32 attribute (in dBm).
   15632  * Userspace optionally sends this attribute with
   15633  * %QCA_WLAN_SR_OPERATION_SR_ENABLE operation to the driver to specify the
   15634  * preferred SRG PD threshold. The driver shall send this attribute to
   15635  * userspace in SR resume event to indicate the PD threshold being used for SR.
   15636  * When there is change in SRG PD threshold (for example, due to roaming, etc.)
   15637  * the driver shall indicate the userspace the newly configured SRG PD threshold
   15638  * using an asynchronous event.
   15639  *
   15640  * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_PD_THRESHOLD: s32 attribute (in dBm).
   15641  * Userspace optionally sends this attribute with
   15642  * %QCA_WLAN_SR_OPERATION_SR_ENABLE operation to the driver to specify the
   15643  * preferred non-SRG PD threshold. The driver shall send this attribute to
   15644  * userspace in SR resume event to indicate the PD threshold being used for SR.
   15645  * When there is change in non-SRG PD threshold (for example, due to roaming,
   15646  * etc.) the driver shall indicate the userspace the newly configured non-SRG PD
   15647  * threshold using an asynchronous event.
   15648  *
   15649  * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_REASON_CODE: u32 attribute. The possible
   15650  * values are defined in enum qca_wlan_sr_reason_code. This
   15651  * attribute is used with %QCA_WLAN_SR_OPERATION_SR_RESUME and
   15652  * %QCA_WLAN_SR_OPERATION_SR_SUSPEND operations.
   15653  */
   15654 enum qca_wlan_vendor_attr_sr_params {
   15655 	QCA_WLAN_VENDOR_ATTR_SR_PARAMS_INVALID = 0,
   15656 	QCA_WLAN_VENDOR_ATTR_SR_PARAMS_HESIGA_VAL15_ENABLE = 1,
   15657 	QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_DISALLOW = 2,
   15658 	QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MIN_OFFSET = 3,
   15659 	QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MAX_OFFSET = 4,
   15660 	QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_MAX_OFFSET = 5,
   15661 	QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_PD_THRESHOLD = 6,
   15662 	QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_PD_THRESHOLD = 7,
   15663 	QCA_WLAN_VENDOR_ATTR_SR_PARAMS_REASON_CODE = 8,
   15664 
   15665 	/* keep last */
   15666 	QCA_WLAN_VENDOR_ATTR_SR_PARAMS_AFTER_LAST,
   15667 	QCA_WLAN_VENDOR_ATTR_SR_PARAMS_MAX =
   15668 	QCA_WLAN_VENDOR_ATTR_SR_PARAMS_AFTER_LAST - 1,
   15669 };
   15670 
   15671 /**
   15672  * enum qca_wlan_vendor_attr_sr - Defines the attributes used by the vendor
   15673  * command QCA_NL80211_VENDOR_SUBCMD_SR.
   15674  *
   15675  * @QCA_WLAN_VENDOR_ATTR_SR_OPERATION: Mandatory u8 attribute for all requests
   15676  * from userspace to the driver. Possible values are defined in enum
   15677  * qca_wlan_sr_operation.
   15678  *
   15679  * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS: Nested attribute, contains the SR
   15680  * configuration parameters. The possible attributes inside this attribute are
   15681  * defined in enum qca_wlan_vendor_attr_sr_params.
   15682  * This attribute is used when QCA_WLAN_VENDOR_ATTR_SR_OPERATION is set to
   15683  * %QCA_WLAN_SR_OPERATION_SR_ENABLE in requests from userspace to the driver and
   15684  * also in response from the driver to userspace when the response is sent for
   15685  * %QCA_WLAN_SR_OPERATION_GET_PARAMS.
   15686  * The driver uses this attribute in asynchronous events in which the operation
   15687  * is set to %QCA_WLAN_SR_OPERATION_SR_RESUME,
   15688  * %QCA_WLAN_SR_OPERATION_SR_SUSPEND or %QCA_WLAN_SR_OPERATION_UPDATE_PARAMS.
   15689  *
   15690  * @QCA_WLAN_VENDOR_ATTR_SR_STATS: Nested attribute, contains the SR
   15691  * statistics. These attributes used inside this are defined in enum
   15692  * qca_wlan_vendor_attr_sr_stats.
   15693  * This attribute is used in response from the driver to a command in which
   15694  * %QCA_WLAN_VENDOR_ATTR_SR_OPERATION is set to
   15695  * %QCA_WLAN_SR_OPERATION_GET_STATS.
   15696  */
   15697 enum qca_wlan_vendor_attr_sr {
   15698 	QCA_WLAN_VENDOR_ATTR_SR_INVALID = 0,
   15699 	QCA_WLAN_VENDOR_ATTR_SR_OPERATION = 1,
   15700 	QCA_WLAN_VENDOR_ATTR_SR_PARAMS = 2,
   15701 	QCA_WLAN_VENDOR_ATTR_SR_STATS = 3,
   15702 
   15703 	/* Keep last */
   15704 	QCA_WLAN_VENDOR_ATTR_SR_AFTER_LAST,
   15705 	QCA_WLAN_VENDOR_ATTR_SR_MAX =
   15706 	QCA_WLAN_VENDOR_ATTR_SR_AFTER_LAST - 1,
   15707 };
   15708 
   15709 /**
   15710  * enum qca_wlan_vendor_attr_mlo_peer_prim_netdev_event - Defines the attributes
   15711  * used in the QCA_NL80211_VENDOR_SUBCMD_MLO_PEER_PRIM_NETDEV_EVENT subcommand.
   15712  *
   15713  * @QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MACADDR: 6 byte MAC address
   15714  * used by the peer on the link that corresponds to the link used for sending
   15715  * the event notification.
   15716  * @QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MLD_MAC_ADDR: 6 byte
   15717  * MLD MAC address of the peer.
   15718  * @QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_PRIM_IFINDEX: u32 attribute,
   15719  * used to pass ifindex of the primary netdev.
   15720  * @QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MLD_IFINDEX: u32 attribute,
   15721  * used to pass ifindex of the MLD netdev.
   15722  * @QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_NUM_LINKS: u8 attribute,
   15723  * used to indicate the number of links that the non-AP MLD negotiated to be
   15724  * used in the ML connection.
   15725  * @QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_LINK_INFO: Nested
   15726  * attribute, contains information regarding links of the non-AP MLD.
   15727  * User applications need to know all the links of a non-AP MLD that are
   15728  * participating in the ML association. The possible attributes inside this
   15729  * attribute are defined in enum qca_wlan_vendor_attr_mlo_link_info.
   15730  */
   15731 enum qca_wlan_vendor_attr_mlo_peer_prim_netdev_event {
   15732 	QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_INVALID = 0,
   15733 	QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MACADDR = 1,
   15734 	QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MLD_MAC_ADDR = 2,
   15735 	QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_PRIM_IFINDEX = 3,
   15736 	QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MLD_IFINDEX = 4,
   15737 	QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_NUM_LINKS = 5,
   15738 	QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_LINK_INFO = 6,
   15739 
   15740 	/* keep last */
   15741 	QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_AFTER_LAST,
   15742 	QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MAX =
   15743 	QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_AFTER_LAST - 1,
   15744 };
   15745 
   15746 /**
   15747  * enum qca_wlan_vendor_attr_mlo_link_info - Defines attributes for
   15748  * non-AP MLD link parameters used by the attribute
   15749  * %QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_LINK_INFO.
   15750  *
   15751  * @QCA_WLAN_VENDOR_ATTR_MLO_LINK_INFO_IFINDEX: u32 attribute, used
   15752  * to pass the netdev ifindex of the non-AP MLD link.
   15753  * @QCA_WLAN_VENDOR_ATTR_MLO_LINK_INFO_MACADDR: 6 byte MAC address of
   15754  * the non-AP MLD link.
   15755  */
   15756 enum qca_wlan_vendor_attr_mlo_link_info {
   15757 	QCA_WLAN_VENDOR_ATTR_MLO_LINK_INFO_INVALID = 0,
   15758 	QCA_WLAN_VENDOR_ATTR_MLO_LINK_INFO_IFINDEX = 1,
   15759 	QCA_WLAN_VENDOR_ATTR_MLO_LINK_INFO_MACADDR = 2,
   15760 
   15761 	/* keep last */
   15762 	QCA_WLAN_VENDOR_ATTR_MLO_LINK_INFO_AFTER_LAST,
   15763 	QCA_WLAN_VENDOR_ATTR_MLO_LINK_INFO_MAX =
   15764 	QCA_WLAN_VENDOR_ATTR_MLO_LINK_INFO_AFTER_LAST - 1,
   15765 };
   15766 
   15767 /**
   15768  * enum qca_wlan_vendor_attr_afc_freq_psd_info: This enum is used with
   15769  * nested attributes QCA_WLAN_VENDOR_ATTR_AFC_RESP_FREQ_PSD_INFO and
   15770  * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_FREQ_RANGE_LIST to update the frequency range
   15771  * and PSD information.
   15772  *
   15773  * @QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_START: Required and type is
   15774  * u32. This attribute is used to indicate the start of the queried frequency
   15775  * range in MHz.
   15776  *
   15777  * @QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_END: Required and type is u32.
   15778  * This attribute is used to indicate the end of the queried frequency range
   15779  * in MHz.
   15780  *
   15781  * @QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_PSD: Required and type is u32.
   15782  * This attribute will contain the PSD information for a single range as
   15783  * specified by the QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_START and
   15784  * QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_END attributes.
   15785  *
   15786  * The PSD power info (dBm/MHz) from user space should be multiplied
   15787  * by a factor of 100 when sending to the driver to preserve granularity
   15788  * up to 2 decimal places.
   15789  * Example:
   15790  *     PSD power value: 10.21 dBm/MHz
   15791  *     Value to be updated in QCA_WLAN_VENDOR_ATTR_AFC_PSD_INFO: 1021.
   15792  *
   15793  * Note: QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_PSD attribute will be used only
   15794  * with nested attribute QCA_WLAN_VENDOR_ATTR_AFC_RESP_FREQ_PSD_INFO and with
   15795  * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_FREQ_RANGE_LIST when
   15796  * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
   15797  * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE.
   15798  *
   15799  * The following set of attributes will be used to exchange frequency and
   15800  * corresponding PSD information for AFC between the user space and the driver.
   15801  */
   15802 enum qca_wlan_vendor_attr_afc_freq_psd_info {
   15803 	QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_INVALID = 0,
   15804 	QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_START = 1,
   15805 	QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_END = 2,
   15806 	QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_PSD = 3,
   15807 
   15808 	QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_AFTER_LAST,
   15809 	QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_MAX =
   15810 	QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_AFTER_LAST - 1,
   15811 };
   15812 
   15813 /**
   15814  * enum qca_wlan_vendor_attr_afc_chan_eirp_info: This enum is used with
   15815  * nested attribute QCA_WLAN_VENDOR_ATTR_AFC_CHAN_LIST_INFO to update the
   15816  * channel list and corresponding EIRP information.
   15817  *
   15818  * @QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM: Required and type is u8.
   15819  * This attribute is used to indicate queried channel from
   15820  * the operating class indicated in QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO.
   15821  *
   15822  * @QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP: Optional and type is u32.
   15823  * This attribute is used to configure the EIRP power info corresponding
   15824  * to the channel number indicated in QCA_WLAN_VENDOR_ATTR_AFC_CHAN_NUM.
   15825  * The EIRP power info(dBm) from user space should be multiplied
   15826  * by a factor of 100 when sending to Driver to preserve granularity up to
   15827  * 2 decimal places.
   15828  * Example:
   15829  *     EIRP power value: 34.23 dBm
   15830  *     Value to be updated in QCA_WLAN_VENDOR_ATTR_AFC_EIRP_INFO: 3423.
   15831  *
   15832  * Note: QCA_WLAN_VENDOR_ATTR_AFC_EIRP_INFO attribute will only be used with
   15833  * nested attribute QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO and
   15834  * with QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_LIST when
   15835  * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
   15836  * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE:
   15837  *
   15838  * The following set of attributes will be used to exchange Channel and
   15839  * corresponding EIRP information for AFC between the user space and Driver.
   15840  */
   15841 enum qca_wlan_vendor_attr_afc_chan_eirp_info {
   15842 	QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_INVALID = 0,
   15843 	QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM = 1,
   15844 	QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP = 2,
   15845 
   15846 	QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_AFTER_LAST,
   15847 	QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_MAX =
   15848 	QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_AFTER_LAST - 1,
   15849 };
   15850 
   15851 /**
   15852  * enum qca_wlan_vendor_attr_afc_opclass_info: This enum is used with nested
   15853  * attributes QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO and
   15854  * QCA_WLAN_VENDOR_ATTR_AFC_REQ_OPCLASS_CHAN_INFO to update the operating class,
   15855  * channel, and EIRP related information.
   15856  *
   15857  * @QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS: Required and type is u8.
   15858  * This attribute is used to indicate the operating class, as listed under
   15859  * IEEE Std 802.11-2020 Annex E Table E-4, for the queried channel list.
   15860  *
   15861  * @QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST: Array of nested attributes
   15862  * for updating the channel number and EIRP power information.
   15863  * It uses the attributes defined in
   15864  * enum qca_wlan_vendor_attr_afc_chan_eirp_info.
   15865  *
   15866  * Operating class information packing format for
   15867  * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_INFO when
   15868  * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
   15869  * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE_EXPIRY.
   15870  *
   15871  * m - Total number of operating classes.
   15872  * n, j - Number of queried channels for the corresponding operating class.
   15873  *
   15874  *  QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS[0]
   15875  *  QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST[0]
   15876  *      QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[0]
   15877  *      .....
   15878  *      QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[n - 1]
   15879  *  ....
   15880  *  QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS[m]
   15881  *  QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST[m]
   15882  *      QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[0]
   15883  *      ....
   15884  *      QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[j - 1]
   15885  *
   15886  * Operating class information packing format for
   15887  * QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO and
   15888  * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_INFO when
   15889  * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
   15890  * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE.
   15891  *
   15892  * m - Total number of operating classes.
   15893  * n, j - Number of channels for the corresponding operating class.
   15894  *
   15895  *  QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS[0]
   15896  *  QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST[0]
   15897  *      QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[0]
   15898  *      QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP[0]
   15899  *      .....
   15900  *      QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[n - 1]
   15901  *      QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP[n - 1]
   15902  *  ....
   15903  *  QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS[m]
   15904  *  QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST[m]
   15905  *      QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[0]
   15906  *      QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP[0]
   15907  *      ....
   15908  *      QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[j - 1]
   15909  *      QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP[j - 1]
   15910  *
   15911  * The following set of attributes will be used to exchange operating class
   15912  * information for AFC between the user space and the driver.
   15913  */
   15914 enum qca_wlan_vendor_attr_afc_opclass_info {
   15915 	QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_INVALID = 0,
   15916 	QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS = 1,
   15917 	QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST = 2,
   15918 
   15919 	QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_AFTER_LAST,
   15920 	QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_MAX =
   15921 	QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_AFTER_LAST - 1,
   15922 };
   15923 
   15924 /**
   15925  * enum qca_wlan_vendor_afc_event_type: Defines values for AFC event type.
   15926  * Attribute used by QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE attribute.
   15927  *
   15928  * @QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY: AFC expiry event sent from the
   15929  * driver to userspace in order to query the new AFC power values.
   15930  *
   15931  * @QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE: Power update
   15932  * complete event will be sent from the driver to userspace to indicate
   15933  * processing of the AFC response.
   15934  *
   15935  * @QCA_WLAN_VENDOR_AFC_EVENT_TYPE_PAYLOAD_RESET: AFC payload reset event
   15936  * will be sent from the driver to userspace to indicate last received
   15937  * AFC response data has been cleared on the AP due to invalid data
   15938  * in the QCA_NL80211_VENDOR_SUBCMD_AFC_RESPONSE.
   15939  *
   15940  * The following enum defines the different event types that will be
   15941  * used by the driver to help trigger corresponding AFC functionality in user
   15942  * space.
   15943  */
   15944 enum qca_wlan_vendor_afc_event_type {
   15945 	QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY = 0,
   15946 	QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE = 1,
   15947 	QCA_WLAN_VENDOR_AFC_EVENT_TYPE_PAYLOAD_RESET = 2,
   15948 };
   15949 
   15950 /**
   15951  * enum qca_wlan_vendor_afc_ap_deployment_type: Defines values for AP
   15952  * deployment type.
   15953  * Attribute used by QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AP_DEPLOYMENT attribute.
   15954  *
   15955  * @QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_UNKNOWN: Unknown AP deployment.
   15956  *
   15957  * @QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_INDOOR: Indoor AP deployment.
   15958  *
   15959  * @QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_OUTDOOR: Outdoor AP deployment.
   15960  *
   15961  * The following enum defines different deployment modes that the AP might
   15962  * come up in. This information will be essential to retrieve deployment-type
   15963  * specific SP power values for AFC operation.
   15964  */
   15965 enum qca_wlan_vendor_afc_ap_deployment_type {
   15966 	QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_UNKNOWN = 0,
   15967 	QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_INDOOR = 1,
   15968 	QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_OUTDOOR = 2,
   15969 };
   15970 
   15971 /**
   15972  * enum qca_wlan_vendor_afc_evt_status_code: Defines values AP will use to
   15973  * indicate AFC response status.
   15974  * Enum used by QCA_WLAN_VENDOR_ATTR_AFC_EVENT_STATUS_CODE attribute.
   15975  *
   15976  * @QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_SUCCESS: Success
   15977  *
   15978  * @QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_TIMEOUT: Indicates AFC indication
   15979  * command was not received within the expected time of the AFC expiry event
   15980  * being triggered.
   15981  *
   15982  * @QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_PARSING_ERROR: Indicates AFC data
   15983  * parsing error by the driver.
   15984  *
   15985  * @QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_LOCAL_ERROR: Indicates any other local
   15986  * error.
   15987  *
   15988  * The following enum defines the status codes that the driver will use to
   15989  * indicate whether the AFC data is valid or not.
   15990  */
   15991 enum qca_wlan_vendor_afc_evt_status_code {
   15992 	QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_SUCCESS = 0,
   15993 	QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_TIMEOUT = 1,
   15994 	QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_PARSING_ERROR = 2,
   15995 	QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_LOCAL_ERROR = 3,
   15996 };
   15997 
   15998 /**
   15999  * enum qca_wlan_vendor_attr_afc_event: Defines attributes to be used with
   16000  * vendor event QCA_NL80211_VENDOR_SUBCMD_AFC_EVENT. These attributes will
   16001  * support sending only a single request to the user space at a time.
   16002  *
   16003  * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE: Required u8 attribute.
   16004  * Used with event to notify the type of AFC event received.
   16005  * Valid values are defined in enum qca_wlan_vendor_afc_event_type.
   16006  *
   16007  * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AP_DEPLOYMENT: u8 attribute. Required when
   16008  * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY,
   16009  * otherwise unused.
   16010  *
   16011  * This attribute is used to indicate the AP deployment type in the AFC request.
   16012  * Valid values are defined in enum qca_wlan_vendor_afc_ap_deployment_type.
   16013  *
   16014  * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_REQ_ID: Required u32 attribute.
   16015  * Unique request identifier generated by the AFC client for every
   16016  * AFC expiry event trigger. See also QCA_WLAN_VENDOR_ATTR_AFC_RESP_REQ_ID.
   16017  * The user space application is responsible for ensuring no duplicate values
   16018  * are in-flight with the server, e.g., by delaying a request, should the same
   16019  * value be received from different radios in parallel.
   16020  *
   16021  * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AFC_WFA_VERSION: u32 attribute. Optional.
   16022  * It is used when the QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
   16023  * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY, otherwise unused.
   16024  *
   16025  * This attribute indicates the AFC spec version information. This will
   16026  * indicate the AFC version AFC client must use to query the AFC data.
   16027  * Bits 15:0  - Minor version
   16028  * Bits 31:16 - Major version
   16029  *
   16030  * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_MIN_DES_POWER: u16 attribute. Required when
   16031  * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY,
   16032  * otherwise unused.
   16033  * This attribute indicates the minimum desired power (in dBm) for
   16034  * the queried spectrum.
   16035  *
   16036  * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_STATUS_CODE: u8 attribute. Required when
   16037  * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
   16038  * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused.
   16039  *
   16040  * Valid values are defined in enum qca_wlan_vendor_afc_evt_status_code.
   16041  * This attribute is used to indicate if there were any errors parsing the
   16042  * AFC response.
   16043  *
   16044  * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_SERVER_RESP_CODE: s32 attribute. Required
   16045  * when QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
   16046  * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused.
   16047  *
   16048  * This attribute indicates the AFC response code. The AFC response codes are
   16049  * in the following categories:
   16050  * -1: General Failure.
   16051  * 0: Success.
   16052  * 100 - 199: General errors related to protocol.
   16053  * 300 - 399: Error events specific to message exchange
   16054  *            for the Available Spectrum Inquiry.
   16055  *
   16056  * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_EXP_DATE: u32 attribute. Required when
   16057  * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
   16058  * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused.
   16059  *
   16060  * This attribute indicates the date until which the current response is
   16061  * valid for in UTC format.
   16062  * Date format: bits 7:0   - DD (Day 1-31)
   16063  *              bits 15:8  - MM (Month 1-12)
   16064  *              bits 31:16 - YYYY (Year)
   16065  *
   16066  * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_EXP_TIME: u32 attribute. Required when
   16067  * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
   16068  * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused.
   16069  *
   16070  * This attribute indicates the time until which the current response is
   16071  * valid for in UTC format.
   16072  * Time format: bits 7:0   - SS (Seconds 0-59)
   16073  *              bits 15:8  - MM (Minutes 0-59)
   16074  *              bits 23:16 - HH (Hours 0-23)
   16075  *              bits 31:24 - Reserved
   16076  *
   16077  * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_FREQ_RANGE_LIST: Array of nested attributes
   16078  * for updating the list of frequency ranges to be queried.
   16079  * Required when QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
   16080  * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY or
   16081  * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused.
   16082  * It uses the attributes defined in
   16083  * enum qca_wlan_vendor_attr_afc_freq_psd_info.
   16084  *
   16085  * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_LIST: Array of nested attributes
   16086  * for updating the list of operating classes and corresponding channels to be
   16087  * queried.
   16088  * Required when QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
   16089  * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY or
   16090  * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused.
   16091  * It uses the attributes defined in enum qca_wlan_vendor_attr_afc_opclass_info.
   16092  */
   16093 enum qca_wlan_vendor_attr_afc_event {
   16094 	QCA_WLAN_VENDOR_ATTR_AFC_EVENT_INVALID = 0,
   16095 	QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE = 1,
   16096 	QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AP_DEPLOYMENT = 2,
   16097 	QCA_WLAN_VENDOR_ATTR_AFC_EVENT_REQ_ID = 3,
   16098 	QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AFC_WFA_VERSION = 4,
   16099 	QCA_WLAN_VENDOR_ATTR_AFC_EVENT_MIN_DES_POWER = 5,
   16100 	QCA_WLAN_VENDOR_ATTR_AFC_EVENT_STATUS_CODE = 6,
   16101 	QCA_WLAN_VENDOR_ATTR_AFC_EVENT_SERVER_RESP_CODE = 7,
   16102 	QCA_WLAN_VENDOR_ATTR_AFC_EVENT_EXP_DATE = 8,
   16103 	QCA_WLAN_VENDOR_ATTR_AFC_EVENT_EXP_TIME = 9,
   16104 	QCA_WLAN_VENDOR_ATTR_AFC_EVENT_FREQ_RANGE_LIST = 10,
   16105 	QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_LIST = 11,
   16106 
   16107 	QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AFTER_LAST,
   16108 	QCA_WLAN_VENDOR_ATTR_AFC_EVENT_MAX =
   16109 	QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AFTER_LAST - 1,
   16110 };
   16111 
   16112 /**
   16113  * enum qca_wlan_vendor_attr_afc_response: Defines attributes to be used
   16114  * with vendor command QCA_NL80211_VENDOR_SUBCMD_AFC_RESPONSE. These attributes
   16115  * will support sending only a single AFC response to the driver at a time.
   16116  *
   16117  * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_DATA: Type is NLA_STRING. Required attribute.
   16118  * This attribute will be used to send a single Spectrum Inquiry response object
   16119  * from the 'availableSpectrumInquiryResponses' array object from the response
   16120  * JSON.
   16121  *
   16122  * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_TIME_TO_LIVE: Required u32 attribute.
   16123  *
   16124  * This attribute indicates the period (in seconds) for which the response
   16125  * data received is valid for.
   16126  *
   16127  * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_REQ_ID: Required u32 attribute.
   16128  *
   16129  * This attribute indicates the request ID for which the corresponding
   16130  * response is being sent for. See also QCA_WLAN_VENDOR_ATTR_AFC_EVENT_REQ_ID.
   16131  *
   16132  * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_EXP_DATE: Required u32 attribute.
   16133  *
   16134  * This attribute indicates the date until which the current response is
   16135  * valid for in UTC format.
   16136  * Date format: bits 7:0   - DD (Day 1-31)
   16137  *              bits 15:8  - MM (Month 1-12)
   16138  *              bits 31:16 - YYYY (Year)
   16139  *
   16140  * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_EXP_TIME: Required u32 attribute.
   16141  *
   16142  * This attribute indicates the time until which the current response is
   16143  * valid for in UTC format.
   16144  * Time format: bits 7:0   - SS (Seconds 0-59)
   16145  *              bits 15:8  - MM (Minutes 0-59)
   16146  *              bits 23:16 - HH (Hours 0-23)
   16147  *              bits 31:24 - Reserved
   16148  *
   16149  * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_AFC_SERVER_RESP_CODE: Required s32 attribute.
   16150  *
   16151  * This attribute indicates the AFC response code. The AFC response codes are
   16152  * in the following categories:
   16153  * -1: General Failure.
   16154  * 0: Success.
   16155  * 100 - 199: General errors related to protocol.
   16156  * 300 - 399: Error events specific to message exchange
   16157  *            for the Available Spectrum Inquiry.
   16158  *
   16159  * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_FREQ_PSD_INFO: Array of nested attributes
   16160  * for PSD info of all the queried frequency ranges. It uses the attributes
   16161  * defined in enum qca_wlan_vendor_attr_afc_freq_psd_info. Required attribute.
   16162  *
   16163  * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO: Array of nested
   16164  * attributes for EIRP info of all queried operating class/channels. It uses
   16165  * the attributes defined in enum qca_wlan_vendor_attr_afc_opclass_info and
   16166  * enum qca_wlan_vendor_attr_afc_chan_eirp_info. Required attribute.
   16167  *
   16168  */
   16169 enum qca_wlan_vendor_attr_afc_response {
   16170 	QCA_WLAN_VENDOR_ATTR_AFC_RESP_INVALID = 0,
   16171 	QCA_WLAN_VENDOR_ATTR_AFC_RESP_DATA = 1,
   16172 	QCA_WLAN_VENDOR_ATTR_AFC_RESP_TIME_TO_LIVE = 2,
   16173 	QCA_WLAN_VENDOR_ATTR_AFC_RESP_REQ_ID = 3,
   16174 	QCA_WLAN_VENDOR_ATTR_AFC_RESP_EXP_DATE = 4,
   16175 	QCA_WLAN_VENDOR_ATTR_AFC_RESP_EXP_TIME = 5,
   16176 	QCA_WLAN_VENDOR_ATTR_AFC_RESP_AFC_SERVER_RESP_CODE = 6,
   16177 	QCA_WLAN_VENDOR_ATTR_AFC_RESP_FREQ_PSD_INFO = 7,
   16178 	QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO = 8,
   16179 
   16180 	QCA_WLAN_VENDOR_ATTR_AFC_RESP_AFTER_LAST,
   16181 	QCA_WLAN_VENDOR_ATTR_AFC_RESP_MAX =
   16182 	QCA_WLAN_VENDOR_ATTR_AFC_RESP_AFTER_LAST - 1,
   16183 };
   16184 
   16185 /**
   16186  * enum qca_wlan_dozed_ap_state - Doze states for AP interface
   16187  *
   16188  * @QCA_WLAN_DOZED_AP_DISABLE: Disable doze state on the AP interface.
   16189  *
   16190  * @QCA_WLAN_DOZED_AP_ENABLE: Enable doze state on the AP interface. AP starts
   16191  * beaconing at higher beacon interval with Rx disabled.
   16192  */
   16193 enum qca_wlan_dozed_ap_state {
   16194 	QCA_WLAN_DOZED_AP_DISABLE = 0,
   16195 	QCA_WLAN_DOZED_AP_ENABLE = 1,
   16196 };
   16197 
   16198 /**
   16199  * enum qca_wlan_vendor_attr_dozed_ap - Used by the vendor command
   16200  * @QCA_NL80211_VENDOR_SUBCMD_DOZED_AP to configure or receive dozed AP mode
   16201  * configuration.
   16202  *
   16203  * @QCA_WLAN_VENDOR_ATTR_DOZED_AP_STATE: u8 attribute.
   16204  * Configures the doze state for an AP interface. Possible values are defined
   16205  * in enum qca_wlan_dozed_ap_state. @QCA_NL80211_VENDOR_SUBCMD_DOZED_AP event
   16206  * gets triggered asynchronously to provide updated AP interface configuration.
   16207  *
   16208  * @QCA_WLAN_VENDOR_ATTR_DOZED_AP_COOKIE: Unsigned 64-bit cookie provided by
   16209  * the driver in the response to specific @QCA_NL80211_VENDOR_SUBCMD_DOZED_AP
   16210  * command, which is used later to maintain synchronization between commands
   16211  * and asynchronous events.
   16212  *
   16213  * @QCA_WLAN_VENDOR_ATTR_DOZED_AP_NEXT_TSF: u64 attribute.
   16214  * Used in event to indicate the next TBTT TSF timer value after applying the
   16215  * doze mode configuration. Next TBTT TSF is the time at which the AP sends
   16216  * the first beacon after entering or exiting dozed mode.
   16217  *
   16218  * @QCA_WLAN_VENDOR_ATTR_DOZED_AP_BI_MULTIPLIER: u16 attribute.
   16219  * Used with event to inform the periodicity of beacon transmission that would
   16220  * be skipped at all TBTTs in between.
   16221  *
   16222  * @QCA_WLAN_VENDOR_ATTR_DOZED_AP_PAD: Attribute used for padding for 64-bit
   16223  * alignment.
   16224  */
   16225 enum qca_wlan_vendor_attr_dozed_ap {
   16226 	QCA_WLAN_VENDOR_ATTR_DOZED_AP_INVALID = 0,
   16227 	QCA_WLAN_VENDOR_ATTR_DOZED_AP_STATE = 1,
   16228 	QCA_WLAN_VENDOR_ATTR_DOZED_AP_COOKIE = 2,
   16229 	QCA_WLAN_VENDOR_ATTR_DOZED_AP_NEXT_TSF = 3,
   16230 	QCA_WLAN_VENDOR_ATTR_DOZED_AP_BI_MULTIPLIER = 4,
   16231 	QCA_WLAN_VENDOR_ATTR_DOZED_AP_PAD = 5,
   16232 
   16233 	/* Keep last */
   16234 	QCA_WLAN_VENDOR_ATTR_DOZED_AP_AFTER_LAST,
   16235 	QCA_WLAN_VENDOR_ATTR_DOZED_AP_MAX =
   16236 	QCA_WLAN_VENDOR_ATTR_DOZED_AP_AFTER_LAST - 1,
   16237 };
   16238 
   16239 /**
   16240  * enum qca_wlan_vendor_monitor_mode_status - Represents the status codes
   16241  * used with QCA_NL80211_VENDOR_SUBCMD_GET_MONITOR_MODE.
   16242  * @QCA_WLAN_VENDOR_MONITOR_MODE_NO_CAPTURE_RUNNING: Used to indicate no
   16243  * capture running status.
   16244  * @QCA_WLAN_VENDOR_MONITOR_MODE_CAPTURE_RUNNING: Used to indicate
   16245  * capture running status.
   16246  **/
   16247 
   16248 enum qca_wlan_vendor_monitor_mode_status {
   16249 	QCA_WLAN_VENDOR_MONITOR_MODE_NO_CAPTURE_RUNNING = 0,
   16250 	QCA_WLAN_VENDOR_MONITOR_MODE_CAPTURE_RUNNING = 1,
   16251 };
   16252 
   16253 /**
   16254  * enum qca_wlan_vendor_attr_get_monitor_mode - Used by the
   16255  * vendor command QCA_NL80211_VENDOR_SUBCMD_GET_MONITOR_MODE to report
   16256  * information regarding the local packet capture over the monitor mode.
   16257  *
   16258  * @QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_STATUS: u32 attribute. This attribute
   16259  * represents the status of the start capture commands. The values used with
   16260  * this attribute are defined in enum qca_wlan_vendor_monitor_mode_status. This
   16261  * is returned by the driver in the response to the command.
   16262  */
   16263 
   16264 enum qca_wlan_vendor_attr_get_monitor_mode {
   16265 	QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_INVALID = 0,
   16266 	QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_STATUS = 1,
   16267 
   16268 	/* Keep last */
   16269 	QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_AFTER_LAST,
   16270 	QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_MAX =
   16271 	QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_AFTER_LAST - 1,
   16272 };
   16273 
   16274 /**
   16275  * enum qca_wlan_vendor_link_state_op_types - Defines different types of
   16276  * operations for which %QCA_NL80211_VENDOR_SUBCMD_MLO_LINK_STATE can be used.
   16277  * Will be used with %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE attribute.
   16278  *
   16279  * @QCA_WLAN_VENDOR_LINK_STATE_OP_GET - Get the MLO links state information.
   16280  * @QCA_WLAN_VENDOR_LINK_STATE_OP_SET - Set the MLO links state information.
   16281  */
   16282 enum qca_wlan_vendor_link_state_op_types {
   16283 	QCA_WLAN_VENDOR_LINK_STATE_OP_GET = 0,
   16284 	QCA_WLAN_VENDOR_LINK_STATE_OP_SET = 1,
   16285 };
   16286 
   16287 /**
   16288  * enum qca_wlan_vendor_link_state_control_modes - Represents the types of MLO
   16289  * links state control modes. This enum is used by
   16290  * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONTROL_MODE attribute.
   16291  *
   16292  * @QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_DEFAULT: MLO links state controlled
   16293  * by the driver.
   16294  * @QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_USER: MLO links state controlled by
   16295  * user space.
   16296  * @QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_MIXED: User space provides the
   16297  * desired number of MLO links to operate in active state at any given time.
   16298  * The driver will choose which MLO links should operate in the active state.
   16299  * See enum qca_wlan_vendor_link_state for active state definition.
   16300  */
   16301 enum qca_wlan_vendor_link_state_control_modes {
   16302 	QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_DEFAULT = 0,
   16303 	QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_USER = 1,
   16304 	QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_MIXED = 2,
   16305 };
   16306 
   16307 /**
   16308  * enum qca_wlan_vendor_link_state_operation_modes - Represents the types of MLO
   16309  * links state operation modes. This enum is used by
   16310  * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OPERATION_MODE attribute.
   16311  *
   16312  * @QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_DEFAULT: In the default operation
   16313  * mode, the driver selects the operating mode of the links, without any
   16314  * guidance from the user space.
   16315  * @QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_LOW_LATENCY: In the low latency
   16316  * operation mode the driver should select MLO links that will achieve low
   16317  * latency.
   16318  * @QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_HIGH_THROUGHPUT: In the high
   16319  * throughput operation mode the driver should select MLO links that will
   16320  * achieve higher throughput.
   16321  * @QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_LOW_POWER: In the low power
   16322  * operation mode the driver should select MLO links that will achieve low
   16323  * power.
   16324  */
   16325 enum qca_wlan_vendor_link_state_operation_modes {
   16326 	QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_DEFAULT = 0,
   16327 	QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_LOW_LATENCY = 1,
   16328 	QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_HIGH_THROUGHPUT = 2,
   16329 	QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_LOW_POWER = 3,
   16330 };
   16331 
   16332 /**
   16333  * enum qca_wlan_vendor_link_state - Represents the possible link states of an
   16334  * MLO link.
   16335  *
   16336  * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_INACTIVE: In this state, the link will not
   16337  * be used for data transmission but it can have TIDs mapped to it. It will be
   16338  * in doze state always and does not monitor the beacons.
   16339  * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_ACTIVE: In this state, the link will be
   16340  * used for data TX/RX and monitors the beacons to check TIM bit indication.
   16341  * It may enter doze state and comes out based on the transmit data traffic and
   16342  * TIM bit indication in the beacon.
   16343  */
   16344 enum qca_wlan_vendor_link_state {
   16345 	QCA_WLAN_VENDOR_LINK_STATE_INACTIVE = 0,
   16346 	QCA_WLAN_VENDOR_LINK_STATE_ACTIVE = 1,
   16347 };
   16348 
   16349 /**
   16350  * enum qca_wlan_vendor_attr_link_state_config - Definition of attributes used
   16351  * inside nested attribute %QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG.
   16352  *
   16353  * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_LINK_ID: u8 attribute, link ID of the
   16354  * MLO link.
   16355  * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_STATE: u32 attribute. See
   16356  * enum qca_wlan_vendor_link_state for possible MLO link states.
   16357  */
   16358 
   16359 enum qca_wlan_vendor_attr_link_state_config {
   16360 	QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_INVALID = 0,
   16361 	QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_LINK_ID = 1,
   16362 	QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_STATE = 2,
   16363 
   16364 	/* Keep last */
   16365 	QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_AFTER_LAST,
   16366 	QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_MAX =
   16367 	QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_AFTER_LAST - 1,
   16368 };
   16369 
   16370 /**
   16371  * enum qca_wlan_vendor_attr_mlo_link_state - Attributes used by
   16372  * %QCA_NL80211_VENDOR_SUBCMD_MLO_LINK_STATE vendor command.
   16373  *
   16374  * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE: u32 attribute. Indicates the type
   16375  * of the operation %QCA_NL80211_VENDOR_SUBCMD_MLO_LINK_STATE intended for.
   16376  * Required only in a command. Possible values for this attribute are defined in
   16377  * enum qca_wlan_vendor_link_state_op_types.
   16378  *
   16379  * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONTROL_MODE: u32 attribute. Indicates MLO
   16380  * links control mode type. Optional attribute in a command when
   16381  * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE is set to
   16382  * %QCA_WLAN_VENDOR_LINK_STATE_OP_SET. Required attribute in a response when
   16383  * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE is set to
   16384  * %QCA_WLAN_VENDOR_LINK_STATE_OP_GET.
   16385  * See enum qca_wlan_vendor_link_state_control_modes for possible control modes.
   16386  *
   16387  * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG: Array of nested attributes.
   16388  * Indicates the state of the each MLO link affiliated with the interface.
   16389  * Required attribute in a command when %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE
   16390  * is set to %QCA_WLAN_VENDOR_LINK_STATE_OP_SET and
   16391  * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONTROL_MODE is set to
   16392  * %QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_USER. Required attribute in a
   16393  * response when %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE is set to
   16394  * %QCA_WLAN_VENDOR_LINK_STATE_OP_GET.
   16395  * See enum qca_wlan_vendor_attr_link_state_config for the nested attributes.
   16396  *
   16397  * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_MIXED_MODE_ACTIVE_NUM_LINKS: u8 attribute.
   16398  * Represents the number of active state links. See enum
   16399  * qca_wlan_vendor_link_state for active state definition.
   16400  * Required attribute in a command when %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE
   16401  * is set to %QCA_WLAN_VENDOR_LINK_STATE_OP_SET and
   16402  * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONTROL_MODE is set to
   16403  * %QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_MIXED.
   16404  *
   16405  * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_OPERATION_MODE: u32 attribute. Indicates MLO
   16406  * links operation mode type. Optional attribute in a command when
   16407  * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE is set to
   16408  * %QCA_WLAN_VENDOR_LINK_STATE_OP_SET. Required attribute in a response when
   16409  * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE is set to
   16410  * %QCA_WLAN_VENDOR_LINK_STATE_OP_GET.
   16411  * See enum qca_wlan_vendor_link_state_operation_modes for possible operation
   16412  * modes.
   16413  */
   16414 enum qca_wlan_vendor_attr_mlo_link_state {
   16415 	QCA_WLAN_VENDOR_ATTR_LINK_STATE_INVALID = 0,
   16416 	QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE = 1,
   16417 	QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONTROL_MODE = 2,
   16418 	QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG = 3,
   16419 	QCA_WLAN_VENDOR_ATTR_LINK_STATE_MIXED_MODE_ACTIVE_NUM_LINKS = 4,
   16420 	QCA_WLAN_VENDOR_ATTR_LINK_STATE_OPERATION_MODE = 5,
   16421 
   16422 	/* keep last */
   16423 	QCA_WLAN_VENDOR_ATTR_LINK_STATE_AFTER_LAST,
   16424 	QCA_WLAN_VENDOR_ATTR_LINK_STATE_MAX =
   16425 	QCA_WLAN_VENDOR_ATTR_LINK_STATE_AFTER_LAST - 1,
   16426 };
   16427 
   16428 /**
   16429  * enum qca_wlan_vendor_attr_tid_link_map_status - Definition of attributes used
   16430  * inside nested attribute %QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_STATUS.
   16431  *
   16432  * @QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_UPLINK: Required u16 attribute
   16433  * within nested attribute %QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_STATUS.
   16434  * Indicates the link mapping bitmap of a TID for uplink traffic. It is a
   16435  * bitmask of the link IDs in which a bit set means that the TID is mapped with
   16436  * that link ID in uplink traffic. Otherwise, the TID is not mapped to uplink
   16437  * traffic for that link.
   16438  *
   16439  * @QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_DOWNLINK: Required u16 attribute
   16440  * within nested attribute %QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_STATUS.
   16441  * Indicates the link mapping bitmap of a TID for downlink traffic. It is a
   16442  * bitmask of the link IDs in which a bit set means that the TID is mapped with
   16443  * that link ID in downlink traffic. Otherwise, the TID is not mapped to
   16444  * downlink traffic for that link.
   16445  */
   16446 enum qca_wlan_vendor_attr_tid_link_map_status {
   16447 	QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_INVALID = 0,
   16448 	QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_UPLINK = 1,
   16449 	QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_DOWNLINK = 2,
   16450 
   16451 	/* keep last */
   16452 	QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_AFTER_LAST,
   16453 	QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_MAX =
   16454 	QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_AFTER_LAST - 1,
   16455 };
   16456 
   16457 /*
   16458  * enum qca_wlan_vendor_attr_tid_to_link_map: Definition of attributes used with
   16459  * %QCA_NL80211_VENDOR_SUBCMD_TID_TO_LINK_MAP event.
   16460  *
   16461  * @QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_AP_MLD_ADDR: Required attribute. 6-byte
   16462  * AP MLD address with which this TID-to-link negotiation mapping is
   16463  * established/updated.
   16464  *
   16465  * @QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_STATUS: Optional attribute. Array of
   16466  * nested attributes containing TID-to-links mapping information. This will have
   16467  * TID-to-link mapping for TID0 to TID7, each containing the uplink and downlink
   16468  * map information. If this attribute is not present the default TID-to-link
   16469  * mapping is in use, i.e., all TIDs are mapped to all links for both uplink and
   16470  * downlink traffic.
   16471  * See enum qca_wlan_vendor_attr_tid_link_map_status for the nested attributes.
   16472  */
   16473 enum qca_wlan_vendor_attr_tid_to_link_map {
   16474 	QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_INVALID = 0,
   16475 	QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_AP_MLD_ADDR = 1,
   16476 	QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_STATUS = 2,
   16477 
   16478 	/* keep last */
   16479 	QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_AFTER_LAST,
   16480 	QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_MAX =
   16481 	QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_AFTER_LAST - 1,
   16482 };
   16483 
   16484 /**
   16485  * enum qca_wlan_vendor_attr_link_reconfig: Definition of attributes used
   16486  * with %QCA_NL80211_VENDOR_SUBCMD_LINK_RECONFIG event.
   16487  *
   16488  * @QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_AP_MLD_ADDR: Required attribute.
   16489  * 6-byte AP MLD address of the AP which indicated the link reconfiguration.
   16490  *
   16491  * @QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_REMOVED_LINKS: Required u16 attribute.
   16492  * A bitmap of the removed setup links link IDs.
   16493  */
   16494 enum qca_wlan_vendor_attr_link_reconfig {
   16495 	QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_INVALID = 0,
   16496 	QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_AP_MLD_ADDR = 1,
   16497 	QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_REMOVED_LINKS = 2,
   16498 
   16499 	/* keep last */
   16500 	QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_AFTER_LAST,
   16501 	QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_MAX =
   16502 	QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_AFTER_LAST - 1
   16503 };
   16504 
   16505 /**
   16506  * enum qca_wlan_vendor_attr_tdls_disc_rsp_ext - Attributes used by
   16507  * %QCA_NL80211_VENDOR_SUBCMD_TDLS_DISC_RSP_EXT vendor command.
   16508  *
   16509  * @QCA_WLAN_VENDOR_ATTR_TDLS_DISC_RSP_EXT_TX_LINK: u8 attribute.
   16510  * Indicates the MLO link id on which the TDLS discovery response
   16511  * frame is to be transmitted.
   16512  */
   16513 enum qca_wlan_vendor_attr_tdls_disc_rsp_ext {
   16514 	QCA_WLAN_VENDOR_ATTR_TDLS_DISC_RSP_EXT_INVALID = 0,
   16515 	QCA_WLAN_VENDOR_ATTR_TDLS_DISC_RSP_EXT_TX_LINK = 1,
   16516 
   16517 	/* Keep last */
   16518 	QCA_WLAN_VENDOR_ATTR_TDLS_DISC_RSP_EXT_AFTER_LAST,
   16519 	QCA_WLAN_VENDOR_ATTR_TDLS_DISC_RSP_EXT_MAX =
   16520 	QCA_WLAN_VENDOR_ATTR_TDLS_DISC_RSP_EXT_AFTER_LAST - 1,
   16521 };
   16522 
   16523 /**
   16524  * enum qca_wlan_vendor_tdls_state - Represents the possible TDLS states.
   16525  *
   16526  * @QCA_WLAN_VENDOR_TDLS_STATE_DISABLED: TDLS is not enabled, default status
   16527  * for all stations.
   16528  *
   16529  * @QCA_WLAN_VENDOR_TDLS_STATE_ENABLED: TDLS is enabled, but not yet tried to
   16530  * establish the session.
   16531  *
   16532  * @QCA_WLAN_VENDOR_TDLS_STATE_ESTABLISHED: Direct link TDLS session is
   16533  * established.
   16534  *
   16535  * @QCA_WLAN_VENDOR_TDLS_STATE_ESTABLISHED_OFF_CHANNEL: Direct link TDLS
   16536  * session is established using MCC.
   16537  *
   16538  * @QCA_WLAN_VENDOR_TDLS_STATE_DROPPED: Direct link TDLS session was
   16539  * established, but is temporarily dropped currently.
   16540  *
   16541  * @QCA_WLAN_VENDOR_TDLS_STATE_FAILED: TDLS session is failed to establish.
   16542  */
   16543 enum qca_wlan_vendor_tdls_state {
   16544 	QCA_WLAN_VENDOR_TDLS_STATE_DISABLED = 1,
   16545 	QCA_WLAN_VENDOR_TDLS_STATE_ENABLED = 2,
   16546 	QCA_WLAN_VENDOR_TDLS_STATE_ESTABLISHED = 3,
   16547 	QCA_WLAN_VENDOR_TDLS_STATE_ESTABLISHED_OFF_CHANNEL = 4,
   16548 	QCA_WLAN_VENDOR_TDLS_STATE_DROPPED = 5,
   16549 	QCA_WLAN_VENDOR_TDLS_STATE_FAILED = 6,
   16550 };
   16551 
   16552 /**
   16553  * enum qca_wlan_vendor_tdls_reason - Represents the possible TDLS reasons.
   16554  *
   16555  * @QCA_WLAN_TDLS_REASON_SUCCESS: TDLS session is successfully established.
   16556  *
   16557  * @QCA_WLAN_TDLS_REASON_UNSPECIFIED: Unspecified reason.
   16558  *
   16559  * @QCA_WLAN_TDLS_REASON_NOT_SUPPORTED: TDLS is not supported.
   16560  *
   16561  * @QCA_WLAN_TDLS_REASON_UNSUPPORTED_BAND: The specified band is not supported.
   16562  *
   16563  * @QCA_WLAN_TDLS_REASON_NOT_BENEFICIAL: Packets going through AP is better
   16564  * than through direct link.
   16565  *
   16566  * @QCA_WLAN_TDLS_REASON_DROPPED_BY_REMOTE: Peer station doesn't want the TDLS
   16567  * session anymore.
   16568  */
   16569 
   16570 enum qca_wlan_vendor_tdls_reason {
   16571 	QCA_WLAN_TDLS_REASON_SUCCESS = 0,
   16572 	QCA_WLAN_TDLS_REASON_UNSPECIFIED = -1,
   16573 	QCA_WLAN_TDLS_REASON_NOT_SUPPORTED = -2,
   16574 	QCA_WLAN_TDLS_REASON_UNSUPPORTED_BAND = -3,
   16575 	QCA_WLAN_TDLS_REASON_NOT_BENEFICIAL = -4,
   16576 	QCA_WLAN_TDLS_REASON_DROPPED_BY_REMOTE = -5,
   16577 };
   16578 
   16579 /**
   16580  * enum qca_wlan_vendor_attr_tdls_enable - Attributes used by
   16581  * %QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE vendor command.
   16582  *
   16583  * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR: 6-byte MAC address of the peer
   16584  * station to enable the TDLS session. Optional attribute. The driver sends the
   16585  * TDLS session result as an asynchronous response using the command
   16586  * %QCA_NL80211_VENDOR_SUBCMD_TDLS_STATE when this peer MAC is provided in
   16587  * %QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE command.
   16588  *
   16589  * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_CHANNEL: u32 attribute. Indicates the
   16590  * channel on which the TDLS session to be established. Required only when
   16591  * %QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR is present.
   16592  *
   16593  * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_GLOBAL_OPERATING_CLASS: u32 attribute.
   16594  * Indicates the global operating class of the TDLS session to be established.
   16595  * Required only when %QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR is present.
   16596  *
   16597  * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX_LATENCY_MS: u32 attribute. Indicates
   16598  * the maximum latency of the WLAN packets to be transmitted/received in
   16599  * milliseconds on TDLS session. Required only when
   16600  * %QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR is present.
   16601  *
   16602  * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MIN_BANDWIDTH_KBPS: u32 attribute.
   16603  * Indicates the minimum bandwidth to be used to establish the TDLS session
   16604  * in kbps. Required only when %QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR is
   16605  * present.
   16606  */
   16607 enum qca_wlan_vendor_attr_tdls_enable {
   16608 	QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_INVALID = 0,
   16609 	QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR = 1,
   16610 	QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_CHANNEL = 2,
   16611 	QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_GLOBAL_OPERATING_CLASS = 3,
   16612 	QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX_LATENCY_MS = 4,
   16613 	QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MIN_BANDWIDTH_KBPS = 5,
   16614 
   16615 	/* keep last */
   16616 	QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_AFTER_LAST,
   16617 	QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX =
   16618 	QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_AFTER_LAST - 1,
   16619 };
   16620 
   16621 /**
   16622  * enum qca_wlan_vendor_attr_tdls_disable - Attributes used by
   16623  * %QCA_NL80211_VENDOR_SUBCMD_TDLS_DISABLE vendor command.
   16624  *
   16625  * @QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAC_ADDR: 6-byte MAC address of the peer
   16626  * station to disable the TDLS session. Optional attribute.
   16627  */
   16628 enum qca_wlan_vendor_attr_tdls_disable {
   16629 	QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_INVALID = 0,
   16630 	QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAC_ADDR = 1,
   16631 
   16632 	/* keep last */
   16633 	QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_AFTER_LAST,
   16634 	QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAX =
   16635 	QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_AFTER_LAST - 1,
   16636 };
   16637 
   16638 /**
   16639  * enum qca_wlan_vendor_attr_tdls_get_status - Attributes used by
   16640  * %QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS vendor command.
   16641  *
   16642  * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR: 6-byte MAC address of the
   16643  * peer station. Optional attribute. Used in
   16644  * %QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS request and response.
   16645  *
   16646  * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_STATE: u32 attribute. Indicates the
   16647  * TDLS session state with the peer specified in
   16648  * %QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR. Uses the values from
   16649  * enum qca_wlan_vendor_tdls_state. Used in
   16650  * %QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS response.
   16651  *
   16652  * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_REASON: s32 attribute. Indicates the
   16653  * reason for the TDLS session state indicated in
   16654  * %QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_STATE. Uses the values from enum
   16655  * qca_wlan_vendor_tdls_reason. Used in
   16656  * %QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS response.
   16657  *
   16658  * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_CHANNEL: u32 attribute. Indicates the
   16659  * channel of the TDLS session established with
   16660  * %QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR. Used in
   16661  * %QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS response.
   16662  *
   16663  * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_GLOBAL_OPERATING_CLASS: u32 attribute.
   16664  * Indicates the global operating class of the TDLS session established with
   16665  * %QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR. Used in
   16666  * %QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS response.
   16667  *
   16668  * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_NUM_SESSIONS: u32 attribute. Indicates
   16669  * the current number of active TDLS sessions. This is indicated in the response
   16670  * when %QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS is requested with
   16671  * %NL80211_ATTR_VENDOR_DATA as an empty nested attribute.
   16672  *
   16673  * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_AVAILABLE: Flag attribute. Indicates
   16674  * whether the driver can initiate new TDLS session. This is indicated in the
   16675  * response when %QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS is requested with
   16676  * %NL80211_ATTR_VENDOR_DATA as an empty nested attribute.
   16677  */
   16678 enum qca_wlan_vendor_attr_tdls_get_status {
   16679 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_INVALID = 0,
   16680 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR = 1,
   16681 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_STATE = 2,
   16682 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_REASON = 3,
   16683 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_CHANNEL = 4,
   16684 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_GLOBAL_OPERATING_CLASS = 5,
   16685 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_NUM_SESSIONS = 6,
   16686 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_AVAILABLE = 7,
   16687 
   16688 	/* keep last */
   16689 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_AFTER_LAST,
   16690 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAX =
   16691 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_AFTER_LAST - 1,
   16692 };
   16693 
   16694 /**
   16695  * enum qca_wlan_vendor_attr_tdls_state - Attributes used by
   16696  * %QCA_NL80211_VENDOR_SUBCMD_TDLS_STATE vendor command.
   16697  *
   16698  * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAC_ADDR: 6-byte MAC address of the
   16699  * peer station. Required attribute.
   16700  *
   16701  * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_CURRENT_STATE: u32 attribute. Indicates
   16702  * the current TDLS state. Required attribute. Uses the values from
   16703  * enum qca_wlan_vendor_tdls_state.
   16704  *
   16705  * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_REASON: s32 attribute. Indicates the
   16706  * reason of the current TDLS session state. Required attribute. Uses the values
   16707  * from enum qca_wlan_vendor_tdls_reason.
   16708  *
   16709  * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_CHANNEL: u32 attribute. Indicates the
   16710  * TDLS session channel. Required attribute.
   16711  *
   16712  * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_GLOBAL_OPERATING_CLASS: u32 attribute.
   16713  * Indicates the TDLS session global operating class. Required attribute.
   16714  */
   16715 enum qca_wlan_vendor_attr_tdls_state {
   16716 	QCA_WLAN_VENDOR_ATTR_TDLS_STATE_INVALID = 0,
   16717 	QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAC_ADDR = 1,
   16718 	QCA_WLAN_VENDOR_ATTR_TDLS_STATE_NEW_STATE = 2,
   16719 	QCA_WLAN_VENDOR_ATTR_TDLS_STATE_REASON = 3,
   16720 	QCA_WLAN_VENDOR_ATTR_TDLS_STATE_CHANNEL = 4,
   16721 	QCA_WLAN_VENDOR_ATTR_TDLS_STATE_GLOBAL_OPERATING_CLASS = 5,
   16722 
   16723 	/* keep last */
   16724 	QCA_WLAN_VENDOR_ATTR_TDLS_STATE_AFTER_LAST,
   16725 	QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAX =
   16726 	QCA_WLAN_VENDOR_ATTR_TDLS_STATE_AFTER_LAST - 1,
   16727 };
   16728 
   16729 /*
   16730  * enum qca_wlan_vendor_opm_mode - Modes supported by
   16731  * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPTIMIZED_POWER_MANAGEMENT vendor attribute.
   16732  *
   16733  * @QCA_WLAN_VENDOR_OPM_MODE_DISABLE: OPM Disabled
   16734  * @QCA_WLAN_VENDOR_OPM_MODE_ENABLE: OPM Enabled
   16735  * @QCA_WLAN_VENDOR_OPM_MODE_USER_DEFINED: User defined mode which allows user
   16736  *	to configure power save inactivity timeout and speculative wake up
   16737  *	interval through %QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_ITO and
   16738  *	%QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_SPEC_WAKE_INTERVAL attributes.
   16739  */
   16740 
   16741 enum qca_wlan_vendor_opm_mode {
   16742 	QCA_WLAN_VENDOR_OPM_MODE_DISABLE = 0,
   16743 	QCA_WLAN_VENDOR_OPM_MODE_ENABLE = 1,
   16744 	QCA_WLAN_VENDOR_OPM_MODE_USER_DEFINED = 2,
   16745 };
   16746 
   16747 /*
   16748  * enum qca_wlan_vendor_tx_latency_type - Represents the possible latency
   16749  * types.
   16750  *
   16751  * @QCA_WLAN_VENDOR_TX_LATENCY_TYPE_DRIVER: Per MSDU latency
   16752  * from: An MSDU is presented to the driver
   16753  * to: the MSDU is queued into TCL SRNG
   16754  *
   16755  * @QCA_WLAN_VENDOR_TX_LATENCY_TYPE_RING: Per MSDU latency
   16756  * from: the MSDU is queued into TCL SRNG
   16757  * to: the MSDU is released by the driver
   16758  *
   16759  * @QCA_WLAN_VENDOR_TX_LATENCY_TYPE_HW: Per MSDU latency
   16760  * from: the MSDU is presented to the hardware
   16761  * to: the MSDU is released by the hardware
   16762  *
   16763  * @QCA_WLAN_VENDOR_TX_LATENCY_TYPE_CCA: Per PPDU latency
   16764  * The time spent on Clear Channel Assessment, the maximum value is 50000 (us)
   16765  * from: A PPDU is presented to the hardware LMAC
   16766  * to: over-the-air transmission is started for the PPDU
   16767  */
   16768 enum qca_wlan_vendor_tx_latency_type {
   16769 	QCA_WLAN_VENDOR_TX_LATENCY_TYPE_DRIVER = 0,
   16770 	QCA_WLAN_VENDOR_TX_LATENCY_TYPE_RING = 1,
   16771 	QCA_WLAN_VENDOR_TX_LATENCY_TYPE_HW = 2,
   16772 	QCA_WLAN_VENDOR_TX_LATENCY_TYPE_CCA = 3,
   16773 };
   16774 
   16775 /**
   16776  * enum qca_wlan_vendor_attr_tx_latency_bucket - Definition of attributes
   16777  * used inside nested attributes
   16778  * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKETS and
   16779  * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_STAT_BUCKETS.
   16780  *
   16781  * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_TYPE: u8 attribute.
   16782  * Indicates the latency type.
   16783  * See enum qca_wlan_vendor_tx_latency_type for the supported types.
   16784  *
   16785  * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_GRANULARITY: u32 attribute.
   16786  * Indicates the granularity (in microseconds) of the distribution for the
   16787  * type (specified by %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_TYPE), the value
   16788  * must be positive.
   16789  * If %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_TYPE is
   16790  * %QCA_WLAN_VENDOR_TX_LATENCY_TYPE_CCA, the value must be an integer multiple
   16791  * of 1000, and the maximum allowed value is 15000 (us).
   16792  *
   16793  * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_AVERAGE: u32 attribute.
   16794  * Indicates the average of the latency (in microseconds) for the type
   16795  * (specified by %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_TYPE) within a cycle.
   16796  * If there is no transmitted MSDUs/MPDUs during a cycle, this average is 0;
   16797  * otherwise, it represents the quotient of <accumulated latency of the
   16798  * transmitted MSDUs/MPDUs in a cycle> divided by <the number of the transmitted
   16799  * MSDUs/MPDUs in a cycle>.
   16800  *
   16801  * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_DISTRIBUTION:
   16802  * Array of u32, 4 elements in total, represents the latency distribution for
   16803  * the type (specified by %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_TYPE).
   16804  * Each element holds the count of MSDUs/PPDUs (according to the latency type)
   16805  * within a range:
   16806  * element[0]: latency >= 0 && latency < granularity
   16807  * element[1]: latency >= granularity && latency < granularity * 2
   16808  * element[2]: latency >= granularity * 2 && latency < granularity * 3
   16809  * element[3]: latency >= granularity * 3
   16810  */
   16811 enum qca_wlan_vendor_attr_tx_latency_bucket {
   16812 	QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_INVALID = 0,
   16813 	QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_TYPE = 1,
   16814 	QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_GRANULARITY = 2,
   16815 	QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_AVERAGE = 3,
   16816 	QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_DISTRIBUTION = 4,
   16817 
   16818 	/* keep last */
   16819 	QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_AFTER_LAST,
   16820 	QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_MAX =
   16821 	QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_AFTER_LAST - 1,
   16822 };
   16823 
   16824 /**
   16825  * enum qca_wlan_vendor_attr_tx_latency_link - Definition of attributes
   16826  * used inside nested attribute %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINKS.
   16827  *
   16828  * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_MAC_REMOTE: 6-byte MAC address.
   16829  * Indicates link MAC address of the remote peer. For example, when running
   16830  * in station mode, it's the BSSID of the link; while when running in AP
   16831  * mode, it's the link MAC address of the remote station.
   16832  *
   16833  * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_STAT_BUCKETS:
   16834  * Array of nested attribute.
   16835  * Represents the transmit latency statistics for the link specified by
   16836  * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_MAC_REMOTE.
   16837  * Each entry represents the statistics for one of the types defined in
   16838  * enum qca_wlan_vendor_tx_latency_type.
   16839  * Each defined type has and must have one entry.
   16840  * See enum qca_wlan_vendor_attr_tx_latency_bucket for nested attributes.
   16841  */
   16842 enum qca_wlan_vendor_attr_tx_latency_link {
   16843 	QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_INVALID = 0,
   16844 	QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_MAC_REMOTE = 1,
   16845 	QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_STAT_BUCKETS = 2,
   16846 
   16847 	/* keep last */
   16848 	QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_AFTER_LAST,
   16849 	QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_MAX =
   16850 	QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_AFTER_LAST - 1,
   16851 };
   16852 
   16853 /**
   16854  * enum qca_wlan_vendor_tx_latency_action - Represents the possible actions
   16855  * for %QCA_NL80211_VENDOR_SUBCMD_TX_LATENCY.
   16856  *
   16857  * @QCA_WLAN_VENDOR_TX_LATENCY_ACTION_DISABLE:
   16858  * Disable transmit latency monitoring.
   16859  *
   16860  * @QCA_WLAN_VENDOR_TX_LATENCY_ACTION_ENABLE:
   16861  * Enable transmit latency monitoring.
   16862  *
   16863  * @QCA_WLAN_VENDOR_TX_LATENCY_ACTION_GET:
   16864  * Get transmit latency statistics of the last cycle (period is specified by
   16865  * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_PERIOD).
   16866  */
   16867 enum qca_wlan_vendor_tx_latency_action {
   16868 	QCA_WLAN_VENDOR_TX_LATENCY_ACTION_DISABLE = 0,
   16869 	QCA_WLAN_VENDOR_TX_LATENCY_ACTION_ENABLE = 1,
   16870 	QCA_WLAN_VENDOR_TX_LATENCY_ACTION_GET = 2,
   16871 };
   16872 
   16873 /**
   16874  * enum qca_wlan_vendor_attr_tx_latency - Definition of attributes used by
   16875  * %QCA_NL80211_VENDOR_SUBCMD_TX_LATENCY to configure, retrieve, and report
   16876  * per-link transmit latency statistics.
   16877  *
   16878  * There are 6 uses of %QCA_NL80211_VENDOR_SUBCMD_TX_LATENCY:
   16879  * 1) used as a command to enable the feature
   16880  * Precondition(s):
   16881  *	%QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION is
   16882  *	%QCA_WLAN_VENDOR_TX_LATENCY_ACTION_ENABLE
   16883  * Mandatory attribute(s):
   16884  *	%QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION,
   16885  *	%QCA_WLAN_VENDOR_ATTR_TX_LATENCY_PERIOD,
   16886  *	%QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKETS with nested attributes
   16887  *	%QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_TYPE,
   16888  *	%QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_GRANULARITY.
   16889  * Notes:
   16890  *	The driver will monitor the transmit latency for the active links
   16891  *	and save the statistics for each cycle (period is set by
   16892  *	%QCA_WLAN_VENDOR_ATTR_TX_LATENCY_PERIOD) when the feature is enabled.
   16893  *	Set flag %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_PERIODIC_REPORT if periodical
   16894  *	report is required.
   16895  *
   16896  * 2) used as a command to disable the feature
   16897  * Precondition(s):
   16898  *	%QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION is
   16899  *	%QCA_WLAN_VENDOR_TX_LATENCY_ACTION_DISABLE
   16900  * Mandatory attribute(s):
   16901  *	%QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION
   16902  *
   16903  * 3) used as a command to retrieve the statistics for all the active links on
   16904  *    the requested interface
   16905  * Precondition(s):
   16906  *	%QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION is
   16907  *	QCA_WLAN_VENDOR_TX_LATENCY_ACTION_GET and
   16908  *	%QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINKS is NOT present.
   16909  * Mandatory attribute(s):
   16910  *	%QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION
   16911  * Notes:
   16912  *	The driver returns failure directly if the feature is not enabled or
   16913  *	there is no active link.
   16914  *	The driver returns the statistics of the last cycle in the case of
   16915  *	success.
   16916  *
   16917  * 4) used as a command to retrieve the statistics for the specified links
   16918  * Precondition(s):
   16919  *	%QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION is
   16920  *	QCA_WLAN_VENDOR_TX_LATENCY_ACTION_GET and
   16921  *	%QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINKS is present.
   16922  * Mandatory attribute(s):
   16923  *	%QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION,
   16924  *	%QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINKS, with nested attribute
   16925  *	%QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_MAC_REMOTE.
   16926  * Notes:
   16927  *	The driver returns failure directly if the feature is not enabled or
   16928  *	any of the links (specified by %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINKS)
   16929  *	does not exist or is not in active state.
   16930  *
   16931  * 5) used as a command response for #3 or #4
   16932  * Precondition(s):
   16933  *	Userspace issues command #3 or #4, and the driver gets corresponding
   16934  *	statistics successfully.
   16935  * Mandatory attribute(s):
   16936  *	%QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINKS, with nested attributes
   16937  *	%QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_MAC_REMOTE,
   16938  *	%QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_STAT_BUCKETS with nested
   16939  *	attributes %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_TYPE,
   16940  *	%QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_GRANULARITY,
   16941  *	%QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_AVERAGE and
   16942  *	%QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_DISTRIBUTION.
   16943  *
   16944  * 6) used as an asynchronous event to report the statistics periodically
   16945  * Precondition(s):
   16946  *	Userspace set flag %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_PERIODIC_REPORT in
   16947  *	#1.
   16948  *	One or more links are in active state.
   16949  * Mandatory attribute(s):
   16950  *	%QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINKS, with nested attributes
   16951  *	%QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_MAC_REMOTE,
   16952  *	%QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_STAT_BUCKETS with nested
   16953  *	attributes %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_TYPE,
   16954  *	%QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_GRANULARITY,
   16955  *	%QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_AVERAGE and
   16956  *	%QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_DISTRIBUTION.
   16957  *
   16958  * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_INVALID: Invalid attribute
   16959  *
   16960  * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION: u32 attribute.
   16961  * Action to take in this vendor command.
   16962  * See enum qca_wlan_vendor_tx_latency_action for supported actions.
   16963  *
   16964  * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_PERIODIC_REPORT: Flag attribute.
   16965  * Enable (flag attribute present) - The driver needs to report transmit latency
   16966  * statistics at the end of each statistical period.
   16967  * Disable (flag attribute not present) - The driver doesn't need to report
   16968  * transmit latency statistics periodically.
   16969  *
   16970  * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_PERIOD: u32 attribute.
   16971  * Indicates statistical period for transmit latency in terms of milliseconds,
   16972  * the minimal allowed value is 100 and the maximum allowed value is 60000.
   16973  *
   16974  * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKETS: Array of nested attribute.
   16975  * Each entry represents the latency buckets configuration for one of the types
   16976  * defined in enum qca_wlan_vendor_tx_latency_type.
   16977  * Each defined type has and must have one entry.
   16978  * See enum qca_wlan_vendor_attr_tx_latency_bucket for the list of
   16979  * supported attributes.
   16980  *
   16981  * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINKS: Array of nested attribute.
   16982  * Information of the links, each entry represents for one link.
   16983  * See enum qca_wlan_vendor_attr_tx_latency_link for the list of
   16984  * supported attributes for each entry.
   16985  */
   16986 enum qca_wlan_vendor_attr_tx_latency {
   16987 	QCA_WLAN_VENDOR_ATTR_TX_LATENCY_INVALID = 0,
   16988 	QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION = 1,
   16989 	QCA_WLAN_VENDOR_ATTR_TX_LATENCY_PERIODIC_REPORT = 2,
   16990 	QCA_WLAN_VENDOR_ATTR_TX_LATENCY_PERIOD = 3,
   16991 	QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKETS = 4,
   16992 	QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINKS = 5,
   16993 
   16994 	/* keep last */
   16995 	QCA_WLAN_VENDOR_ATTR_TX_LATENCY_AFTER_LAST,
   16996 	QCA_WLAN_VENDOR_ATTR_TX_LATENCY_MAX =
   16997 	QCA_WLAN_VENDOR_ATTR_TX_LATENCY_AFTER_LAST - 1,
   16998 };
   16999 
   17000 /**
   17001  * enum qca_chan_width_update_type - Represents the possible values for
   17002  * %QCA_WLAN_VENDOR_ATTR_CONFIG_CHAN_WIDTH_UPDATE_TYPE.
   17003  *
   17004  * @QCA_CHAN_WIDTH_UPDATE_TYPE_TX_RX: The maximum allowed bandwidth change is
   17005  * applicable for both Tx and Rx paths. The driver shall conduct OMI operation
   17006  * as defined in 26.9 (Operating mode indication) or OMN operation as defined in
   17007  * 11.40 (Notification of operating mode changes) in IEEE P802.11-REVme/D2.0
   17008  * with AP to indicate the change in the maximum allowed operating bandwidth.
   17009  *
   17010  * @QCA_CHAN_WIDTH_UPDATE_TYPE_TX_ONLY: Limit the change in maximum allowed
   17011  * bandwidth only to Tx path. In this case the driver doesn't need to conduct
   17012  * OMI/OMN operation since %QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_WIDTH is
   17013  * expected to be less than the current connection maximum negotiated bandwidth.
   17014  * For example: Negotiated maximum bandwidth is 160 MHz and the new maximum
   17015  * bandwidth configured is 80 MHz, now the driver limits the maximum bandwidth
   17016  * to 80 MHz only in the Tx path.
   17017  *
   17018  * @QCA_CHAN_WIDTH_UPDATE_TYPE_TX_RX_EXT: This is similar to
   17019  * %QCA_CHAN_WIDTH_UPDATE_TYPE_TX_RX but the driver doesn't change current
   17020  * phymode bandwidth to avoid interoperability issues with APs which don't
   17021  * handle the maximum bandwidth change indication correctly.
   17022  * For example: Negotiated maximum bandwidth is 40 MHz and the new maximum
   17023  * bandwidth configured is 20 MHz, now the driver indicates the change in
   17024  * maximum allowed bandwidth to the AP and limits the bandwidth to 20 MHz in the
   17025  * Tx path but keeps the phymode bandwidth as 40 MHz. This will avoid
   17026  * interoperability issues with APs which still use 40 MHz for sending the
   17027  * frames though it received maximum allowed bandwidth indication as 20 MHz
   17028  * from the STA.
   17029  */
   17030 enum qca_chan_width_update_type {
   17031 	QCA_CHAN_WIDTH_UPDATE_TYPE_TX_RX = 0,
   17032 	QCA_CHAN_WIDTH_UPDATE_TYPE_TX_ONLY = 1,
   17033 	QCA_CHAN_WIDTH_UPDATE_TYPE_TX_RX_EXT = 2,
   17034 };
   17035 
   17036 /**
   17037  * enum qca_wlan_vendor_attr_tpc_pwr_level - Definition of attributes
   17038  * used inside nested attribute %QCA_WLAN_VENDOR_ATTR_TPC_PWR_LEVEL.
   17039  *
   17040  * @QCA_WLAN_VENDOR_ATTR_TPC_PWR_LEVEL_FREQUENCY: u32 channel center
   17041  * frequency (MHz): If PSD power, carries one 20 MHz sub-channel center
   17042  * frequency. If non PSD power, carries either 20 MHz bandwidth's center
   17043  * channel frequency or 40 MHz bandwidth's center channel frequency
   17044  * (or 80/160 MHz bandwidth's center channel frequency).
   17045  *
   17046  * @QCA_WLAN_VENDOR_ATTR_TPC_PWR_LEVEL_TX_POWER: s8 transmit power limit (dBm).
   17047  * If PSD power, carries PSD power value of the
   17048  * QCA_WLAN_VENDOR_ATTR_TPC_PWR_LEVEL_FREQUENCY mentioned sub-channel.
   17049  * If non PSD power, carries EIRP power value of bandwidth mentioned
   17050  * by QCA_WLAN_VENDOR_ATTR_TPC_PWR_LEVEL_FREQUENCY center frequency.
   17051  */
   17052 enum qca_wlan_vendor_attr_tpc_pwr_level {
   17053 	QCA_WLAN_VENDOR_ATTR_TPC_PWR_LEVEL_INVALID = 0,
   17054 	QCA_WLAN_VENDOR_ATTR_TPC_PWR_LEVEL_FREQUENCY = 1,
   17055 	QCA_WLAN_VENDOR_ATTR_TPC_PWR_LEVEL_TX_POWER = 2,
   17056 
   17057 	/* keep last */
   17058 	QCA_WLAN_VENDOR_ATTR_TPC_PWR_LEVEL_AFTER_LAST,
   17059 	QCA_WLAN_VENDOR_ATTR_TPC_PWR_LEVEL_MAX =
   17060 	QCA_WLAN_VENDOR_ATTR_TPC_PWR_LEVEL_AFTER_LAST - 1,
   17061 };
   17062 
   17063 /**
   17064  * enum qca_wlan_vendor_tpc - Definition of link attributes
   17065  * used inside nested attribute %QCA_WLAN_VENDOR_ATTR_TPC_LINKS.
   17066  *
   17067  * @QCA_WLAN_VENDOR_ATTR_TPC_BSSID: 6-bytes AP BSSID.
   17068  * For MLO STA, AP BSSID indicates the AP's link address.
   17069  *
   17070  * @QCA_WLAN_VENDOR_ATTR_TPC_PSD_POWER: PSD power flag
   17071  * Indicates using PSD power mode if this flag is present.
   17072  *
   17073  * @QCA_WLAN_VENDOR_ATTR_TPC_EIRP_POWER: s8 Regulatory EIRP power
   17074  * value in dBm
   17075  *
   17076  * @QCA_WLAN_VENDOR_ATTR_TPC_POWER_TYPE_6GHZ: u8 power type of 6 GHz
   17077  * AP, refer to Table E-12-Regulatory Info subfield encoding in
   17078  * IEEE P802.11-REVme/D4.0. Only present if link is connected to 6 GHz AP.
   17079  *
   17080  * @QCA_WLAN_VENDOR_ATTR_TPC_AP_CONSTRAINT_POWER: u8 Local Power Constraint
   17081  * (dBm) advertised by AP in Power Constraint element, refer to
   17082  * IEEE Std 802.11-2020, 9.4.2.13 Power Constraint element.
   17083  *
   17084  * @QCA_WLAN_VENDOR_ATTR_TPC_PWR_LEVEL: A nested attribute containing
   17085  * attributes defined by enum qca_wlan_vendor_attr_tpc_pwr_level.
   17086  * If PSD power, each power level describes each 20 MHz subchannel PSD
   17087  * power value. If non PSD power, each power level describes each supported
   17088  * bandwidth's EIRP power value (up to Max bandwidth of AP operating on),
   17089  * each level attribute contains corresponding bandwidth's center channel
   17090  * frequency and its EIRP power value.
   17091  */
   17092 enum qca_wlan_vendor_attr_tpc {
   17093 	QCA_WLAN_VENDOR_ATTR_TPC_INVALID = 0,
   17094 	QCA_WLAN_VENDOR_ATTR_TPC_BSSID = 1,
   17095 	QCA_WLAN_VENDOR_ATTR_TPC_PSD_POWER = 2,
   17096 	QCA_WLAN_VENDOR_ATTR_TPC_EIRP_POWER = 3,
   17097 	QCA_WLAN_VENDOR_ATTR_TPC_POWER_TYPE_6GHZ = 4,
   17098 	QCA_WLAN_VENDOR_ATTR_TPC_AP_CONSTRAINT_POWER = 5,
   17099 	QCA_WLAN_VENDOR_ATTR_TPC_PWR_LEVEL = 6,
   17100 
   17101 	/* keep last */
   17102 	QCA_WLAN_VENDOR_ATTR_TPC_AFTER_LAST,
   17103 	QCA_WLAN_VENDOR_ATTR_TPC_MAX =
   17104 	QCA_WLAN_VENDOR_ATTR_TPC_AFTER_LAST - 1,
   17105 };
   17106 
   17107 /**
   17108  * enum qca_wlan_vendor_attr_tpc_links - Definition of attributes
   17109  * for %QCA_NL80211_VENDOR_SUBCMD_REGULATORY_TPC_INFO subcommand
   17110  *
   17111  * @QCA_WLAN_VENDOR_ATTR_TPC_LINKS: A nested attribute containing
   17112  * per-link TPC information of all the active links of MLO STA.
   17113  * For non MLO STA, only one link TPC information will be returned
   17114  * for connected AP in this nested attribute.
   17115  * The attributes used inside this nested attributes are defined
   17116  * in enum qca_wlan_vendor_attr_tpc.
   17117  */
   17118 enum qca_wlan_vendor_attr_tpc_links {
   17119 	QCA_WLAN_VENDOR_ATTR_TPC_LINKS_INVALID = 0,
   17120 	QCA_WLAN_VENDOR_ATTR_TPC_LINKS = 1,
   17121 
   17122 	/* keep last */
   17123 	QCA_WLAN_VENDOR_ATTR_TPC_LINKS_AFTER_LAST,
   17124 	QCA_WLAN_VENDOR_ATTR_TPC_LINKS_MAX =
   17125 	QCA_WLAN_VENDOR_ATTR_TPC_AFTER_LAST - 1,
   17126 };
   17127 
   17128 /**
   17129  * enum qca_wlan_vendor_attr_fw_page_fault_report - Used by the vendor
   17130  * command %QCA_NL80211_VENDOR_SUBCMD_FW_PAGE_FAULT_REPORT.
   17131  *
   17132  * @QCA_WLAN_VENDOR_ATTR_FW_PAGE_FAULT_REPORT_DATA: The binary blob data
   17133  * associated with the firmware page fault that is expected to contain the
   17134  * required dump to analyze frequent page faults.
   17135  * NLA_BINARY attribute, the maximum size is 1024 bytes.
   17136  */
   17137 enum qca_wlan_vendor_attr_fw_page_fault_report {
   17138 	QCA_WLAN_VENDOR_ATTR_FW_PAGE_FAULT_REPORT_INVALID = 0,
   17139 	QCA_WLAN_VENDOR_ATTR_FW_PAGE_FAULT_REPORT_DATA = 1,
   17140 
   17141 	/* keep last */
   17142 	QCA_WLAN_VENDOR_ATTR_FW_PAGE_FAULT_REPORT_LAST,
   17143 	QCA_WLAN_VENDOR_ATTR_FW_PAGE_FAULT_REPORT_MAX =
   17144 	QCA_WLAN_VENDOR_ATTR_FW_PAGE_FAULT_REPORT_LAST - 1,
   17145 };
   17146 
   17147 /**
   17148  * enum qca_wlan_btm_support: BTM support configuration
   17149  *
   17150  * @QCA_WLAN_BTM_SUPPORT_DEFAULT: Restore default BTM support policy. The driver
   17151  * follows the BSS Transition bit in the Extended Capabilities element from the
   17152  * connect request IEs with the default BTM support policy.
   17153  *
   17154  * @QCA_WLAN_BTM_SUPPORT_DISABLE: Disable BTM support for the subsequent
   17155  * (re)association attempts. The driver shall restore the default BTM support
   17156  * policy during the first disconnection after successful association. When this
   17157  * configuration is enabled, the driver shall overwrite the BSS Transition bit
   17158  * as zero in the Extended Capabilities element while sending (Re)Association
   17159  * Request frames. Also, the driver shall drop the BTM frames from userspace and
   17160  * the connected AP when this configuration is enabled.
   17161  */
   17162 enum qca_wlan_btm_support {
   17163 	QCA_WLAN_BTM_SUPPORT_DEFAULT = 0,
   17164 	QCA_WLAN_BTM_SUPPORT_DISABLE = 1,
   17165 };
   17166 
   17167 /**
   17168  * enum qca_wlan_vendor_data_rate_type - Represents the possible values for
   17169  * attribute %QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_RATE_TYPE.
   17170  *
   17171  * @QCA_WLAN_VENDOR_DATA_RATE_TYPE_LEGACY: Data rate type is a legacy rate code
   17172  * used in OFDM/CCK.
   17173  *
   17174  * @QCA_WLAN_VENDOR_DATA_RATE_TYPE_MCS: Data rate type is an MCS index.
   17175  *
   17176  */
   17177 enum qca_wlan_vendor_data_rate_type {
   17178 	QCA_WLAN_VENDOR_DATA_RATE_TYPE_LEGACY = 0,
   17179 	QCA_WLAN_VENDOR_DATA_RATE_TYPE_MCS = 1,
   17180 };
   17181 
   17182 /**
   17183  * enum qca_wlan_vendor_attr_adjust_tx_power_rate - Definition
   17184  * of data rate related attributes which is used inside nested attribute
   17185  * %QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_CHAIN_RATE_CONFIG.
   17186  *
   17187  * @QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_RATE_TYPE: u8 data rate type.
   17188  * For this attribute, valid values are enumerated in enum
   17189  * %qca_wlan_vendor_data_rate_type.
   17190  *
   17191  * @QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_RATE_VALUE: u8 value.
   17192  * This attribute value is interpreted according to the value of attribute
   17193  * %QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_RATE_TYPE. For legacy config
   17194  * type, this attribute value is defined in the units of 0.5 Mbps.
   17195  * For non legacy config type, this attribute carries the MCS index number.
   17196  *
   17197  * @QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_RATE_POWER_VALUE: u8 value in dBm.
   17198  * Usually the target computes a final transmit power that is the maximum
   17199  * power level that doesn't exceed the limits enforced by various sources
   17200  * like chip-specific conformance test limits (CTL), Specific Absorption
   17201  * Rate (SAR), Transmit Power Control (TPC), wiphy-specific limits, STA-specific
   17202  * limits, channel avoidance limits, Automated Frequency Coordination (AFC),
   17203  * and others. In some cases it may be desirable to use a power level that is
   17204  * lower than the maximum power level allowed by all of these limits, so this
   17205  * attribute provides an additional limit that can be used to reduce the
   17206  * transmit power level.
   17207  *
   17208  */
   17209 enum qca_wlan_vendor_attr_adjust_tx_power_rate {
   17210 	QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_RATE_INVALID = 0,
   17211 	QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_RATE_TYPE = 1,
   17212 	QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_RATE_VALUE = 2,
   17213 	QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_RATE_POWER_VALUE = 3,
   17214 
   17215 	/* keep last */
   17216 	QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_CONFIG_AFTER_LAST,
   17217 	QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_CONFIG_MAX =
   17218 	QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_CONFIG_AFTER_LAST - 1,
   17219 };
   17220 
   17221 /**
   17222  * enum qca_wlan_vendor_attr_adjust_tx_power_chain_config - Definition
   17223  * of chain related attributes which is used inside nested attribute
   17224  * %QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_BAND_CHAIN_CONFIG.
   17225  *
   17226  * @QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_CHAIN_INDEX: u8 value.
   17227  * Represents a particular chain for which transmit power adjustment needed.
   17228  *
   17229  * @QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_CHAIN_RATE_CONFIG: A nested
   17230  * attribute containing data rate related information to adjust transmit
   17231  * power. The attributes used inside this nested attributes are defined in
   17232  * enum qca_wlan_vendor_attr_adjust_tx_power_rate.
   17233  */
   17234 enum qca_wlan_vendor_attr_adjust_tx_power_chain_config {
   17235 	QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_CHAIN_INVALID = 0,
   17236 	QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_CHAIN_INDEX = 1,
   17237 	QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_CHAIN_RATE_CONFIG = 2,
   17238 
   17239 	/* keep last */
   17240 	QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_CHAIN_AFTER_LAST,
   17241 	QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_CHAIN_MAX =
   17242 	QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_CHAIN_AFTER_LAST - 1,
   17243 };
   17244 
   17245 /**
   17246  * enum qca_wlan_vendor_attr_adjust_tx_power_band_config - Definition
   17247  * of band related attributes which is used inside nested attribute
   17248  * %QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_BAND_CONFIG.
   17249  *
   17250  * @QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_BAND_INDEX: u8 value to
   17251  * indicate band for which configuration applies. Valid values are enumerated
   17252  * in enum %nl80211_band.
   17253  *
   17254  * @QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_BAND_CHAIN_CONFIG: A nested
   17255  * attribute containing per chain related information to adjust transmit
   17256  * power. The attributes used inside this nested attribute are defined in
   17257  * enum qca_wlan_vendor_attr_adjust_tx_power_chain_config.
   17258  *
   17259  */
   17260 enum qca_wlan_vendor_attr_adjust_tx_power_band_config {
   17261 	QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_BAND_INVALID = 0,
   17262 	QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_BAND_INDEX = 1,
   17263 	QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_BAND_CHAIN_CONFIG = 2,
   17264 
   17265 	/* keep last */
   17266 	QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_BAND_AFTER_LAST,
   17267 	QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_BAND_MAX =
   17268 	QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_BAND_AFTER_LAST - 1,
   17269 };
   17270 
   17271 /**
   17272  * enum qca_wlan_vendor_attr_adjust_tx_power - Definition of attributes
   17273  * for %QCA_NL80211_VENDOR_SUBCMD_ADJUST_TX_POWER subcommand.
   17274  *
   17275  * @QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_BAND_CONFIG: A nested attribute
   17276  * containing per band related information to adjust transmit power.
   17277  * The attributes used inside this nested attributes are defined in
   17278  * enum qca_wlan_vendor_attr_adjust_tx_power_band_config.
   17279  */
   17280 enum qca_wlan_vendor_attr_adjust_tx_power {
   17281 	QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_INVALID = 0,
   17282 	QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_BAND_CONFIG = 1,
   17283 
   17284 	/* keep last */
   17285 	QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_AFTER_LAST,
   17286 	QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_MAX =
   17287 	QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_AFTER_LAST - 1,
   17288 };
   17289 
   17290 /**
   17291  * enum qca_wlan_vendor_spectral_data_transport_mode - Attribute
   17292  * values for QCA_WLAN_VENDOR_ATTR_SPECTRAL_DATA_TRANSPORT_MODE.
   17293  *
   17294  * @QCA_WLAN_VENDOR_SPECTRAL_DATA_TRANSPORT_NETLINK: Use netlink to
   17295  * send spectral data to userspace applications.
   17296  * @QCA_WLAN_VENDOR_SPECTRAL_DATA_TRANSPORT_RELAY: Use relay interface
   17297  * to send spectral data to userspace applications.
   17298  */
   17299 enum qca_wlan_vendor_spectral_data_transport_mode {
   17300 	QCA_WLAN_VENDOR_SPECTRAL_DATA_TRANSPORT_NETLINK = 0,
   17301 	QCA_WLAN_VENDOR_SPECTRAL_DATA_TRANSPORT_RELAY = 1,
   17302 };
   17303 
   17304 /* enum qca_wlan_vendor_spectral_scan_complete_status - Attribute
   17305  * values for QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COMPLETE_STATUS to
   17306  * indicate the completion status for a spectral scan.
   17307  *
   17308  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_COMPLETE_STATUS_SUCCESSFUL:
   17309  * Indicates a successful completion of the scan.
   17310  *
   17311  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_COMPLETE_STATUS_TIMEOUT: Indicates
   17312  * a timeout has occured while processing the spectral reports.
   17313  */
   17314 enum qca_wlan_vendor_spectral_scan_complete_status {
   17315 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_COMPLETE_STATUS_SUCCESSFUL = 0,
   17316 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_COMPLETE_STATUS_TIMEOUT = 1,
   17317 };
   17318 
   17319 /* enum qca_wlan_vendor_attr_spectral_scan_complete - Definition of
   17320  * attributes for @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_COMPLETE
   17321  * to indicate scan status and samples received from hardware.
   17322  *
   17323  * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COMPLETE_INVALID: Invalid attribute
   17324  *
   17325  * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COMPLETE_STATUS: u32 attribute.
   17326  * Indicates completion status, either the scan is successful or a timeout
   17327  * is issued by the driver.
   17328  * See enum qca_wlan_vendor_spectral_scan_complete_status.
   17329  *
   17330  * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COMPLETE_RECEIVED_SAMPLES: u32
   17331  * attribute. Number of spectral samples received after the scan has started.
   17332  */
   17333 enum qca_wlan_vendor_attr_spectral_scan_complete {
   17334 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COMPLETE_INVALID = 0,
   17335 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COMPLETE_STATUS = 1,
   17336 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COMPLETE_RECEIVED_SAMPLES = 2,
   17337 
   17338 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COMPLETE_AFTER_LAST,
   17339 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COMPLETE_MAX =
   17340 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COMPLETE_AFTER_LAST - 1,
   17341 };
   17342 
   17343 /**
   17344  * enum qca_wlan_vendor_async_get_station_attr - Attribute values for
   17345  * %QCA_NL80211_VENDOR_SUBCMD_ASYNC_GET_STATION command.
   17346  *
   17347  * @QCA_WLAN_VENDOR_ATTR_ASYNC_GET_STATION_CONFIG: 8-bit unsigned value to
   17348  * configure the driver to enable/disable reporting
   17349  * %QCA_NL80211_VENDOR_SUBCMD_ASYNC_GET_STATION events. 1-Enable, 0-Disable.
   17350  * This is required in a command.
   17351  *
   17352  * @QCA_WLAN_VENDOR_ATTR_ASYNC_GET_STATION_RESPONSE: Nested attribute. This is
   17353  * required in %QCA_NL80211_VENDOR_SUBCMD_ASYNC_GET_STATION event.
   17354  * This attribute is nested with the station MAC address in %NL80211_ATTR_MAC
   17355  * and the station information in %NL80211_ATTR_STA_INFO nested attribute, see
   17356  * enum nl80211_sta_info.
   17357  */
   17358 enum qca_wlan_vendor_async_get_station_attr {
   17359 	QCA_WLAN_VENDOR_ATTR_ASYNC_GET_STATION_INVALID = 0,
   17360 	QCA_WLAN_VENDOR_ATTR_ASYNC_GET_STATION_CONFIG = 1,
   17361 	QCA_WLAN_VENDOR_ATTR_ASYNC_GET_STATION_RESPONSE = 2,
   17362 
   17363 	QCA_WLAN_VENDOR_ATTR_ASYNC_GET_STATION_AFTER_LAST,
   17364 	QCA_WLAN_VENDOR_ATTR_ASYNC_GET_STATION_MAX =
   17365 	QCA_WLAN_VENDOR_ATTR_ASYNC_GET_STATION_AFTER_LAST - 1,
   17366 };
   17367 
   17368 /* enum qca_wlan_vendor_ap_suspend_state - Attribute values for
   17369  * QCA_WLAN_VENDOR_ATTR_AP_SUSPEND_STATE.
   17370  *
   17371  * @QCA_WLAN_VENDOR_AP_SUSPEND_STATE_DISABLE: Disable suspend state. When used
   17372  * with a command, the driver resumes AP with the same configuration that was
   17373  * applied earlier and starts all TX/RX operations. When used in an event,
   17374  * indicates the AP interface resumed.
   17375  *
   17376  * @QCA_WLAN_VENDOR_AP_SUSPEND_STATE_ENABLE: Enable suspend state. In this
   17377  * mode, all associated STAs are disconnected and TX/RX is stopped. While an AP
   17378  * is in this state, it allows only %QCA_WLAN_VENDOR_AP_SUSPEND_STATE_DISABLE
   17379  * or AP stop/teardown operations. When used in an event, indicates the AP
   17380  * interface suspended.
   17381  */
   17382 enum qca_wlan_vendor_ap_suspend_state {
   17383 	QCA_WLAN_VENDOR_AP_SUSPEND_STATE_DISABLE = 0,
   17384 	QCA_WLAN_VENDOR_AP_SUSPEND_STATE_ENABLE = 1,
   17385 };
   17386 
   17387 /* enum qca_wlan_vendor_attr_ap_suspend - Definition of attributes for
   17388  * @QCA_NL80211_VENDOR_SUBCMD_AP_SUSPEND to configure/notify the suspend state.
   17389  *
   17390  * @QCA_WLAN_VENDOR_ATTR_AP_SUSPEND_STATE: u8 attribute to configure/notify
   17391  * suspend state defined in enum qca_wlan_vendor_ap_suspend_state.
   17392  */
   17393 enum qca_wlan_vendor_attr_ap_suspend {
   17394 	QCA_WLAN_VENDOR_ATTR_AP_SUSPEND_INVALID = 0,
   17395 	QCA_WLAN_VENDOR_ATTR_AP_SUSPEND_STATE = 1,
   17396 
   17397 	QCA_WLAN_VENDOR_ATTR_AP_SUSPEND_AFTER_LAST,
   17398 	QCA_WLAN_VENDOR_ATTR_AP_SUSPEND_MAX =
   17399 	QCA_WLAN_VENDOR_ATTR_AP_SUSPEND_AFTER_LAST - 1,
   17400 };
   17401 
   17402 /**
   17403  * enum qca_traffic_type - Traffic types into which the flows can be classified.
   17404  * @QCA_TRAFFIC_TYPE_STREAMING: Traffic type is streaming
   17405  * @QCA_TRAFFIC_TYPE_GAMING: Traffic type is gaming
   17406  * @QCA_TRAFFIC_TYPE_VOICE_CALL: Traffic type is a voice call
   17407  * @QCA_TRAFFIC_TYPE_VIDEO_CALL: Traffic type is a video call
   17408  * @QCA_TRAFFIC_TYPE_SCREEN_SHARE: Traffic type is screen share
   17409  * @QCA_TRAFFIC_TYPE_UNKNOWN: Traffic type is unknown
   17410  * @QCA_TRAFFIC_TYPE_INVALID: Invalid traffic type
   17411  */
   17412 enum qca_traffic_type {
   17413 	QCA_TRAFFIC_TYPE_STREAMING = 0,
   17414 	QCA_TRAFFIC_TYPE_GAMING = 1,
   17415 	QCA_TRAFFIC_TYPE_VOICE_CALL = 2,
   17416 	QCA_TRAFFIC_TYPE_VIDEO_CALL = 3,
   17417 	QCA_TRAFFIC_TYPE_SCREEN_SHARE = 4,
   17418 	QCA_TRAFFIC_TYPE_UNKNOWN = 5,
   17419 	QCA_TRAFFIC_TYPE_INVALID = 6,
   17420 };
   17421 
   17422 /**
   17423  * enum qca_wlan_vendor_flow_tuple_proto - Definition of the values to specify
   17424  * the flow tuple protocol in QCA_WLAN_VENDOR_ATTR_FLOW_TUPLE_PROTOCOL.
   17425  *
   17426  * @QCA_WLAN_VENDOR_FLOW_TUPLE_PROTO_UDP: UDP flow
   17427  *
   17428  * @QCA_WLAN_VENDOR_FLOW_TUPLE_PROTO_TCP: TCP flow
   17429  */
   17430 enum qca_wlan_vendor_flow_tuple_proto {
   17431 	QCA_WLAN_VENDOR_FLOW_TUPLE_PROTO_UDP = 0,
   17432 	QCA_WLAN_VENDOR_FLOW_TUPLE_PROTO_TCP = 1,
   17433 };
   17434 
   17435 /**
   17436  * enum qca_wlan_vendor_attr_flow_tuple - Definition of attributes to specify a
   17437  * flow tuple.
   17438  *
   17439  * @QCA_WLAN_VENDOR_ATTR_FLOW_TUPLE_IPV4_SRC_ADDR: Optional u32 attribute
   17440  * indicates the source IPv4 address (in network byte order).
   17441  *
   17442  * @QCA_WLAN_VENDOR_ATTR_FLOW_TUPLE_IPV4_DST_ADDR: Optional u32 attribute
   17443  * indicates the destination IPv4 address (in network byte order).
   17444  *
   17445  * @QCA_WLAN_VENDOR_ATTR_FLOW_TUPLE_IPV6_SRC_ADDR: Optional NLA_BINARY
   17446  * attribute of 16 bytes length that indicates the source IPv6 address
   17447  * (in network byte order) for a flow.
   17448  *
   17449  * @QCA_WLAN_VENDOR_ATTR_FLOW_TUPLE_IPV6_DST_ADDR: Optional NLA_BINARY
   17450  * attribute of 16 bytes length that indicates the destination IPv6 address
   17451  * (in network byte order) for a flow.
   17452  *
   17453  * @QCA_WLAN_VENDOR_ATTR_FLOW_TUPLE_SRC_PORT: Mandatory u16 attribute indicates
   17454  * the TCP/UDP source port.
   17455  *
   17456  * @QCA_WLAN_VENDOR_ATTR_FLOW_TUPLE_DST_PORT: Mandatory u16 attribute indicates
   17457  * the TCP/UDP destination port.
   17458  *
   17459  * @QCA_WLAN_VENDOR_ATTR_FLOW_TUPLE_PROTOCOL: Mandatory u8 attribute indicates
   17460  * the flow protocol. Uses the enum qca_wlan_vendor_flow_tuple_proto.
   17461  *
   17462  * IPv4 flows have to specify @QCA_WLAN_VENDOR_ATTR_FLOW_TUPLE_IPV4_SRC_ADDR
   17463  * and @QCA_WLAN_VENDOR_ATTR_FLOW_TUPLE_IPV4_DST_ADDR.
   17464  * IPv6 flows have to specify @QCA_WLAN_VENDOR_ATTR_FLOW_TUPLE_IPV6_SRC_ADDR
   17465  * and @QCA_WLAN_VENDOR_ATTR_FLOW_TUPLE_IPV6_DST_ADDR.
   17466  */
   17467 enum qca_wlan_vendor_attr_flow_tuple {
   17468 	QCA_WLAN_VENDOR_ATTR_FLOW_TUPLE_INVALID = 0,
   17469 	QCA_WLAN_VENDOR_ATTR_FLOW_TUPLE_IPV4_SRC_ADDR = 1,
   17470 	QCA_WLAN_VENDOR_ATTR_FLOW_TUPLE_IPV4_DST_ADDR = 2,
   17471 	QCA_WLAN_VENDOR_ATTR_FLOW_TUPLE_IPV6_SRC_ADDR = 3,
   17472 	QCA_WLAN_VENDOR_ATTR_FLOW_TUPLE_IPV6_DST_ADDR = 4,
   17473 	QCA_WLAN_VENDOR_ATTR_FLOW_TUPLE_SRC_PORT = 5,
   17474 	QCA_WLAN_VENDOR_ATTR_FLOW_TUPLE_DST_PORT = 6,
   17475 	QCA_WLAN_VENDOR_ATTR_FLOW_TUPLE_PROTOCOL = 7,
   17476 
   17477 	/* keep last */
   17478 	QCA_WLAN_VENDOR_ATTR_FLOW_TUPLE_LAST,
   17479 	QCA_WLAN_VENDOR_ATTR_FLOW_TUPLE_MAX =
   17480 	QCA_WLAN_VENDOR_ATTR_FLOW_TUPLE_LAST - 1,
   17481 };
   17482 
   17483 /**
   17484  * enum qca_wlan_vendor_attr_txrx_stats - Definition of attributes to specify
   17485  * TX/RX sample for one window.
   17486  *
   17487  * @QCA_WLAN_VENDOR_ATTR_TXRX_STATS_NUM_BYTES: Mandatory u64 attribute indicates
   17488  * the total number of uplink/downlink bytes within the sampling window.
   17489  *
   17490  * @QCA_WLAN_VENDOR_ATTR_TXRX_STATS_NUM_PKTS: Mandatory u32 attribute indicates
   17491  * the total number of packets (uplink/downlink) within the sampling window.
   17492  *
   17493  * @QCA_WLAN_VENDOR_ATTR_TXRX_STATS_PKT_SIZE_MIN: Mandatory u32 attribute
   17494  * indicates the minimum uplink/downlink packet size (in bytes) during the
   17495  * sampling window.
   17496  *
   17497  * @QCA_WLAN_VENDOR_ATTR_TXRX_STATS_PKT_SIZE_MAX: Mandatory u32 attribute
   17498  * indicates the maximum uplink/downlink packet size (in bytes) during the
   17499  * sampling window.
   17500  *
   17501  * @QCA_WLAN_VENDOR_ATTR_TXRX_STATS_PKT_IAT_MIN: Mandatory u64 attribute
   17502  * indicates the minimum uplink/downlink packet IAT (inter-arrival time)
   17503  * in microseconds, during the sampling window.
   17504  *
   17505  * @QCA_WLAN_VENDOR_ATTR_TXRX_STATS_PKT_IAT_MAX: Mandatory u64 attribute
   17506  * indicates the maximum uplink/downlink packet IAT (inter-arrival time)
   17507  * in microseconds, during the sampling window.
   17508  *
   17509  * @QCA_WLAN_VENDOR_ATTR_TXRX_STATS_PKT_IAT_SUM: Mandatory u64 attribute
   17510  * indicates the sum of all the values of uplink/downlink packet IAT
   17511  * (inter-arrival time) in microseconds, during the sampling window.
   17512  * This attribute is used to calculate the mean packet (inter-arrival time)
   17513  * during the sampling window.
   17514  */
   17515 enum qca_wlan_vendor_attr_txrx_stats {
   17516 	QCA_WLAN_VENDOR_ATTR_TXRX_STATS_INVALID = 0,
   17517 	QCA_WLAN_VENDOR_ATTR_TXRX_STATS_NUM_BYTES = 1,
   17518 	QCA_WLAN_VENDOR_ATTR_TXRX_STATS_NUM_PKTS = 2,
   17519 	QCA_WLAN_VENDOR_ATTR_TXRX_STATS_PKT_SIZE_MIN = 3,
   17520 	QCA_WLAN_VENDOR_ATTR_TXRX_STATS_PKT_SIZE_MAX = 4,
   17521 	QCA_WLAN_VENDOR_ATTR_TXRX_STATS_PKT_IAT_MIN = 5,
   17522 	QCA_WLAN_VENDOR_ATTR_TXRX_STATS_PKT_IAT_MAX = 6,
   17523 	QCA_WLAN_VENDOR_ATTR_TXRX_STATS_PKT_IAT_SUM = 7,
   17524 
   17525 	/* keep last */
   17526 	QCA_WLAN_VENDOR_ATTR_TXRX_STATS_LAST,
   17527 	QCA_WLAN_VENDOR_ATTR_TXRX_STATS_MAX =
   17528 	QCA_WLAN_VENDOR_ATTR_TXRX_STATS_LAST - 1,
   17529 };
   17530 
   17531 /**
   17532  * enum qca_wlan_vendor_attr_txrx_samples_windows - Definition of attributes
   17533  * to specify the TX/RX statistics collected in a sampling window.
   17534  *
   17535  * @QCA_WLAN_VENDOR_ATTR_TXRX_SAMPLES_WINDOWS_WINDOW_SIZE: Mandatory u32
   17536  * attribute indicates window size for packet TX/RX sampling (in milliseconds).
   17537  *
   17538  * @QCA_WLAN_VENDOR_ATTR_TXRX_SAMPLES_WINDOWS_UL_STATS: Mandatory nested
   17539  * attribute containing the uplink TX/RX packet statistics for a flow. Uses the
   17540  * enum qca_wlan_vendor_attr_txrx_stats.
   17541  *
   17542  * @QCA_WLAN_VENDOR_ATTR_TXRX_SAMPLES_WINDOWS_DL_STATS: Mandatory nested
   17543  * attribute containing the downlink TX/RX packet statistics for a flow. Uses
   17544  * the enum qca_wlan_vendor_attr_txrx_stats.
   17545  */
   17546 enum qca_wlan_vendor_attr_txrx_samples_windows {
   17547 	QCA_WLAN_VENDOR_ATTR_TXRX_SAMPLES_WINDOWS_INVALID = 0,
   17548 	QCA_WLAN_VENDOR_ATTR_TXRX_SAMPLES_WINDOWS_WINDOW_SIZE = 1,
   17549 	QCA_WLAN_VENDOR_ATTR_TXRX_SAMPLES_WINDOWS_UL_STATS = 2,
   17550 	QCA_WLAN_VENDOR_ATTR_TXRX_SAMPLES_WINDOWS_DL_STATS = 3,
   17551 
   17552 	/* keep last */
   17553 	QCA_WLAN_VENDOR_ATTR_TXRX_SAMPLES_WINDOWS_LAST,
   17554 	QCA_WLAN_VENDOR_ATTR_TXRX_SAMPLES_WINDOWS_MAX =
   17555 	QCA_WLAN_VENDOR_ATTR_TXRX_SAMPLES_WINDOWS_LAST - 1,
   17556 };
   17557 
   17558 /**
   17559  * enum qca_wlan_vendor_attr_txrx_samples - Definition of attributes to specify
   17560  * a TX/RX sample.
   17561  *
   17562  * @QCA_WLAN_VENDOR_ATTR_TXRX_SAMPLES_WINDOWS: Mandatory array of nested
   17563  * attributes that indicates the TX/RX samples in multiple overlapping windows.
   17564  * This uses the attributes defined by
   17565  * enum qca_wlan_vendor_attr_txrx_samples_windows.
   17566  */
   17567 enum qca_wlan_vendor_attr_txrx_samples {
   17568 	QCA_WLAN_VENDOR_ATTR_TXRX_SAMPLES_INVALID = 0,
   17569 	QCA_WLAN_VENDOR_ATTR_TXRX_SAMPLES_WINDOWS = 1,
   17570 
   17571 	/* keep last */
   17572 	QCA_WLAN_VENDOR_ATTR_TXRX_SAMPLES_LAST,
   17573 	QCA_WLAN_VENDOR_ATTR_TXRX_SAMPLES_MAX =
   17574 	QCA_WLAN_VENDOR_ATTR_TXRX_SAMPLES_LAST - 1,
   17575 };
   17576 
   17577 /**
   17578  * enum qca_wlan_vendor_attr_burst_stats - Definition of attribute to specify
   17579  * burst statistics.
   17580  *
   17581  * @QCA_WLAN_VENDOR_ATTR_BURST_STATS_BURST_DURATION_MIN: Mandatory u32 attribute
   17582  * indicates minimum burst duration (in milliseconds) during the sampling
   17583  * window.
   17584  *
   17585  * @QCA_WLAN_VENDOR_ATTR_BURST_STATS_BURST_DURATION_MAX: Mandatory u32 attribute
   17586  * indicates maximum burst duration (in milliseconds) during the sampling
   17587  * window.
   17588  *
   17589  * @QCA_WLAN_VENDOR_ATTR_BURST_STATS_BURST_DURATION_SUM: Mandatory u64 attribute
   17590  * indicates the sum of all the values of burst duration (in milliseconds)
   17591  * during the sampling window. This attribute is used to calculate the mean
   17592  * burst duration (in milliseconds) during the sampling window.
   17593  *
   17594  * @QCA_WLAN_VENDOR_ATTR_BURST_STATS_BURST_SIZE_MIN: Mandatory u64 attribute
   17595  * indicates minimum burst size (in bytes) during the sampling window.
   17596  *
   17597  * @QCA_WLAN_VENDOR_ATTR_BURST_STATS_BURST_SIZE_MAX: Mandatory u64 attribute
   17598  * indicates maximum burst size (in bytes) during the sampling window.
   17599  *
   17600  * @QCA_WLAN_VENDOR_ATTR_BURST_STATS_BURST_SIZE_SUM: Mandatory u64 attribute
   17601  * indicates the sum of all the values of burst size (in bytes) during the
   17602  * sampling window. This attribute is used to calculate the mean burst size
   17603  * (in bytes) during the sampling window.
   17604  *
   17605  * @QCA_WLAN_VENDOR_ATTR_BURST_STATS_BURST_COUNT: Mandatory u32 attribute
   17606  * indicates the number of bursts during the sampling window.
   17607  */
   17608 enum qca_wlan_vendor_attr_burst_stats {
   17609 	QCA_WLAN_VENDOR_ATTR_BURST_STATS_INVALID = 0,
   17610 	QCA_WLAN_VENDOR_ATTR_BURST_STATS_BURST_DURATION_MIN = 1,
   17611 	QCA_WLAN_VENDOR_ATTR_BURST_STATS_BURST_DURATION_MAX = 2,
   17612 	QCA_WLAN_VENDOR_ATTR_BURST_STATS_BURST_DURATION_SUM = 3,
   17613 	QCA_WLAN_VENDOR_ATTR_BURST_STATS_BURST_SIZE_MIN = 4,
   17614 	QCA_WLAN_VENDOR_ATTR_BURST_STATS_BURST_SIZE_MAX = 5,
   17615 	QCA_WLAN_VENDOR_ATTR_BURST_STATS_BURST_SIZE_SUM = 6,
   17616 	QCA_WLAN_VENDOR_ATTR_BURST_STATS_BURST_COUNT = 7,
   17617 
   17618 	/* keep last */
   17619 	QCA_WLAN_VENDOR_ATTR_BURST_STATS_LAST,
   17620 	QCA_WLAN_VENDOR_ATTR_BURST_STATS_MAX =
   17621 	QCA_WLAN_VENDOR_ATTR_BURST_STATS_LAST - 1,
   17622 };
   17623 
   17624 /**
   17625  * enum qca_wlan_vendor_attr_burst_sample - Definition of attributes to specify
   17626  * a burst sample.
   17627  *
   17628  * @QCA_WLAN_VENDOR_ATTR_BURST_SAMPLES_TXRX_STATS: Mandatory nested attribute
   17629  * indicates the uplink and downlink packet statistics collected in a
   17630  * sampling window, containing attributes defined in
   17631  * enum qca_wlan_vendor_attr_txrx_samples_windows.
   17632  *
   17633  * @QCA_WLAN_VENDOR_ATTR_BURST_SAMPLES_UL_BURST_STATS: Optional nested attribute
   17634  * indicates the uplink burst stats, containing attributes defined in
   17635  * enum qca_wlan_vendor_attr_burst_stats.
   17636  *
   17637  * @QCA_WLAN_VENDOR_ATTR_BURST_SAMPLES_DL_BURST_STATS: Optional nested attribute
   17638  * indicates the downlink burst stats, containing attributes defined in
   17639  * enum qca_wlan_vendor_attr_burst_stats.
   17640  */
   17641 enum qca_wlan_vendor_attr_burst_sample {
   17642 	QCA_WLAN_VENDOR_ATTR_BURST_SAMPLES_INVALID = 0,
   17643 	QCA_WLAN_VENDOR_ATTR_BURST_SAMPLES_TXRX_STATS = 1,
   17644 	QCA_WLAN_VENDOR_ATTR_BURST_SAMPLES_UL_BURST_STATS = 2,
   17645 	QCA_WLAN_VENDOR_ATTR_BURST_SAMPLES_DL_BURST_STATS = 3,
   17646 
   17647 	/* keep last */
   17648 	QCA_WLAN_VENDOR_ATTR_BURST_SAMPLES_LAST,
   17649 	QCA_WLAN_VENDOR_ATTR_BURST_SAMPLES_MAX =
   17650 	QCA_WLAN_VENDOR_ATTR_BURST_SAMPLES_LAST - 1,
   17651 };
   17652 
   17653 /**
   17654  * enum qca_wlan_vendor_attr_flow_stats - Definition of attribute used by
   17655  * %QCA_NL80211_VENDOR_SUBCMD_CLASSIFIED_FLOW_REPORT and
   17656  * %QCA_NL80211_VENDOR_SUBCMD_FLOW_STATS.
   17657  *
   17658  * Presence of one of the attributes
   17659  * @QCA_WLAN_VENDOR_ATTR_FLOW_STATS_TXRX_SAMPLES and
   17660  * @QCA_WLAN_VENDOR_ATTR_FLOW_STATS_BURST_SAMPLES is mandatory.
   17661  *
   17662  * @QCA_WLAN_VENDOR_ATTR_FLOW_STATS_FLOW_TUPLE: Mandatory nested attribute
   17663  * containing the flow tuple of the flow for which the statistics are being
   17664  * reported.
   17665  * Uses the attributes defined by enum qca_wlan_vendor_attr_flow_tuple.
   17666  *
   17667  * @QCA_WLAN_VENDOR_ATTR_FLOW_STATS_TRAFFIC_TYPE: Optional u8 attribute
   17668  * indicates the traffic type classified for this flow tuple. Uses the
   17669  * enum qca_traffic_type values.
   17670  * This attribute is mandatory for the command
   17671  * @QCA_NL80211_VENDOR_SUBCMD_CLASSIFIED_FLOW_REPORT.
   17672  *
   17673  * @QCA_WLAN_VENDOR_ATTR_FLOW_STATS_TXRX_SAMPLES: Optional nested attribute
   17674  * containing nested array of TX/RX samples defined in
   17675  * enum qca_wlan_vendor_attr_txrx_samples.
   17676  *
   17677  * @QCA_WLAN_VENDOR_ATTR_FLOW_STATS_BURST_SAMPLES: Optional nested attribute
   17678  * indicates the packet burst statistics for a flow. Uses attributes defined by
   17679  * enum qca_wlan_vendor_attr_burst_sample.
   17680  */
   17681 enum qca_wlan_vendor_attr_flow_stats {
   17682 	QCA_WLAN_VENDOR_ATTR_FLOW_STATS_INVALID = 0,
   17683 	QCA_WLAN_VENDOR_ATTR_FLOW_STATS_FLOW_TUPLE = 1,
   17684 	QCA_WLAN_VENDOR_ATTR_FLOW_STATS_TRAFFIC_TYPE = 2,
   17685 	QCA_WLAN_VENDOR_ATTR_FLOW_STATS_TXRX_SAMPLES = 3,
   17686 	QCA_WLAN_VENDOR_ATTR_FLOW_STATS_BURST_SAMPLES = 4,
   17687 
   17688 	/* keep last */
   17689 	QCA_WLAN_VENDOR_ATTR_FLOW_STATS_LAST,
   17690 	QCA_WLAN_VENDOR_ATTR_FLOW_STATS_MAX =
   17691 	QCA_WLAN_VENDOR_ATTR_FLOW_STATS_LAST - 1,
   17692 };
   17693 
   17694 /**
   17695  * enum qca_wlan_vendor_attr_flow_classify_result - Definition of attributes to
   17696  * specify the flow classification result. This enum is used by
   17697  * @QCA_NL80211_VENDOR_SUBCMD_FLOW_CLASSIFY_RESULT.
   17698  *
   17699  * @QCA_WLAN_VENDOR_ATTR_FLOW_CLASSIFY_RESULT_FLOW_TUPLE: Mandatory nested
   17700  * attribute containing attributes defined by
   17701  * enum qca_wlan_vendor_attr_flow_tuple.
   17702  *
   17703  * @QCA_WLAN_VENDOR_ATTR_FLOW_CLASSIFY_RESULT_TRAFFIC_TYPE: Mandatory u8
   17704  * attribute indicates the traffic type learned for this flow tuple. Uses the
   17705  * enum qca_traffic_type values.
   17706  */
   17707 enum qca_wlan_vendor_attr_flow_classify_result {
   17708 	QCA_WLAN_VENDOR_ATTR_FLOW_CLASSIFY_RESULT_INVALID = 0,
   17709 	QCA_WLAN_VENDOR_ATTR_FLOW_CLASSIFY_RESULT_FLOW_TUPLE = 1,
   17710 	QCA_WLAN_VENDOR_ATTR_FLOW_CLASSIFY_RESULT_TRAFFIC_TYPE = 2,
   17711 
   17712 	/* keep last */
   17713 	QCA_WLAN_VENDOR_ATTR_FLOW_CLASSIFY_RESULT_LAST,
   17714 	QCA_WLAN_VENDOR_ATTR_FLOW_CLASSIFY_RESULT_MAX =
   17715 	QCA_WLAN_VENDOR_ATTR_FLOW_CLASSIFY_RESULT_LAST - 1,
   17716 };
   17717 
   17718 /**
   17719  * enum qca_async_stats_sub_module - The statistics type used in async
   17720  * statistics policy.
   17721  * Used by @QCA_WLAN_VENDOR_ATTR_ASYNC_STATS_POLICY_STATS_TYPE.
   17722  *
   17723  * @QCA_ASYNC_STATS_TYPE_POWERSAVE: Wi-Fi powersave statistics
   17724  *
   17725  * @QCA_ASYNC_STATS_TYPE_FLOW_STATS: Flow statistics
   17726  *
   17727  * @QCA_ASYNC_STATS_TYPE_CLASSIFIED_FLOW_STATS: Classified flow statistics
   17728  */
   17729 enum qca_async_stats_type {
   17730 	QCA_ASYNC_STATS_TYPE_POWERSAVE = 0,
   17731 	QCA_ASYNC_STATS_TYPE_FLOW_STATS = 1,
   17732 	QCA_ASYNC_STATS_TYPE_CLASSIFIED_FLOW_STATS = 2,
   17733 };
   17734 
   17735 /**
   17736  * enum qca_async_stats_action - ASYNC statistics action. Used by
   17737  * @QCA_WLAN_VENDOR_ATTR_ASYNC_STATS_POLICY_ACTION.
   17738  *
   17739  * @QCA_ASYNC_STATS_ACTION_START: Start indication for async statistics
   17740  * collection.
   17741  * @QCA_ASYNC_STATS_ACTION_STOP: Stop indication for async statistics
   17742  * collection.
   17743  */
   17744 enum qca_async_stats_action {
   17745 	QCA_ASYNC_STATS_ACTION_START = 0,
   17746 	QCA_ASYNC_STATS_ACTION_STOP = 1,
   17747 };
   17748 
   17749 /**
   17750  * enum qca_wlan_vendor_attr_async_stats_policy - Definition of attributes to
   17751  * specify the ASYNC statistics policy. This enum is used by
   17752  * @QCA_NL80211_VENDOR_SUBCMD_ASYNC_STATS_POLICY.
   17753  *
   17754  * @QCA_WLAN_VENDOR_ATTR_ASYNC_STATS_POLICY_STATS_TYPE: Mandatory u8
   17755  * attribute indicates the statistics type for which the async statistics policy
   17756  * needs to be applied by the driver. Uses the enum qca_async_stats_type values.
   17757  *
   17758  * @QCA_WLAN_VENDOR_ATTR_ASYNC_STATS_POLICY_ACTION: Mandatory u8 attribute
   17759  * indicates the action as part of this policy.
   17760  * Uses the enum qca_async_stats_action values.
   17761  *
   17762  * @QCA_WLAN_VENDOR_ATTR_ASYNC_STATS_POLICY_STATS_PERIODICITY: Optional u32
   17763  * attribute indicates the periodicity (in milliseconds) for the statistics to
   17764  * be reported. This attribute is mandatory for QCA_ASYNC_STATS_TYPE_POWERSAVE.
   17765  */
   17766 enum qca_wlan_vendor_attr_async_stats_policy {
   17767 	QCA_WLAN_VENDOR_ATTR_ASYNC_STATS_POLICY_INVALID = 0,
   17768 	QCA_WLAN_VENDOR_ATTR_ASYNC_STATS_POLICY_STATS_TYPE = 1,
   17769 	QCA_WLAN_VENDOR_ATTR_ASYNC_STATS_POLICY_ACTION = 2,
   17770 	QCA_WLAN_VENDOR_ATTR_ASYNC_STATS_POLICY_STATS_PERIODICITY = 3,
   17771 
   17772 	/* keep last */
   17773 	QCA_WLAN_VENDOR_ATTR_ASYNC_STATS_POLICY_LAST,
   17774 	QCA_WLAN_VENDOR_ATTR_ASYNC_STATS_POLICY_MAX =
   17775 	QCA_WLAN_VENDOR_ATTR_ASYNC_STATS_POLICY_LAST - 1,
   17776 };
   17777 
   17778 /**
   17779  * enum qca_wlan_vendor_attr_nss_pkt - Attributes used by
   17780  * %QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_NSS_PKT_COUNT.
   17781  *
   17782  * @QCA_WLAN_VENDOR_ATTR_NSS_PKT_NSS_VALUE: u8 attribute. This
   17783  * represents the number of spatial streams.
   17784  *
   17785  * @QCA_WLAN_VENDOR_ATTR_NSS_PKT_TX_PACKET_COUNT: u64 attribute. This
   17786  * represents the number of MSDU packets transmitted with the number of spatial
   17787  * streams specified in %QCA_WLAN_VENDOR_ATTR_NSS_PKT_NSS_VALUE.
   17788  *
   17789  * @QCA_WLAN_VENDOR_ATTR_NSS_PKT_RX_PACKET_COUNT: u64 attribute. This
   17790  * represents the number of MSDU packets received with the number of spatial
   17791  * streams specified in %QCA_WLAN_VENDOR_ATTR_NSS_PKT_NSS_VALUE.
   17792  */
   17793 enum qca_wlan_vendor_attr_nss_pkt {
   17794 	QCA_WLAN_VENDOR_ATTR_NSS_PKT_INVALID = 0,
   17795 	QCA_WLAN_VENDOR_ATTR_NSS_PKT_NSS_VALUE = 1,
   17796 	QCA_WLAN_VENDOR_ATTR_NSS_PKT_TX_PACKET_COUNT = 2,
   17797 	QCA_WLAN_VENDOR_ATTR_NSS_PKT_RX_PACKET_COUNT = 3,
   17798 
   17799 	QCA_WLAN_VENDOR_ATTR_NSS_PKT_AFTER_LAST,
   17800 	QCA_WLAN_VENDOR_ATTR_NSS_PKT_MAX =
   17801 	QCA_WLAN_VENDOR_ATTR_NSS_PKT_AFTER_LAST - 1,
   17802 };
   17803 
   17804 /**
   17805  * enum qca_wlan_intf_offload_type - Definition of available values for
   17806  * QCA_WLAN_VENDOR_ATTR_CONFIG_INTF_OFFLOAD_TYPE to specify the offload path for
   17807  * packets handled through a network device.
   17808  *
   17809  * There are three offload paths possible for handling packet forwarding between
   17810  * Ethernet and Wi-Fi network, and which path to use can be configured on a per
   17811  * netdevice level based on use case. Userspace can choose different options
   17812  * based on use cases like performance requirements, traffic control features
   17813  * and limitations provided in each option.
   17814  *
   17815  * @QCA_WLAN_VENDOR_ATTR_INTF_OFFLOAD_TYPE_NONE: No acceleration configured.
   17816  * Packets are processed through the Linux kernel networking stack.
   17817  *
   17818  * @QCA_WLAN_VENDOR_ATTR_INTF_OFFLOAD_TYPE_SFE: Packets are processed through
   17819  * the shortcut forwarding engine (SFE) to bypass the Linux networking stack
   17820  * for improved throughput performance. This option is applicable for AP, STA,
   17821  * and Mesh mode and available for all radio designs. From the performance
   17822  * aspect, this option consumes more CPU compared to the other two options.
   17823  * Linux traffic control can be further applied with this option to have more
   17824  * control on the traffic flows.
   17825  *
   17826  * @QCA_WLAN_VENDOR_ATTR_INTF_OFFLOAD_TYPE_ACTIVE_VP: Packets are processed
   17827  * through both hardware and software in this case. Packet classification is
   17828  * done by the hardware and then the packets are delivered to software along
   17829  * with classification results as meta data. Software can choose to do more
   17830  * classification/QoS based on use cases. This is applicable for AP, STA, and
   17831  * Mesh modes and this is available for all radio designs. From the performance
   17832  * aspect, this option consumes relatively less CPU compared to the SFE option
   17833  * above. Linux traffic control rules cannot be applied with this option.
   17834  *
   17835  * @QCA_WLAN_VENDOR_ATTR_INTF_OFFLOAD_TYPE_PPE_DS: Packets are processed through
   17836  * special hardware (Direct Switch) rings which can directly forward the packets
   17837  * between Ethernet hardware and Wi-Fi hardware with very little software
   17838  * involvement. This is applicable only for AP and STA modes; not applicable
   17839  * for Mesh mode. From the performance aspect, this option consumes very much
   17840  * less CPU compared to the other options. Linux traffic control rules cannot be
   17841  * applied when this option is used. This option is applicable only for
   17842  * specific radio designs. When this option is not available, the default option
   17843  * (SFE) would be configured.
   17844  */
   17845 enum qca_wlan_intf_offload_type {
   17846 	QCA_WLAN_INTF_OFFLOAD_TYPE_NONE = 0,
   17847 	QCA_WLAN_INTF_OFFLOAD_TYPE_SFE = 1,
   17848 	QCA_WLAN_INTF_OFFLOAD_TYPE_ACTIVE_VP = 2,
   17849 	QCA_WLAN_INTF_OFFLOAD_TYPE_PPE_DS = 3,
   17850 };
   17851 
   17852 #endif /* QCA_VENDOR_H */
   17853