qcacmn: Fix issues with rdkstats

The following issues are fixed with this change-
1. Sojourn stats were printing incorrect values
2. RSSI values were junk numbers

Change-Id: Ibed73cf370a309bf9db5baad37a0e8261c58463b
This commit is contained in:
Aakanksha Doda
2022-01-04 13:56:41 +05:30
committed by Madan Koyyalamudi
parent 3d9c419f95
commit d92a7a0776
6 changed files with 11 additions and 9 deletions

View File

@@ -3918,7 +3918,7 @@ static inline void dp_tx_sojourn_stats_process(struct dp_pdev *pdev,
sojourn_stats->cookie = (void *)peer->rdkstats_ctx;
delta_ms = qdf_ktime_to_ms(qdf_ktime_get()) -
delta_ms = qdf_ktime_to_ms(qdf_ktime_real_get()) -
txdesc_ts;
qdf_ewma_tx_lag_add(&peer->avg_sojourn_msdu[tid],
delta_ms);