Updated to hostap_2_6
[mech_eap.git] / libeap / src / common / qca-vendor.h
index 28985f5..adaec89 100644 (file)
@@ -89,6 +89,102 @@ enum qca_radiotap_vendor_ids {
  * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_RADAR_DETECTED: Event used by driver,
  *     which supports DFS offloading, to indicate a radar pattern has been
  *     detected. The channel is now unusable.
+ *
+ * @QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_START: Command used to
+ *     start the P2P Listen offload function in device and pass the listen
+ *     channel, period, interval, count, device types, and vendor specific
+ *     information elements to the device driver and firmware.
+ *     Uses the attributes defines in
+ *     enum qca_wlan_vendor_attr_p2p_listen_offload.
+ *
+ * @QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_STOP: Command/event used to
+ *     indicate stop request/response of the P2P Listen offload function in
+ *     device. As an event, it indicates either the feature stopped after it
+ *     was already running or feature has actually failed to start. Uses the
+ *     attributes defines in enum qca_wlan_vendor_attr_p2p_listen_offload.
+ *
+ * @QCA_NL80211_VENDOR_SUBCMD_SAP_CONDITIONAL_CHAN_SWITCH: After AP starts
+ *     beaconing, this sub command provides the driver, the frequencies on the
+ *     5 GHz band to check for any radar activity. Driver selects one channel
+ *     from this priority list provided through
+ *     @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST and starts
+ *     to check for radar activity on it. If no radar activity is detected
+ *     during the channel availability check period, driver internally switches
+ *     to the selected frequency of operation. If the frequency is zero, driver
+ *     internally selects a channel. The status of this conditional switch is
+ *     indicated through an event using the same sub command through
+ *     @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS. Attributes are
+ *     listed in qca_wlan_vendor_attr_sap_conditional_chan_switch.
+ *
+ * @QCA_NL80211_VENDOR_SUBCMD_GPIO_CONFIG_COMMAND: Set GPIO pins. This uses the
+ *     attributes defined in enum qca_wlan_gpio_attr.
+ *
+ * @QCA_NL80211_VENDOR_SUBCMD_GET_HW_CAPABILITY: Fetch hardware capabilities.
+ *     This uses @QCA_WLAN_VENDOR_ATTR_GET_HW_CAPABILITY to indicate which
+ *     capabilities are to be fetched and other
+ *     enum qca_wlan_vendor_attr_get_hw_capability attributes to return the
+ *     requested capabilities.
+ *
+ * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_EXT: Link layer statistics extension.
+ *     enum qca_wlan_vendor_attr_ll_stats_ext attributes are used with this
+ *     command and event.
+ *
+ * @QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA: Get capabilities for
+ *     indoor location features. Capabilities are reported in
+ *     QCA_WLAN_VENDOR_ATTR_LOC_CAPA.
+ *
+ * @QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION: Start an FTM
+ *     (fine timing measurement) session with one or more peers.
+ *     Specify Session cookie in QCA_WLAN_VENDOR_ATTR_FTM_SESSION_COOKIE and
+ *     peer information in QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEERS.
+ *     On success, 0 or more QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT
+ *     events will be reported, followed by
+ *     QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE event to indicate
+ *     end of session.
+ *     Refer to IEEE P802.11-REVmc/D7.0, 11.24.6
+ *
+ * @QCA_NL80211_VENDOR_SUBCMD_FTM_ABORT_SESSION: Abort a running session.
+ *     A QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE will be reported with
+ *     status code indicating session was aborted.
+ *
+ * @QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT: Event with measurement
+ *     results for one peer. Results are reported in
+ *     QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEER_RESULTS.
+ *
+ * @QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE: Event triggered when
+ *     FTM session is finished, either successfully or aborted by
+ *     request.
+ *
+ * @QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER: Configure FTM responder
+ *     mode. QCA_WLAN_VENDOR_ATTR_FTM_RESPONDER_ENABLE specifies whether
+ *     to enable or disable the responder. LCI/LCR reports can be
+ *     configured with QCA_WLAN_VENDOR_ATTR_FTM_LCI and
+ *     QCA_WLAN_VENDOR_ATTR_FTM_LCR. Can be called multiple
+ *     times to update the LCI/LCR reports.
+ *
+ * @QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS: Perform a standalone AOA (angle of
+ *     arrival) measurement with a single peer. Specify peer MAC address in
+ *     QCA_WLAN_VENDOR_ATTR_MAC_ADDR and measurement type in
+ *     QCA_WLAN_VENDOR_ATTR_AOA_TYPE. Measurement result is reported in
+ *     QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT event.
+ *
+ * @QCA_NL80211_VENDOR_SUBCMD_AOA_ABORT_MEAS: Abort an AOA measurement. Specify
+ *     peer MAC address in QCA_WLAN_VENDOR_ATTR_MAC_ADDR.
+ *
+ * @QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT: Event that reports
+ *     the AOA measurement result.
+ *     Peer MAC address reported in QCA_WLAN_VENDOR_ATTR_MAC_ADDR.
+ *     success/failure status is reported in
+ *     QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS.
+ *     Measurement data is reported in QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT.
+ *     The antenna array(s) used in the measurement are reported in
+ *     QCA_WLAN_VENDOR_ATTR_LOC_ANTENNA_ARRAY_MASK.
+ *
+ * @QCA_NL80211_VENDOR_SUBCMD_ENCRYPTION_TEST: Encrypt/decrypt the given
+ *     data as per the given parameters.
+ *
+ * @QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI: Get antenna RSSI value for a
+ *     specific chain.
  */
 enum qca_nl80211_vendor_subcmds {
        QCA_NL80211_VENDOR_SUBCMD_UNSPEC = 0,
@@ -140,7 +236,11 @@ enum qca_nl80211_vendor_subcmds {
        QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_ABORTED = 58,
        QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_NOP_FINISHED = 59,
        QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_RADAR_DETECTED = 60,
-       /* 61-90 - reserved for QCA */
+       /* 61-73 - reserved for QCA */
+       /* Wi-Fi configuration subcommands */
+       QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION = 74,
+       QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION = 75,
+       /* 76-90 - reserved for QCA */
        QCA_NL80211_VENDOR_SUBCMD_DATA_OFFLOAD = 91,
        QCA_NL80211_VENDOR_SUBCMD_OCB_SET_CONFIG = 92,
        QCA_NL80211_VENDOR_SUBCMD_OCB_SET_UTC_TIME = 93,
@@ -156,6 +256,35 @@ enum qca_nl80211_vendor_subcmds {
        QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST = 103,
        QCA_NL80211_VENDOR_SUBCMD_SET_PROBABLE_OPER_CHANNEL = 104,
        QCA_NL80211_VENDOR_SUBCMD_SETBAND = 105,
+       QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN = 106,
+       QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE = 107,
+       QCA_NL80211_VENDOR_SUBCMD_OTA_TEST = 108,
+       QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE = 109,
+       /* 110..114 - reserved for QCA */
+       QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_DECR_DB = 115,
+       /* 116..117 - reserved for QCA */
+       QCA_NL80211_VENDOR_SUBCMD_SET_SAP_CONFIG = 118,
+       QCA_NL80211_VENDOR_SUBCMD_TSF = 119,
+       QCA_NL80211_VENDOR_SUBCMD_WISA = 120,
+       /* 121 - reserved for QCA */
+       QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_START = 122,
+       QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_STOP = 123,
+       QCA_NL80211_VENDOR_SUBCMD_SAP_CONDITIONAL_CHAN_SWITCH = 124,
+       QCA_NL80211_VENDOR_SUBCMD_GPIO_CONFIG_COMMAND = 125,
+       QCA_NL80211_VENDOR_SUBCMD_GET_HW_CAPABILITY = 126,
+       QCA_NL80211_VENDOR_SUBCMD_LL_STATS_EXT = 127,
+       /* FTM/indoor location subcommands */
+       QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA = 128,
+       QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION = 129,
+       QCA_NL80211_VENDOR_SUBCMD_FTM_ABORT_SESSION = 130,
+       QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT = 131,
+       QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE = 132,
+       QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER = 133,
+       QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS = 134,
+       QCA_NL80211_VENDOR_SUBCMD_AOA_ABORT_MEAS = 135,
+       QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT = 136,
+       QCA_NL80211_VENDOR_SUBCMD_ENCRYPTION_TEST = 137,
+       QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI = 138,
 };
 
 
@@ -185,6 +314,84 @@ enum qca_wlan_vendor_attr {
        QCA_WLAN_VENDOR_ATTR_MAX_CONCURRENT_CHANNELS_5_0_BAND = 11,
        /* Unsigned 32-bit value from enum qca_set_band. */
        QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE = 12,
+       /* Dummy (NOP) attribute for 64 bit padding */
+       QCA_WLAN_VENDOR_ATTR_PAD = 13,
+       /* Unique FTM session cookie (Unsigned 64 bit). Specified in
+        * QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION. Reported in
+        * the session in QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT and
+        * QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE.
+        */
+       QCA_WLAN_VENDOR_ATTR_FTM_SESSION_COOKIE = 14,
+       /* Indoor location capabilities, returned by
+        * QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA.
+        * see enum qca_wlan_vendor_attr_loc_capa.
+        */
+       QCA_WLAN_VENDOR_ATTR_LOC_CAPA = 15,
+       /* Array of nested attributes containing information about each peer
+        * in FTM measurement session. See enum qca_wlan_vendor_attr_peer_info
+        * for supported attributes for each peer.
+        */
+       QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEERS = 16,
+       /* Array of nested attributes containing measurement results for
+        * one or more peers, reported by the
+        * QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT event.
+        * See enum qca_wlan_vendor_attr_peer_result for list of supported
+        * attributes.
+        */
+       QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEER_RESULTS = 17,
+       /* Flag attribute for enabling or disabling responder functionality. */
+       QCA_WLAN_VENDOR_ATTR_FTM_RESPONDER_ENABLE = 18,
+       /* Used in the QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
+        * command to specify the LCI report that will be sent by
+        * the responder during a measurement exchange. The format is
+        * defined in IEEE P802.11-REVmc/D7.0, 9.4.2.22.10.
+        */
+       QCA_WLAN_VENDOR_ATTR_FTM_LCI = 19,
+       /* Used in the QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
+        * command to specify the location civic report that will
+        * be sent by the responder during a measurement exchange.
+        * The format is defined in IEEE P802.11-REVmc/D7.0, 9.4.2.22.13.
+        */
+       QCA_WLAN_VENDOR_ATTR_FTM_LCR = 20,
+       /* Session/measurement completion status code,
+        * reported in QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE and
+        * QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT
+        * see enum qca_vendor_attr_loc_session_status.
+        */
+       QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS = 21,
+       /* Initial dialog token used by responder (0 if not specified),
+        * unsigned 8 bit value.
+        */
+       QCA_WLAN_VENDOR_ATTR_FTM_INITIAL_TOKEN = 22,
+       /* AOA measurement type. Requested in QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS
+        * and optionally in QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION if
+        * AOA measurements are needed as part of an FTM session.
+        * Reported by QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT. See
+        * enum qca_wlan_vendor_attr_aoa_type.
+        */
+       QCA_WLAN_VENDOR_ATTR_AOA_TYPE = 23,
+       /* A bit mask (unsigned 32 bit value) of antenna arrays used
+        * by indoor location measurements. Refers to the antenna
+        * arrays described by QCA_VENDOR_ATTR_LOC_CAPA_ANTENNA_ARRAYS.
+        */
+       QCA_WLAN_VENDOR_ATTR_LOC_ANTENNA_ARRAY_MASK = 24,
+       /* AOA measurement data. Its contents depends on the AOA measurement
+        * type and antenna array mask:
+        * QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE: array of U16 values,
+        * phase of the strongest CIR path for each antenna in the measured
+        * array(s).
+        * QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP: array of 2 U16
+        * values, phase and amplitude of the strongest CIR path for each
+        * antenna in the measured array(s).
+        */
+       QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT = 25,
+       /* Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
+        * to specify the chain number (unsigned 32 bit value) to inquire
+        * the corresponding antenna RSSI value */
+       QCA_WLAN_VENDOR_ATTR_CHAIN_INDEX = 26,
+       /* Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
+        * to report the specific antenna RSSI value (unsigned 32 bit value) */
+       QCA_WLAN_VENDOR_ATTR_CHAIN_RSSI = 27,
        /* keep last */
        QCA_WLAN_VENDOR_ATTR_AFTER_LAST,
        QCA_WLAN_VENDOR_ATTR_MAX        = QCA_WLAN_VENDOR_ATTR_AFTER_LAST - 1,
@@ -205,12 +412,50 @@ enum qca_wlan_vendor_attr_roam_auth {
        QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_KEY_REPLAY_CTR,
        QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KCK,
        QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KEK,
+       QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_SUBNET_STATUS,
        /* keep last */
        QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AFTER_LAST,
        QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_MAX =
        QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AFTER_LAST - 1
 };
 
+enum qca_wlan_vendor_attr_p2p_listen_offload {
+       QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INVALID = 0,
+       /* A 32-bit unsigned value; the P2P listen frequency (MHz); must be one
+        * of the social channels.
+        */
+       QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CHANNEL,
+       /* A 32-bit unsigned value; the P2P listen offload period (ms).
+        */
+       QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_PERIOD,
+       /* A 32-bit unsigned value; the P2P listen interval duration (ms).
+        */
+       QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INTERVAL,
+       /* A 32-bit unsigned value; number of interval times the firmware needs
+        * to run the offloaded P2P listen operation before it stops.
+        */
+       QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_COUNT,
+       /* An array of arbitrary binary data with one or more 8-byte values.
+        * The device types include both primary and secondary device types.
+        */
+       QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_DEVICE_TYPES,
+       /* An array of unsigned 8-bit characters; vendor information elements.
+        */
+       QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_VENDOR_IE,
+       /* A 32-bit unsigned value; a control flag to indicate whether listen
+        * results need to be flushed to wpa_supplicant.
+        */
+       QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CTRL_FLAG,
+       /* A 8-bit unsigned value; reason code for P2P listen offload stop
+        * event.
+        */
+       QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_STOP_REASON,
+       /* keep last */
+       QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST,
+       QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_MAX =
+       QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST - 1
+};
+
 enum qca_wlan_vendor_attr_acs_offload {
        QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_INVALID = 0,
        QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL,
@@ -247,11 +492,21 @@ enum qca_wlan_vendor_acs_hw_mode {
  *     after roaming, rather than having the user space wpa_supplicant do it.
  * @QCA_WLAN_VENDOR_FEATURE_SUPPORT_HW_MODE_ANY: Device supports automatic
  *     band selection based on channel selection results.
+ * @QCA_WLAN_VENDOR_FEATURE_OFFCHANNEL_SIMULTANEOUS: Device supports
+ *     simultaneous off-channel operations.
+ * @QCA_WLAN_VENDOR_FEATURE_P2P_LISTEN_OFFLOAD: Device supports P2P
+ *     Listen offload; a mechanism where the station's firmware takes care of
+ *     responding to incoming Probe Request frames received from other P2P
+ *     Devices whilst in Listen state, rather than having the user space
+ *     wpa_supplicant do it. Information from received P2P requests are
+ *     forwarded from firmware to host whenever the host processor wakes up.
  * @NUM_QCA_WLAN_VENDOR_FEATURES: Number of assigned feature bits
  */
 enum qca_wlan_vendor_features {
        QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD        = 0,
        QCA_WLAN_VENDOR_FEATURE_SUPPORT_HW_MODE_ANY     = 1,
+       QCA_WLAN_VENDOR_FEATURE_OFFCHANNEL_SIMULTANEOUS = 2,
+       QCA_WLAN_VENDOR_FEATURE_P2P_LISTEN_OFFLOAD      = 3,
        NUM_QCA_WLAN_VENDOR_FEATURES /* keep last */
 };
 
@@ -324,6 +579,67 @@ enum qca_set_band {
        QCA_SETBAND_2G,
 };
 
+/**
+ * enum qca_access_policy - Access control policy
+ *
+ * Access control policy is applied on the configured IE
+ * (QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE).
+ * To be set with QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY.
+ *
+ * @QCA_ACCESS_POLICY_ACCEPT_UNLESS_LISTED: Deny Wi-Fi connections which match
+ *     the specific configuration (IE) set, i.e., allow all the
+ *     connections which do not match the configuration.
+ * @QCA_ACCESS_POLICY_DENY_UNLESS_LISTED: Accept Wi-Fi connections which match
+ *     the specific configuration (IE) set, i.e., deny all the
+ *     connections which do not match the configuration.
+ */
+enum qca_access_policy {
+       QCA_ACCESS_POLICY_ACCEPT_UNLESS_LISTED,
+       QCA_ACCESS_POLICY_DENY_UNLESS_LISTED,
+};
+
+/**
+ * enum qca_vendor_attr_get_tsf: Vendor attributes for TSF capture
+ * @QCA_WLAN_VENDOR_ATTR_TSF_CMD: enum qca_tsf_operation (u32)
+ * @QCA_WLAN_VENDOR_ATTR_TSF_TIMER_VALUE: Unsigned 64 bit TSF timer value
+ * @QCA_WLAN_VENDOR_ATTR_TSF_SOC_TIMER_VALUE: Unsigned 64 bit Synchronized
+ *     SOC timer value at TSF capture
+ */
+enum qca_vendor_attr_tsf_cmd {
+       QCA_WLAN_VENDOR_ATTR_TSF_INVALID = 0,
+       QCA_WLAN_VENDOR_ATTR_TSF_CMD,
+       QCA_WLAN_VENDOR_ATTR_TSF_TIMER_VALUE,
+       QCA_WLAN_VENDOR_ATTR_TSF_SOC_TIMER_VALUE,
+       QCA_WLAN_VENDOR_ATTR_TSF_AFTER_LAST,
+       QCA_WLAN_VENDOR_ATTR_TSF_MAX =
+       QCA_WLAN_VENDOR_ATTR_TSF_AFTER_LAST - 1
+};
+
+/**
+ * enum qca_tsf_operation: TSF driver commands
+ * @QCA_TSF_CAPTURE: Initiate TSF Capture
+ * @QCA_TSF_GET: Get TSF capture value
+ * @QCA_TSF_SYNC_GET: Initiate TSF capture and return with captured value
+ */
+enum qca_tsf_cmd {
+       QCA_TSF_CAPTURE,
+       QCA_TSF_GET,
+       QCA_TSF_SYNC_GET,
+};
+
+/**
+ * enum qca_vendor_attr_wisa_cmd
+ * @QCA_WLAN_VENDOR_ATTR_WISA_MODE: WISA mode value (u32)
+ * WISA setup vendor commands
+ */
+enum qca_vendor_attr_wisa_cmd {
+       QCA_WLAN_VENDOR_ATTR_WISA_INVALID = 0,
+       QCA_WLAN_VENDOR_ATTR_WISA_MODE,
+       QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST,
+       QCA_WLAN_VENDOR_ATTR_WISA_MAX =
+       QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST - 1
+};
+
 /* IEEE 802.11 Vendor Specific elements */
 
 /**
@@ -349,9 +665,926 @@ enum qca_set_band {
  *
  *     This vendor element may be included in GO Negotiation Request, P2P
  *     Invitation Request, and Provision Discovery Request frames.
+ *
+ * @QCA_VENDOR_ELEM_HE_CAPAB: HE Capabilities element.
+ *     This element can be used for pre-standard publication testing of HE
+ *     before P802.11ax draft assigns the element ID. The payload of this
+ *     vendor specific element is defined by the latest P802.11ax draft.
+ *     Please note that the draft is still work in progress and this element
+ *     payload is subject to change.
+ *
+ * @QCA_VENDOR_ELEM_HE_OPER: HE Operation element.
+ *     This element can be used for pre-standard publication testing of HE
+ *     before P802.11ax draft assigns the element ID. The payload of this
+ *     vendor specific element is defined by the latest P802.11ax draft.
+ *     Please note that the draft is still work in progress and this element
+ *     payload is subject to change.
  */
 enum qca_vendor_element_id {
        QCA_VENDOR_ELEM_P2P_PREF_CHAN_LIST = 0,
+       QCA_VENDOR_ELEM_HE_CAPAB = 1,
+       QCA_VENDOR_ELEM_HE_OPER = 2,
+};
+
+/**
+ * enum qca_wlan_vendor_attr_scan - Specifies vendor scan attributes
+ *
+ * @QCA_WLAN_VENDOR_ATTR_SCAN_IE: IEs that should be included as part of scan
+ * @QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES: Nested unsigned 32-bit attributes
+ *     with frequencies to be scanned (in MHz)
+ * @QCA_WLAN_VENDOR_ATTR_SCAN_SSIDS: Nested attribute with SSIDs to be scanned
+ * @QCA_WLAN_VENDOR_ATTR_SCAN_SUPP_RATES: Nested array attribute of supported
+ *     rates to be included
+ * @QCA_WLAN_VENDOR_ATTR_SCAN_TX_NO_CCK_RATE: flag used to send probe requests
+ *     at non CCK rate in 2GHz band
+ * @QCA_WLAN_VENDOR_ATTR_SCAN_FLAGS: Unsigned 32-bit scan flags
+ * @QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE: Unsigned 64-bit cookie provided by the
+ *     driver for the specific scan request
+ * @QCA_WLAN_VENDOR_ATTR_SCAN_STATUS: Unsigned 8-bit status of the scan
+ *     request decoded as in enum scan_status
+ * @QCA_WLAN_VENDOR_ATTR_SCAN_MAC: 6-byte MAC address to use when randomisation
+ *     scan flag is set
+ * @QCA_WLAN_VENDOR_ATTR_SCAN_MAC_MASK: 6-byte MAC address mask to be used with
+ *     randomisation
+ */
+enum qca_wlan_vendor_attr_scan {
+       QCA_WLAN_VENDOR_ATTR_SCAN_INVALID_PARAM = 0,
+       QCA_WLAN_VENDOR_ATTR_SCAN_IE,
+       QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES,
+       QCA_WLAN_VENDOR_ATTR_SCAN_SSIDS,
+       QCA_WLAN_VENDOR_ATTR_SCAN_SUPP_RATES,
+       QCA_WLAN_VENDOR_ATTR_SCAN_TX_NO_CCK_RATE,
+       QCA_WLAN_VENDOR_ATTR_SCAN_FLAGS,
+       QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE,
+       QCA_WLAN_VENDOR_ATTR_SCAN_STATUS,
+       QCA_WLAN_VENDOR_ATTR_SCAN_MAC,
+       QCA_WLAN_VENDOR_ATTR_SCAN_MAC_MASK,
+       QCA_WLAN_VENDOR_ATTR_SCAN_AFTER_LAST,
+       QCA_WLAN_VENDOR_ATTR_SCAN_MAX =
+       QCA_WLAN_VENDOR_ATTR_SCAN_AFTER_LAST - 1
+};
+
+/**
+ * enum scan_status - Specifies the valid values the vendor scan attribute
+ *     QCA_WLAN_VENDOR_ATTR_SCAN_STATUS can take
+ *
+ * @VENDOR_SCAN_STATUS_NEW_RESULTS: implies the vendor scan is successful with
+ *     new scan results
+ * @VENDOR_SCAN_STATUS_ABORTED: implies the vendor scan was aborted in-between
+ */
+enum scan_status {
+       VENDOR_SCAN_STATUS_NEW_RESULTS,
+       VENDOR_SCAN_STATUS_ABORTED,
+       VENDOR_SCAN_STATUS_MAX,
+};
+
+/**
+ * enum qca_vendor_attr_ota_test - Specifies the values for vendor
+ *                       command QCA_NL80211_VENDOR_SUBCMD_OTA_TEST
+ * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_ENABLE: enable ota test
+ */
+enum qca_vendor_attr_ota_test {
+       QCA_WLAN_VENDOR_ATTR_OTA_TEST_INVALID,
+       /* 8-bit unsigned value to indicate if OTA test is enabled */
+       QCA_WLAN_VENDOR_ATTR_OTA_TEST_ENABLE,
+       /* keep last */
+       QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST,
+       QCA_WLAN_VENDOR_ATTR_OTA_TEST_MAX =
+       QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST - 1
+};
+
+/**
+ * enum qca_vendor_attr_txpower_scale - vendor sub commands index
+ *
+ * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE: scaling value
+ */
+enum qca_vendor_attr_txpower_scale {
+       QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_INVALID,
+       /* 8-bit unsigned value to indicate the scaling of tx power */
+       QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE,
+       /* keep last */
+       QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST,
+       QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_MAX =
+       QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST - 1
+};
+
+/**
+ * enum qca_vendor_attr_txpower_decr_db - Attributes for TX power decrease
+ *
+ * These attributes are used with QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_DECR_DB.
+ */
+enum qca_vendor_attr_txpower_decr_db {
+       QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_INVALID,
+       /* 8-bit unsigned value to indicate the reduction of TX power in dB for
+        * a virtual interface. */
+       QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB,
+       /* keep last */
+       QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_AFTER_LAST,
+       QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_MAX =
+       QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_AFTER_LAST - 1
+};
+
+/* Attributes for data used by
+ * QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION and
+ * QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION subcommands.
+ */
+enum qca_wlan_vendor_attr_config {
+       QCA_WLAN_VENDOR_ATTR_CONFIG_INVALID = 0,
+       /* Unsigned 32-bit value to set the DTIM period.
+        * Whether the wifi chipset wakes at every dtim beacon or a multiple of
+        * the DTIM period. If DTIM is set to 3, the STA shall wake up every 3
+        * DTIM beacons.
+        */
+       QCA_WLAN_VENDOR_ATTR_CONFIG_DYNAMIC_DTIM = 1,
+       /* Unsigned 32-bit value to set the wifi_iface stats averaging factor
+        * used to calculate statistics like average the TSF offset or average
+        * number of frame leaked.
+        * For instance, upon Beacon frame reception:
+        * current_avg = ((beacon_TSF - TBTT) * factor + previous_avg * (0x10000 - factor) ) / 0x10000
+        * For instance, when evaluating leaky APs:
+        * current_avg = ((num frame received within guard time) * factor + previous_avg * (0x10000 - factor)) / 0x10000
+        */
+       QCA_WLAN_VENDOR_ATTR_CONFIG_STATS_AVG_FACTOR = 2,
+       /* Unsigned 32-bit value to configure guard time, i.e., when
+        * implementing IEEE power management based on frame control PM bit, how
+        * long the driver waits before shutting down the radio and after
+        * receiving an ACK frame for a Data frame with PM bit set.
+        */
+       QCA_WLAN_VENDOR_ATTR_CONFIG_GUARD_TIME = 3,
+       /* Unsigned 32-bit value to change the FTM capability dynamically */
+       QCA_WLAN_VENDOR_ATTR_CONFIG_FINE_TIME_MEASUREMENT = 4,
+       /* Unsigned 16-bit value to configure maximum TX rate dynamically */
+       QCA_WLAN_VENDOR_ATTR_CONF_TX_RATE = 5,
+       /* Unsigned 32-bit value to configure the number of continuous
+        * Beacon Miss which shall be used by the firmware to penalize
+        * the RSSI.
+        */
+       QCA_WLAN_VENDOR_ATTR_CONFIG_PENALIZE_AFTER_NCONS_BEACON_MISS = 6,
+       /* Unsigned 8-bit value to configure the channel avoidance indication
+        * behavior. Firmware to send only one indication and ignore duplicate
+        * indications when set to avoid multiple Apps wakeups.
+        */
+       QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_AVOIDANCE_IND = 7,
+       /* 8-bit unsigned value to configure the maximum TX MPDU for
+        * aggregation. */
+       QCA_WLAN_VENDOR_ATTR_CONFIG_TX_MPDU_AGGREGATION = 8,
+       /* 8-bit unsigned value to configure the maximum RX MPDU for
+        * aggregation. */
+       QCA_WLAN_VENDOR_ATTR_CONFIG_RX_MPDU_AGGREGATION = 9,
+       /* 8-bit unsigned value to configure the Non aggregrate/11g sw
+        * retry threshold (0 disable, 31 max). */
+       QCA_WLAN_VENDOR_ATTR_CONFIG_NON_AGG_RETRY = 10,
+       /* 8-bit unsigned value to configure the aggregrate sw
+        * retry threshold (0 disable, 31 max). */
+       QCA_WLAN_VENDOR_ATTR_CONFIG_AGG_RETRY = 11,
+       /* 8-bit unsigned value to configure the MGMT frame
+        * retry threshold (0 disable, 31 max). */
+       QCA_WLAN_VENDOR_ATTR_CONFIG_MGMT_RETRY = 12,
+       /* 8-bit unsigned value to configure the CTRL frame
+        * retry threshold (0 disable, 31 max). */
+       QCA_WLAN_VENDOR_ATTR_CONFIG_CTRL_RETRY = 13,
+       /* 8-bit unsigned value to configure the propagation delay for
+        * 2G/5G band (0~63, units in us) */
+       QCA_WLAN_VENDOR_ATTR_CONFIG_PROPAGATION_DELAY = 14,
+       /* Unsigned 32-bit value to configure the number of unicast TX fail
+        * packet count. The peer is disconnected once this threshold is
+        * reached. */
+       QCA_WLAN_VENDOR_ATTR_CONFIG_TX_FAIL_COUNT = 15,
+       /* Attribute used to set scan default IEs to the driver.
+        *
+        * These IEs can be used by scan operations that will be initiated by
+        * the driver/firmware.
+        *
+        * For further scan requests coming to the driver, these IEs should be
+        * merged with the IEs received along with scan request coming to the
+        * driver. If a particular IE is present in the scan default IEs but not
+        * present in the scan request, then that IE should be added to the IEs
+        * sent in the Probe Request frames for that scan request. */
+       QCA_WLAN_VENDOR_ATTR_CONFIG_SCAN_DEFAULT_IES = 16,
+       /* Unsigned 32-bit attribute for generic commands */
+       QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_COMMAND = 17,
+       /* Unsigned 32-bit value attribute for generic commands */
+       QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_VALUE = 18,
+       /* Unsigned 32-bit data attribute for generic command response */
+       QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA = 19,
+       /* Unsigned 32-bit length attribute for
+        * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA */
+       QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_LENGTH = 20,
+       /* Unsigned 32-bit flags attribute for
+        * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA */
+       QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_FLAGS = 21,
+       /* Unsigned 32-bit, defining the access policy.
+        * See enum qca_access_policy. Used with
+        * QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE_LIST. */
+       QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY = 22,
+       /* Sets the list of full set of IEs for which a specific access policy
+        * has to be applied. Used along with
+        * QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY to control the access.
+        * Zero length payload can be used to clear this access constraint. */
+       QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE_LIST = 23,
+       /* Unsigned 32-bit, specifies the interface index (netdev) for which the
+        * corresponding configurations are applied. If the interface index is
+        * not specified, the configurations are attributed to the respective
+        * wiphy. */
+       QCA_WLAN_VENDOR_ATTR_CONFIG_IFINDEX = 24,
+       /* 8-bit unsigned value to trigger QPower: 1-Enable, 0-Disable */
+       QCA_WLAN_VENDOR_ATTR_CONFIG_QPOWER = 25,
+       /* 8-bit unsigned value to configure the driver and below layers to
+        * ignore the assoc disallowed set by APs while connecting
+        * 1-Ignore, 0-Don't ignore */
+       QCA_WLAN_VENDOR_ATTR_CONFIG_IGNORE_ASSOC_DISALLOWED = 26,
+       /* 32-bit unsigned value to trigger antenna diversity features:
+        * 1-Enable, 0-Disable */
+       QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_ENA = 27,
+       /* 32-bit unsigned value to configure specific chain antenna */
+       QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_CHAIN = 28,
+       /* 32-bit unsigned value to trigger cycle selftest
+        * 1-Enable, 0-Disable */
+       QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SELFTEST = 29,
+       /* 32-bit unsigned to configure the cycle time of selftest
+        * the unit is micro-second */
+       QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SELFTEST_INTVL = 30,
+
+       /* keep last */
+       QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST,
+       QCA_WLAN_VENDOR_ATTR_CONFIG_MAX =
+       QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST - 1,
+};
+
+/**
+ * enum qca_wlan_vendor_attr_sap_config - Parameters for AP configuration
+ */
+enum qca_wlan_vendor_attr_sap_config {
+       QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_INVALID = 0,
+       /* 1 - reserved for QCA */
+       /* List of frequencies on which AP is expected to operate.
+        * This is irrespective of ACS configuration. This list is a priority
+        * based one and is looked for before the AP is created to ensure the
+        * best concurrency sessions (avoid MCC and use DBS/SCC) co-exist in
+        * the system.
+        */
+       QCA_WLAN_VENDOR_ATTR_SAP_MANDATORY_FREQUENCY_LIST = 2,
+
+       QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_AFTER_LAST,
+       QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_MAX =
+       QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_AFTER_LAST - 1,
+};
+
+/**
+ * enum qca_wlan_vendor_attr_sap_conditional_chan_switch - Parameters for AP
+ *                                     conditional channel switch
+ */
+enum qca_wlan_vendor_attr_sap_conditional_chan_switch {
+       QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_INVALID = 0,
+       /* Priority based frequency list (an array of u32 values in host byte
+        * order) */
+       QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST = 1,
+       /* Status of the conditional switch (u32).
+        * 0: Success, Non-zero: Failure
+        */
+       QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS = 2,
+
+       QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST,
+       QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_MAX =
+       QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST - 1,
+};
+
+/**
+ * enum qca_wlan_gpio_attr - Parameters for GPIO configuration
+ */
+enum qca_wlan_gpio_attr {
+       QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INVALID = 0,
+       /* Unsigned 32-bit attribute for GPIO command */
+       QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND,
+       /* Unsigned 32-bit attribute for GPIO PIN number to configure */
+       QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM,
+       /* Unsigned 32-bit attribute for GPIO value to configure */
+       QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_VALUE,
+       /* Unsigned 32-bit attribute for GPIO pull type */
+       QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PULL_TYPE,
+       /* Unsigned 32-bit attribute for GPIO interrupt mode */
+       QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTR_MODE,
+
+       /* keep last */
+       QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_LAST,
+       QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MAX =
+       QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_LAST - 1
+};
+
+/**
+ * enum qca_wlan_vendor_attr_get_hw_capability - Wi-Fi hardware capability
+ */
+enum qca_wlan_vendor_attr_get_hw_capability {
+       QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_INVALID,
+       /* Antenna isolation
+        * An attribute used in the response.
+        * The content of this attribute is encoded in a byte array. Each byte
+        * value is an antenna isolation value. The array length is the number
+        * of antennas.
+        */
+       QCA_WLAN_VENDOR_ATTR_ANTENNA_ISOLATION,
+       /* Request HW capability
+        * An attribute used in the request.
+        * The content of this attribute is a u32 array for one or more of
+        * hardware capabilities (attribute IDs) that are being requested. Each
+        * u32 value has a value from this
+        * enum qca_wlan_vendor_attr_get_hw_capability
+        * identifying which capabilities are requested.
+        */
+       QCA_WLAN_VENDOR_ATTR_GET_HW_CAPABILITY,
+
+       /* keep last */
+       QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_AFTER_LAST,
+       QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_MAX =
+       QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_AFTER_LAST - 1,
+};
+
+/**
+ * enum qca_wlan_vendor_attr_ll_stats_ext - Attributes for MAC layer monitoring
+ *    offload which is an extension for LL_STATS.
+ * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_PERIOD: Monitoring period. Unit in ms.
+ *    If MAC counters do not exceed the threshold, FW will report monitored
+ *    link layer counters periodically as this setting. The first report is
+ *    always triggered by this timer.
+ * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_THRESHOLD: It is a percentage (1-99).
+ *    For each MAC layer counter, FW holds two copies. One is the current value.
+ *    The other is the last report. Once a current counter's increment is larger
+ *    than the threshold, FW will indicate that counter to host even if the
+ *    monitoring timer does not expire.
+ * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_CHG: Peer STA power state change
+ * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TID: TID of MSDU
+ * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NUM_MSDU: Count of MSDU with the same
+ *    failure code.
+ * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_STATUS: TX failure code
+ *    1: TX packet discarded
+ *    2: No ACK
+ *    3: Postpone
+ * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_MAC_ADDRESS: peer MAC address
+ * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_STATE: Peer STA current state
+ * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_GLOBAL: Global threshold.
+ *    Threshold for all monitored parameters. If per counter dedicated threshold
+ *    is not enabled, this threshold will take effect.
+ * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_EVENT_MODE: Indicate what triggers this
+ *    event, PERORID_TIMEOUT == 1, THRESH_EXCEED == 0.
+ * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_ID: interface ID
+ * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ID: peer ID
+ * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BITMAP: bitmap for TX counters
+ *    Bit0: TX counter unit in MSDU
+ *    Bit1: TX counter unit in MPDU
+ *    Bit2: TX counter unit in PPDU
+ *    Bit3: TX counter unit in byte
+ *    Bit4: Dropped MSDUs
+ *    Bit5: Dropped Bytes
+ *    Bit6: MPDU retry counter
+ *    Bit7: MPDU failure counter
+ *    Bit8: PPDU failure counter
+ *    Bit9: MPDU aggregation counter
+ *    Bit10: MCS counter for ACKed MPDUs
+ *    Bit11: MCS counter for Failed MPDUs
+ *    Bit12: TX Delay counter
+ * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BITMAP: bitmap for RX counters
+ *    Bit0: MAC RX counter unit in MPDU
+ *    Bit1: MAC RX counter unit in byte
+ *    Bit2: PHY RX counter unit in PPDU
+ *    Bit3: PHY RX counter unit in byte
+ *    Bit4: Disorder counter
+ *    Bit5: Retry counter
+ *    Bit6: Duplication counter
+ *    Bit7: Discard counter
+ *    Bit8: MPDU aggregation size counter
+ *    Bit9: MCS counter
+ *    Bit10: Peer STA power state change (wake to sleep) counter
+ *    Bit11: Peer STA power save counter, total time in PS mode
+ *    Bit12: Probe request counter
+ *    Bit13: Other management frames counter
+ * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS_BITMAP: bitmap for CCA
+ *    Bit0: Idle time
+ *    Bit1: TX time
+ *    Bit2: time RX in current bss
+ *    Bit3: Out of current bss time
+ *    Bit4: Wireless medium busy time
+ *    Bit5: RX in bad condition time
+ *    Bit6: TX in bad condition time
+ *    Bit7: time wlan card not available
+ * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_SIGNAL_BITMAP: bitmap for signal
+ *    Bit0: Per channel SNR counter
+ *    Bit1: Per channel noise floor counter
+ * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_NUM: number of peers
+ * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CHANNEL_NUM: number of channels
+ * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_AC_RX_NUM: number of RX stats
+ * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS: per channel BSS CCA stats
+ * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER: container for per PEER stats
+ * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MSDU: Number of total TX MSDUs
+ * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MPDU: Number of total TX MPDUs
+ * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_PPDU: Number of total TX PPDUs
+ * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BYTES: bytes of TX data
+ * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP: Number of dropped TX packets
+ * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP_BYTES: Bytes dropped
+ * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_RETRY: waiting time without an ACK
+ * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_ACK: number of MPDU not-ACKed
+ * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_BACK: number of PPDU not-ACKed
+ * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR_NUM:
+ *    aggregation stats buffer length
+ * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS_NUM: length of mcs stats
+ *    buffer for ACKed MPDUs.
+ * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS_NUM: length of mcs stats
+ *    buffer for failed MPDUs.
+ * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_DELAY_ARRAY_SIZE:
+ *    length of delay stats array.
+ * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR: TX aggregation stats
+ * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS: MCS stats for ACKed MPDUs
+ * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS: MCS stats for failed MPDUs
+ * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DELAY: tx delay stats
+ * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU: MPDUs received
+ * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_BYTES: bytes received
+ * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU: PPDU received
+ * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU_BYTES: PPDU bytes received
+ * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_LOST: packets lost
+ * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_RETRY: number of RX packets
+ *    flagged as retransmissions
+ * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DUP: number of RX packets
+ *    flagged as duplicated
+ * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DISCARD: number of RX
+ *    packets discarded
+ * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR_NUM: length of RX aggregation
+ *    stats buffer.
+ * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS_NUM: length of RX mcs
+ *    stats buffer.
+ * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS: RX mcs stats buffer
+ * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR: aggregation stats buffer
+ * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_TIMES: times STAs go to sleep
+ * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_DURATION: STAs' total sleep time
+ * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PROBE_REQ: number of probe
+ *    requests received
+ * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MGMT: number of other mgmt
+ *    frames received
+ * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IDLE_TIME: Percentage of idle time
+ *    there is no TX, nor RX, nor interference.
+ * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_TIME: percentage of time
+ *    transmitting packets.
+ * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_TIME: percentage of time
+ *    for receiving.
+ * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BUSY: percentage of time
+ *    interference detected.
+ * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BAD: percentage of time
+ *    receiving packets with errors.
+ * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BAD: percentage of time
+ *    TX no-ACK.
+ * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NO_AVAIL: percentage of time
+ *    the chip is unable to work in normal conditions.
+ * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IN_BSS_TIME: percentage of time
+ *    receiving packets in current BSS.
+ * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_OUT_BSS_TIME: percentage of time
+ *    receiving packets not in current BSS.
+ * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ANT_NUM: number of antennas
+ * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_SIGNAL:
+ *    This is a container for per antenna signal stats.
+ * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_SNR: per antenna SNR value
+ * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_NF: per antenna NF value
+ * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_RSSI_BEACON: RSSI of beacon
+ * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_SNR_BEACON: SNR of beacon
+ */
+enum qca_wlan_vendor_attr_ll_stats_ext {
+       QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_INVALID = 0,
+
+       /* Attributes for configurations */
+       QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_PERIOD,
+       QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_THRESHOLD,
+
+       /* Peer STA power state change */
+       QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_CHG,
+
+       /* TX failure event */
+       QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TID,
+       QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NUM_MSDU,
+       QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_STATUS,
+
+       QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_STATE,
+       QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_MAC_ADDRESS,
+
+       /* MAC counters */
+       QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_GLOBAL,
+       QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_EVENT_MODE,
+       QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_ID,
+       QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ID,
+       QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BITMAP,
+       QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BITMAP,
+       QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS_BITMAP,
+       QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_SIGNAL_BITMAP,
+       QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_NUM,
+       QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CHANNEL_NUM,
+       QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS,
+       QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER,
+
+       /* Sub-attributes for PEER_AC_TX */
+       QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MSDU,
+       QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MPDU,
+       QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_PPDU,
+       QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BYTES,
+       QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP,
+       QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP_BYTES,
+       QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_RETRY,
+       QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_ACK,
+       QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_BACK,
+       QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR_NUM,
+       QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS_NUM,
+       QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS_NUM,
+       QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR,
+       QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS,
+       QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS,
+       QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_DELAY_ARRAY_SIZE,
+       QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DELAY,
+
+       /* Sub-attributes for PEER_AC_RX */
+       QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU,
+       QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_BYTES,
+       QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU,
+       QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU_BYTES,
+       QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_LOST,
+       QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_RETRY,
+       QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DUP,
+       QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DISCARD,
+       QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR_NUM,
+       QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS_NUM,
+       QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS,
+       QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR,
+       QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_TIMES,
+       QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_DURATION,
+       QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PROBE_REQ,
+       QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MGMT,
+
+       /* Sub-attributes for CCA_BSS */
+       QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IDLE_TIME,
+       QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_TIME,
+       QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_TIME,
+       QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BUSY,
+       QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BAD,
+       QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BAD,
+       QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NO_AVAIL,
+
+       /* sub-attribute for BSS_RX_TIME */
+       QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IN_BSS_TIME,
+       QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_OUT_BSS_TIME,
+
+       /* Sub-attributes for PEER_SIGNAL */
+       QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ANT_NUM,
+       QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_SIGNAL,
+       QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_SNR,
+       QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_NF,
+
+       /* Sub-attributes for IFACE_BSS */
+       QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_RSSI_BEACON,
+       QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_SNR_BEACON,
+
+       QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_LAST,
+       QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_MAX =
+               QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_LAST - 1
+};
+
+/* Attributes for FTM commands and events */
+
+/**
+ * enum qca_wlan_vendor_attr_loc_capa - Indoor location capabilities
+ *
+ * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAGS: Various flags. See
+ *     enum qca_wlan_vendor_attr_loc_capa_flags.
+ * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_SESSIONS: Maximum number
+ *     of measurement sessions that can run concurrently.
+ *     Default is one session (no session concurrency).
+ * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_PEERS: The total number of unique
+ *     peers that are supported in running sessions. For example,
+ *     if the value is 8 and maximum number of sessions is 2, you can
+ *     have one session with 8 unique peers, or 2 sessions with 4 unique
+ *     peers each, and so on.
+ * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_BURSTS_EXP: Maximum number
+ *     of bursts per peer, as an exponent (2^value). Default is 0,
+ *     meaning no multi-burst support.
+ * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_MEAS_PER_BURST: Maximum number
+ *     of measurement exchanges allowed in a single burst.
+ * @QCA_WLAN_VENDOR_ATTR_AOA_CAPA_SUPPORTED_TYPES: Supported AOA measurement
+ *     types. A bit mask (unsigned 32 bit value), each bit corresponds
+ *     to an AOA type as defined by enum qca_vendor_attr_aoa_type.
+ */
+enum qca_wlan_vendor_attr_loc_capa {
+       QCA_WLAN_VENDOR_ATTR_LOC_CAPA_INVALID,
+       QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAGS,
+       QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_SESSIONS,
+       QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_PEERS,
+       QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_BURSTS_EXP,
+       QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_MEAS_PER_BURST,
+       QCA_WLAN_VENDOR_ATTR_AOA_CAPA_SUPPORTED_TYPES,
+       /* keep last */
+       QCA_WLAN_VENDOR_ATTR_LOC_CAPA_AFTER_LAST,
+       QCA_WLAN_VENDOR_ATTR_LOC_CAPA_MAX =
+       QCA_WLAN_VENDOR_ATTR_LOC_CAPA_AFTER_LAST - 1,
+};
+
+/**
+ * enum qca_wlan_vendor_attr_loc_capa_flags: Indoor location capability flags
+ *
+ * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_RESPONDER: Set if driver
+ *     can be configured as an FTM responder (for example, an AP that
+ *     services FTM requests). QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
+ *     will be supported if set.
+ * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_INITIATOR: Set if driver
+ *     can run FTM sessions. QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION
+ *     will be supported if set.
+* @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_ASAP: Set if FTM responder
+ *     supports immediate (ASAP) response.
+ * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA: Set if driver supports standalone
+ *     AOA measurement using QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS.
+ * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA_IN_FTM: Set if driver supports
+ *     requesting AOA measurements as part of an FTM session.
+ */
+enum qca_wlan_vendor_attr_loc_capa_flags {
+       QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_RESPONDER = 1 << 0,
+       QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_INITIATOR = 1 << 1,
+       QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_ASAP = 1 << 2,
+       QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA = 1 << 3,
+       QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA_IN_FTM = 1 << 4,
+};
+
+/**
+ * enum qca_wlan_vendor_attr_ftm_peer_info: Information about
+ *     a single peer in a measurement session.
+ *
+ * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAC_ADDR: The MAC address of the peer.
+ * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAGS: Various flags related
+ *     to measurement. See enum qca_wlan_vendor_attr_ftm_peer_meas_flags.
+ * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_PARAMS: Nested attribute of
+ *     FTM measurement parameters, as specified by IEEE P802.11-REVmc/D7.0
+ *     9.4.2.167. See enum qca_wlan_vendor_attr_ftm_meas_param for
+ *     list of supported attributes.
+ * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID: Initial token ID for
+ *     secure measurement.
+ * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_AOA_BURST_PERIOD: Request AOA
+ *     measurement every <value> bursts. If 0 or not specified,
+ *     AOA measurements will be disabled for this peer.
+ */
+enum qca_wlan_vendor_attr_ftm_peer_info {
+       QCA_WLAN_VENDOR_ATTR_FTM_PEER_INVALID,
+       QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAC_ADDR,
+       QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAGS,
+       QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_PARAMS,
+       QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID,
+       QCA_WLAN_VENDOR_ATTR_FTM_PEER_AOA_BURST_PERIOD,
+       /* keep last */
+       QCA_WLAN_VENDOR_ATTR_FTM_PEER_AFTER_LAST,
+       QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAX =
+       QCA_WLAN_VENDOR_ATTR_FTM_PEER_AFTER_LAST - 1,
+};
+
+/**
+ * enum qca_wlan_vendor_attr_ftm_peer_meas_flags: Measurement request flags,
+ *     per-peer
+ *
+ * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_ASAP: If set, request
+ *     immediate (ASAP) response from peer.
+ * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCI: If set, request
+ *     LCI report from peer. The LCI report includes the absolute
+ *     location of the peer in "official" coordinates (similar to GPS).
+ *     See IEEE P802.11-REVmc/D7.0, 11.24.6.7 for more information.
+ * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCR: If set, request
+ *     Location civic report from peer. The LCR includes the location
+ *     of the peer in free-form format. See IEEE P802.11-REVmc/D7.0,
+ *     11.24.6.7 for more information.
+ * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_SECURE: If set,
+ *     request a secure measurement.
+ *     QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID must also be provided.
+ */
+enum qca_wlan_vendor_attr_ftm_peer_meas_flags {
+       QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_ASAP    = 1 << 0,
+       QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCI     = 1 << 1,
+       QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCR     = 1 << 2,
+       QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_SECURE  = 1 << 3,
+};
+
+/**
+ * enum qca_wlan_vendor_attr_ftm_meas_param: Measurement parameters
+ *
+ * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MEAS_PER_BURST: Number of measurements
+ *     to perform in a single burst.
+ * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_NUM_BURSTS_EXP: Number of bursts to
+ *     perform, specified as an exponent (2^value).
+ * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION: Duration of burst
+ *     instance, as specified in IEEE P802.11-REVmc/D7.0, 9.4.2.167.
+ * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_PERIOD: Time between bursts,
+ *     as specified in IEEE P802.11-REVmc/D7.0, 9.4.2.167. Must
+ *     be larger than QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION.
+ */
+enum qca_wlan_vendor_attr_ftm_meas_param {
+       QCA_WLAN_VENDOR_ATTR_FTM_PARAM_INVALID,
+       QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MEAS_PER_BURST,
+       QCA_WLAN_VENDOR_ATTR_FTM_PARAM_NUM_BURSTS_EXP,
+       QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION,
+       QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_PERIOD,
+       /* keep last */
+       QCA_WLAN_VENDOR_ATTR_FTM_PARAM_AFTER_LAST,
+       QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MAX =
+       QCA_WLAN_VENDOR_ATTR_FTM_PARAM_AFTER_LAST - 1,
+};
+
+/**
+ * enum qca_wlan_vendor_attr_ftm_peer_result: Per-peer results
+ *
+ * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAC_ADDR: MAC address of the reported
+ *      peer.
+ * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS: Status of measurement
+ *     request for this peer.
+ *     See enum qca_wlan_vendor_attr_ftm_peer_result_status.
+ * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAGS: Various flags related
+ *     to measurement results for this peer.
+ *     See enum qca_wlan_vendor_attr_ftm_peer_result_flags.
+ * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS: Specified when
+ *     request failed and peer requested not to send an additional request
+ *     for this number of seconds.
+ * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCI: LCI report when received
+ *     from peer. In the format specified by IEEE P802.11-REVmc/D7.0,
+ *     9.4.2.22.10.
+ * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCR: Location civic report when
+ *     received from peer. In the format specified by IEEE P802.11-REVmc/D7.0,
+ *     9.4.2.22.13.
+ * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAMS: Reported when peer
+ *     overridden some measurement request parameters. See
+ *     enum qca_wlan_vendor_attr_ftm_meas_param.
+ * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AOA_MEAS: AOA measurement
+ *     for this peer. Same contents as @QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT.
+ * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS: Array of measurement
+ *     results. Each entry is a nested attribute defined
+ *     by enum qca_wlan_vendor_attr_ftm_meas.
+ */
+enum qca_wlan_vendor_attr_ftm_peer_result {
+       QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_INVALID,
+       QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAC_ADDR,
+       QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS,
+       QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAGS,
+       QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS,
+       QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCI,
+       QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCR,
+       QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAMS,
+       QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AOA_MEAS,
+       QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS,
+       /* keep last */
+       QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AFTER_LAST,
+       QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAX =
+       QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AFTER_LAST - 1,
+};
+
+/**
+ * enum qca_wlan_vendor_attr_ftm_peer_result_status
+ *
+ * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_OK: Request sent ok and results
+ *     will be provided. Peer may have overridden some measurement parameters,
+ *     in which case overridden parameters will be report by
+ *     QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAM attribute.
+ * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INCAPABLE: Peer is incapable
+ *     of performing the measurement request. No more results will be sent
+ *     for this peer in this session.
+ * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_FAILED: Peer reported request
+ *     failed, and requested not to send an additional request for number
+ *     of seconds specified by QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS
+ *     attribute.
+ * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INVALID: Request validation
+ *     failed. Request was not sent over the air.
+ */
+enum qca_wlan_vendor_attr_ftm_peer_result_status {
+       QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_OK,
+       QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INCAPABLE,
+       QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_FAILED,
+       QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INVALID,
+};
+
+/**
+ * enum qca_wlan_vendor_attr_ftm_peer_result_flags: Various flags
+ *  for measurement result, per-peer
+ *
+ * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAG_DONE: If set,
+ *     measurement completed for this peer. No more results will be reported
+ *     for this peer in this session.
+ */
+enum qca_wlan_vendor_attr_ftm_peer_result_flags {
+       QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAG_DONE = 1 << 0,
+};
+
+/**
+ * enum qca_vendor_attr_loc_session_status: Session completion status code
+ *
+ * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_OK: Session completed
+ *     successfully.
+ * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_ABORTED: Session aborted
+ *     by request.
+ * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_INVALID: Session request
+ *     was invalid and was not started.
+ * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_FAILED: Session had an error
+ *     and did not complete normally (for example out of resources).
+ */
+enum qca_vendor_attr_loc_session_status {
+       QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_OK,
+       QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_ABORTED,
+       QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_INVALID,
+       QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_FAILED,
+};
+
+/**
+ * enum qca_wlan_vendor_attr_ftm_meas: Single measurement data
+ *
+ * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T1: Time of departure (TOD) of FTM packet as
+ *     recorded by responder, in picoseconds.
+ *     See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
+ * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T2: Time of arrival (TOA) of FTM packet at
+ *     initiator, in picoseconds.
+ *     See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
+ * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T3: TOD of ACK packet as recorded by
+ *     initiator, in picoseconds.
+ *     See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
+ * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T4: TOA of ACK packet at
+ *     responder, in picoseconds.
+ *     See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
+ * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_RSSI: RSSI (signal level) as recorded
+ *     during this measurement exchange. Optional and will be provided if
+ *     the hardware can measure it.
+ * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOD_ERR: TOD error reported by
+ *     responder. Not always provided.
+ *     See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
+ * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOA_ERR: TOA error reported by
+ *     responder. Not always provided.
+ *     See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
+ * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOD_ERR: TOD error measured by
+ *     initiator. Not always provided.
+ *     See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
+ * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOA_ERR: TOA error measured by
+ *     initiator. Not always provided.
+ *     See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
+ * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PAD: Dummy attribute for padding.
+ */
+enum qca_wlan_vendor_attr_ftm_meas {
+       QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INVALID,
+       QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T1,
+       QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T2,
+       QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T3,
+       QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T4,
+       QCA_WLAN_VENDOR_ATTR_FTM_MEAS_RSSI,
+       QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOD_ERR,
+       QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOA_ERR,
+       QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOD_ERR,
+       QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOA_ERR,
+       QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PAD,
+       /* keep last */
+       QCA_WLAN_VENDOR_ATTR_FTM_MEAS_AFTER_LAST,
+       QCA_WLAN_VENDOR_ATTR_FTM_MEAS_MAX =
+       QCA_WLAN_VENDOR_ATTR_FTM_MEAS_AFTER_LAST - 1,
+};
+
+/**
+ * enum qca_wlan_vendor_attr_aoa_type - AOA measurement type
+ *
+ * @QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE: Phase of the strongest
+ *     CIR (channel impulse response) path for each antenna.
+ * @QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP: Phase and amplitude
+ *     of the strongest CIR path for each antenna.
+ */
+enum qca_wlan_vendor_attr_aoa_type {
+       QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE,
+       QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP,
+       QCA_WLAN_VENDOR_ATTR_AOA_TYPE_MAX
+};
+
+/**
+ * enum qca_wlan_vendor_attr_encryption_test - Attributes to
+ * validate encryption engine
+ *
+ * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_NEEDS_DECRYPTION: Flag attribute.
+ *     This will be included if the request is for decryption; if not included,
+ *     the request is treated as a request for encryption by default.
+ * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_CIPHER: Unsigned 32-bit value
+ *     indicating the key cipher suite. Takes same values as
+ *     NL80211_ATTR_KEY_CIPHER.
+ * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_KEYID: Unsigned 8-bit value
+ *     Key Id to be used for encryption
+ * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_TK: Array of 8-bit values.
+ *     Key (TK) to be used for encryption/decryption
+ * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_PN: Array of 8-bit values.
+ *     Packet number to be specified for encryption/decryption
+ *     6 bytes for TKIP/CCMP/GCMP.
+ * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_DATA: Array of 8-bit values
+ *     representing the 802.11 packet (header + payload + FCS) that
+ *     needs to be encrypted/decrypted.
+ *     Encrypted/decrypted response from the driver will also be sent
+ *     to userspace with the same attribute.
+ */
+enum qca_wlan_vendor_attr_encryption_test {
+       QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_INVALID = 0,
+       QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_NEEDS_DECRYPTION,
+       QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_CIPHER,
+       QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_KEYID,
+       QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_TK,
+       QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_PN,
+       QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_DATA,
+
+       /* keep last */
+       QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_AFTER_LAST,
+       QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_MAX =
+       QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_AFTER_LAST - 1
 };
 
 #endif /* QCA_VENDOR_H */