qcacmn: support UL delay report for KIWI

support Ul delay report for KIWI

Change-Id: If78be5b7d1fa29e522d1df1d4372115d8e00473c
CRs-Fixed: 3222167
This commit is contained in:
Jinwei Chen
2022-06-14 01:28:11 -07:00
committed by Madan Koyyalamudi
parent 7c157e8716
commit 45f5248753
2 changed files with 22 additions and 5 deletions

View File

@@ -32,6 +32,22 @@
*/ */
#define SHOW_DEFINED(x) do {} while (0) #define SHOW_DEFINED(x) do {} while (0)
#if defined(WLAN_FEATURE_TSF_UPLINK_DELAY) || defined(CONFIG_SAWF)
static inline void
hal_tx_comp_get_buffer_timestamp_be(void *desc,
struct hal_tx_completion_status *ts)
{
ts->buffer_timestamp = HAL_TX_DESC_GET(desc, WBM2SW_COMPLETION_RING_TX,
BUFFER_TIMESTAMP);
}
#else /* !WLAN_FEATURE_TSF_UPLINK_DELAY || CONFIG_SAWF */
static inline void
hal_tx_comp_get_buffer_timestamp_be(void *desc,
struct hal_tx_completion_status *ts)
{
}
#endif /* WLAN_FEATURE_TSF_UPLINK_DELAY || CONFIG_SAWF */
/** /**
* hal_tx_comp_get_status() - TQM Release reason * hal_tx_comp_get_status() - TQM Release reason
* @hal_desc: completion ring Tx status * @hal_desc: completion ring Tx status
@@ -104,6 +120,7 @@ hal_tx_comp_get_status_generic_be(void *desc, void *ts1,
ts->tsf = HAL_TX_DESC_GET(desc, UNIFIED_WBM_RELEASE_RING_6, ts->tsf = HAL_TX_DESC_GET(desc, UNIFIED_WBM_RELEASE_RING_6,
TX_RATE_STATS_INFO_TX_RATE_STATS); TX_RATE_STATS_INFO_TX_RATE_STATS);
hal_tx_comp_get_buffer_timestamp_be(desc, ts);
} }
/** /**

View File

@@ -71,16 +71,16 @@ void hal_rx_wbm_err_info_get_generic_li(void *wbm_desc,
#if defined(WLAN_FEATURE_TSF_UPLINK_DELAY) || defined(CONFIG_SAWF) #if defined(WLAN_FEATURE_TSF_UPLINK_DELAY) || defined(CONFIG_SAWF)
static inline void static inline void
hal_tx_comp_get_buffer_timestamp(void *desc, hal_tx_comp_get_buffer_timestamp_li(void *desc,
struct hal_tx_completion_status *ts) struct hal_tx_completion_status *ts)
{ {
ts->buffer_timestamp = HAL_TX_DESC_GET(desc, WBM_RELEASE_RING_4, ts->buffer_timestamp = HAL_TX_DESC_GET(desc, WBM_RELEASE_RING_4,
BUFFER_TIMESTAMP); BUFFER_TIMESTAMP);
} }
#else /* !WLAN_FEATURE_TSF_UPLINK_DELAY || CONFIG_SAWF */ #else /* !WLAN_FEATURE_TSF_UPLINK_DELAY || CONFIG_SAWF */
static inline void static inline void
hal_tx_comp_get_buffer_timestamp(void *desc, hal_tx_comp_get_buffer_timestamp_li(void *desc,
struct hal_tx_completion_status *ts) struct hal_tx_completion_status *ts)
{ {
} }
#endif /* WLAN_FEATURE_TSF_UPLINK_DELAY || CONFIG_SAWF */ #endif /* WLAN_FEATURE_TSF_UPLINK_DELAY || CONFIG_SAWF */
@@ -266,7 +266,7 @@ hal_tx_comp_get_status_generic_li(void *desc, void *ts1,
ts->tsf = HAL_TX_DESC_GET(desc, UNIFIED_WBM_RELEASE_RING_6, ts->tsf = HAL_TX_DESC_GET(desc, UNIFIED_WBM_RELEASE_RING_6,
TX_RATE_STATS_INFO_TX_RATE_STATS); TX_RATE_STATS_INFO_TX_RATE_STATS);
hal_tx_comp_get_buffer_timestamp(desc, ts); hal_tx_comp_get_buffer_timestamp_li(desc, ts);
} }
/** /**