qcacmn: Update peer rx mpdu count per mcs rate

Update the peer rx mpdu count per mcs rate as part
of peer stats updation.

Change-Id: I945d32c7701f5f5c9bfbbaa6ab4576b94389c84c
CRs-Fixed: 2688068
This commit is contained in:
Yeshwanth Sriram Guntuka
2020-05-20 17:40:35 +05:30
committed by nshrivas
parent dce7e20f02
commit 1173b39f0f
2 changed files with 6 additions and 0 deletions

View File

@@ -1596,6 +1596,10 @@ static void dp_rx_msdu_stats_update(struct dp_soc *soc,
nss = hal_rx_msdu_start_nss_get(soc->hal_soc, rx_tlv_hdr);
pkt_type = hal_rx_msdu_start_get_pkt_type(rx_tlv_hdr);
DP_STATS_INCC(peer, rx.rx_mpdu_cnt[mcs], 1,
((mcs < MAX_MCS) && QDF_NBUF_CB_RX_CHFRAG_START(nbuf)));
DP_STATS_INCC(peer, rx.rx_mpdu_cnt[MAX_MCS - 1], 1,
((mcs >= MAX_MCS) && QDF_NBUF_CB_RX_CHFRAG_START(nbuf)));
DP_STATS_INC(peer, rx.bw[bw], 1);
/*
* only if nss > 0 and pkt_type is 11N/AC/AX,