mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 23:24:22 -04:00
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:
parent
dce7e20f02
commit
1173b39f0f
2 changed files with 6 additions and 0 deletions
|
|
@ -922,6 +922,7 @@ struct cdp_tx_stats {
|
|||
* @rssi: RSSI of received signal
|
||||
* @last_rssi: Previous rssi
|
||||
* @multipass_rx_pkt_drop: Dropped multipass rx pkt
|
||||
* @rx_mpdu_cnt: rx mpdu count per MCS rate
|
||||
*/
|
||||
struct cdp_rx_stats {
|
||||
struct cdp_pkt_info to_stack;
|
||||
|
|
@ -989,6 +990,7 @@ struct cdp_rx_stats {
|
|||
uint8_t rssi;
|
||||
uint8_t last_rssi;
|
||||
uint32_t multipass_rx_pkt_drop;
|
||||
uint32_t rx_mpdu_cnt[MAX_MCS];
|
||||
};
|
||||
|
||||
/* struct cdp_tx_ingress_stats - Tx ingress Stats
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue