From 4481b85d481d5da5a45dcaf048a753c9f03d2fca Mon Sep 17 00:00:00 2001 From: Dustin Brown Date: Tue, 7 Mar 2017 14:21:03 -0800 Subject: qcacld-3.0: Increment PNO complete stats from NLO callback Increment the pno_complete stats counter from the Network Listen Offload (NLO) complete callback, in order to keep pno_match and pno_complete stats synchronized. Change-Id: I7ac7edeb3a10498549dceee1874c99ea3095f28e CRs-Fixed: 2016236 --- core/wma/src/wma_scan_roam.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/wma/src/wma_scan_roam.c b/core/wma/src/wma_scan_roam.c index b93c73d8950e..a3d76ca281ee 100644 --- a/core/wma/src/wma_scan_roam.c +++ b/core/wma/src/wma_scan_roam.c @@ -3549,8 +3549,9 @@ int wma_nlo_scan_cmp_evt_handler(void *handle, uint8_t *event, qdf_wake_lock_release(&wma->pno_wake_lock, WIFI_POWER_EVENT_WAKELOCK_PNO); - scan_event = - (tSirScanOffloadEvent *) + node->wow_stats.pno_complete++; + + scan_event = (tSirScanOffloadEvent *) qdf_mem_malloc(sizeof(tSirScanOffloadEvent)); if (scan_event) { /* Posting scan completion msg would take scan cache result -- cgit v1.2.3