From 1af817b3d3a6cd9f3678d7e1bb86e6b2ed3edb17 Mon Sep 17 00:00:00 2001 From: Yeshwanth Sriram Guntuka Date: Fri, 5 Mar 2021 15:30:41 +0530 Subject: [PATCH] qcacld-3.0: Reset the rx hw ext stats on connection CNE queries stats via the ext stats vendor cmd. As part of this, REO commands are enqueued to HW for each tid to get mpdu_rx and mpdu_rx_missed counts. In the scenario where the first ext stats request post STA disconnection and re-connection times out, the counts from the previous connection are reused. The second ext stats request can successfully get the new counts from HW in which case, there is a possiblity for the mpdu_rx count sent in the second stats response to be lower than the count sent in the first stats response. Fix is to reset the mpdu_rx and mpdu_rx_missed count on STA connection. Change-Id: I381f9b6b27d8d023b1932b7d8587df240c1ff4d0 CRs-Fixed: 2896791 --- core/hdd/src/wlan_hdd_assoc.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/hdd/src/wlan_hdd_assoc.c b/core/hdd/src/wlan_hdd_assoc.c index 26c082759ec6..bb6c826e7b8a 100644 --- a/core/hdd/src/wlan_hdd_assoc.c +++ b/core/hdd/src/wlan_hdd_assoc.c @@ -3124,6 +3124,9 @@ hdd_association_completion_handler(struct hdd_adapter *adapter, WLAN_IPA_STA_CONNECT, roam_info->bssid.bytes); + if (adapter->device_mode == QDF_STA_MODE) + cdp_reset_rx_hw_ext_stats(soc); + #ifdef FEATURE_WLAN_AUTO_SHUTDOWN wlan_hdd_auto_shutdown_enable(hdd_ctx, false); #endif