From 18762e5b1697c3a7fdf85b0e49b6a7a5d9936c73 Mon Sep 17 00:00:00 2001 From: Jinwei Chen Date: Tue, 17 Nov 2020 19:17:46 -0800 Subject: [PATCH] qcacmn: Use rxdma error frame as rx_mpdu_error count RX error stats from REO2TCL ring is just for RX 2K jump/ OOR frame, host should not count them as rx_mpdu_error stats for user space which will think wifi connection is bad easily in noise environment. Align this part logic with Helium that count TKIP/MIC error frame, for HST/HSP, use error counted from RXDMA instead. Change-Id: I2e488bedaed166ce410c53eb7e9710d7933c2717 CRs-Fixed: 2821147 --- dp/wifi3.0/dp_main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dp/wifi3.0/dp_main.c b/dp/wifi3.0/dp_main.c index aafca3c697..2588d7af46 100644 --- a/dp/wifi3.0/dp_main.c +++ b/dp/wifi3.0/dp_main.c @@ -11375,8 +11375,8 @@ dp_txrx_ext_stats_request(struct cdp_soc_t *soc_hdl, uint8_t pdev_id, req->rx_mpdu_received = soc->ext_stats.rx_mpdu_received; req->rx_mpdu_delivered = soc->ext_stats.rx_mpdu_received; req->rx_mpdu_missed = soc->ext_stats.rx_mpdu_missed; - req->rx_mpdu_error = soc->stats.rx.err_ring_pkts - - soc->stats.rx.rx_frags; + /* only count error source from RXDMA */ + req->rx_mpdu_error = pdev->stats.err.rxdma_error; return QDF_STATUS_SUCCESS; }