qcacmn: Fill peer Tx/Rx statistics from ppdu

Fill peer level statistics such as nss, mcs, etc. from ppdu descriptor

Change-Id: Ibc348b7fa1b6438adc06de74aeff36c882519a80
This commit is contained in:
Neha Bisht
2021-08-09 20:29:48 +05:30
committed by Madan Koyyalamudi
parent b33b9d857d
commit 942476d37d
4 changed files with 56 additions and 0 deletions

View File

@@ -1525,6 +1525,11 @@ dp_tx_rate_stats_update(struct dp_peer *peer,
ppdu_tx_rate = dp_ath_rate_out(peer->stats.tx.avg_tx_rate);
DP_STATS_UPD(peer, tx.rnd_avg_tx_rate, ppdu_tx_rate);
peer->stats.tx.bw_info = ppdu->bw;
peer->stats.tx.gi_info = ppdu->gi;
peer->stats.tx.nss_info = ppdu->nss;
peer->stats.tx.mcs_info = ppdu->mcs;
peer->stats.tx.preamble_info = ppdu->preamble;
if (peer->vdev) {
/*
* In STA mode: