qcacmn: Add last TX/RX timestamp in DP peer stats

Add timestamps for last TX/RX in peer stats. This stat is needed to be
passed on to upper layers on demand.

CRs-Fixed: 3059712
Change-Id: If0d8b7dc3c139e4d1b670bf98f3f574f02ea9715
This commit is contained in:
Mohit Khanna
2021-10-17 11:09:09 -07:00
committed by Madan Koyyalamudi
parent 81e29163db
commit 9d2cde1128
3 changed files with 8 additions and 0 deletions

View File

@@ -3755,6 +3755,7 @@ dp_tx_update_peer_stats(struct dp_tx_desc_s *tx_desc,
DP_STATS_INCC(peer, tx.mpdu_success_with_retries,
qdf_do_div(ts->transmit_cnt, DP_RETRY_COUNT),
ts->transmit_cnt > DP_RETRY_COUNT);
peer->stats.tx.last_tx_ts = qdf_system_ticks();
}
#ifdef QCA_LL_TX_FLOW_CONTROL_V2