From 6943747a55cf10c1ad37822241f4e97318176f2a Mon Sep 17 00:00:00 2001 From: Nachiket Kukade Date: Wed, 6 Mar 2019 11:48:13 +0530 Subject: [PATCH] qcacmn: Remove redundant counter increments under RA match event In the case of WOW resume due to RA match event, driver will update the protocol and destination type WOW stats after parsing the data packet. The same stats are again incremented under RA match case in TX op that is called in wma_inc_wow_stats. This is causing counters to increment twice for each packet. Therefore remove the increment of wow stats from TX op case. Remove redundant counter increments under RA match event in target_if_cp_stats_inc_wake_lock_stats. Change-Id: I10486d083175772f976542a38364ba964c8e1a87 CRs-Fixed: 2406975 --- target_if/cp_stats/src/target_if_mc_cp_stats.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/target_if/cp_stats/src/target_if_mc_cp_stats.c b/target_if/cp_stats/src/target_if_mc_cp_stats.c index 46fa14d1bf..ae16d45cd8 100644 --- a/target_if/cp_stats/src/target_if_mc_cp_stats.c +++ b/target_if/cp_stats/src/target_if_mc_cp_stats.c @@ -406,12 +406,6 @@ static void target_if_cp_stats_inc_wake_lock_stats(uint32_t reason, stats->mgmt_action++; break; - case WOW_REASON_RA_MATCH: - stats->ipv6_mcast_wake_up_count++; - stats->ipv6_mcast_ra_stats++; - stats->icmpv6_count++; - break; - case WOW_REASON_NLOD: stats->pno_match_wake_up_count++; break;