qcacmn: Set bandwidth, MPDU retry threshold at peer register

Currently, bandwidth and corresponding MPDU retry threshold was
taken from tx packet status in per packet to update peer stats.
With this change, set bandwidth and MPDU retry threshold
during peer registration.

Change-Id: Iffd06968246d0b86b26716ae6672e2cd23360c67
CRs-Fixed: 3225479
This commit is contained in:
Ananya Gupta
2022-06-20 16:23:59 +05:30
committed by Madan Koyyalamudi
부모 721afd10ab
커밋 e52231c86e
5개의 변경된 파일77개의 추가작업 그리고 23개의 파일을 삭제

파일 보기

@@ -4037,7 +4037,8 @@ static inline void
dp_tx_update_peer_extd_stats(struct hal_tx_completion_status *ts,
struct dp_txrx_peer *txrx_peer)
{
uint8_t mcs, pkt_type, retry_threshold;
uint8_t mcs, pkt_type;
uint8_t retry_threshold = txrx_peer->mpdu_retry_threshold;
mcs = ts->mcs;
pkt_type = ts->pkt_type;
@@ -4084,19 +4085,9 @@ dp_tx_update_peer_extd_stats(struct hal_tx_completion_status *ts,
if (ts->first_msdu) {
DP_PEER_EXTD_STATS_INCC(txrx_peer, tx.retries_mpdu, 1,
ts->transmit_cnt > 1);
switch (ts->bw) {
case 0: /* 20Mhz */
case 1: /* 40Mhz */
case 2: /* 80Mhz */
retry_threshold = txrx_peer->mpdu_retry_threshold_1;
break;
default: /* 160Mhz */
retry_threshold = txrx_peer->mpdu_retry_threshold_2;
break;
}
if (!retry_threshold)
return;
DP_PEER_EXTD_STATS_INCC(txrx_peer, tx.mpdu_success_with_retries,
qdf_do_div(ts->transmit_cnt,
retry_threshold),