diff --git a/fw/htt.h b/fw/htt.h index 664695a76e75..d8d6bf7b257f 100644 --- a/fw/htt.h +++ b/fw/htt.h @@ -653,6 +653,7 @@ typedef enum { HTT_STATS_PHY_RESET_STATS_TAG = 124, /* htt_phy_reset_stats_tlv */ HTT_STATS_SOC_TXRX_STATS_COMMON_TAG = 125, /* htt_t2h_soc_txrx_stats_common_tlv */ HTT_STATS_VDEV_TXRX_STATS_HW_STATS_TAG = 126, /* htt_t2h_vdev_txrx_stats_hw_stats_tlv */ + HTT_STATS_VDEV_RTT_INIT_STATS_TAG = 127, /* htt_vdev_rtt_init_stats_tlv */ HTT_STATS_MAX_TAG, } htt_tlv_tag_t; diff --git a/fw/htt_stats.h b/fw/htt_stats.h index d6273ee48388..672c476f9529 100644 --- a/fw/htt_stats.h +++ b/fw/htt_stats.h @@ -400,6 +400,8 @@ enum htt_dbg_ext_stats_type { */ HTT_DBG_EXT_VDEVS_TXRX_STATS = 38, + HTT_DBG_EXT_VDEV_RTT_INITIATOR_STATS = 39, + /* keep this last */ HTT_DBG_NUM_EXT_STATS = 256, @@ -5133,12 +5135,37 @@ typedef struct { A_UINT32 rx_iftmr_cnt; /* No of duplicate initial Fine Timing Measurement Request frames received */ A_UINT32 rx_iftmr_dup_cnt; + /* No of responder sessions rejected when initiator was active */ + A_UINT32 initiator_active_responder_rejected_cnt; + /* Responder terminate count */ + A_UINT32 responder_terminate_cnt; + A_UINT32 vdev_id; } htt_vdev_rtt_resp_stats_tlv; typedef struct { htt_vdev_rtt_resp_stats_tlv vdev_rtt_resp_stats; } htt_vdev_rtt_resp_stats_t; +typedef struct { + htt_tlv_hdr_t tlv_hdr; + + A_UINT32 vdev_id; + /* No of Fine Timing Measurement request frames transmitted successfully */ + A_UINT32 tx_ftmr_cnt; + /* No of Fine Timing Measurement request frames not transmitted successfully */ + A_UINT32 tx_ftmr_fail; + /* No of Fine Timing Measurement request frames transmitted successfully after retry */ + A_UINT32 tx_ftmr_suc_retry; + /* No of Fine Timing Measurement frames received, including initial, non-initial, and duplicates */ + A_UINT32 rx_ftm_cnt; + /* Initiator Terminate count */ + A_UINT32 initiator_terminate_cnt; +} htt_vdev_rtt_init_stats_tlv; + +typedef struct { + htt_vdev_rtt_init_stats_tlv vdev_rtt_init_stats; +} htt_vdev_rtt_init_stats_t; + /* STATS_TYPE : HTT_DBG_EXT_PKTLOG_AND_HTT_RING_STATS * TLV_TAGS: * - HTT_STATS_PKTLOG_AND_HTT_RING_STATS_TAG