From 791789e341f1ae434f83ae6e438fc9dc8e76e28c Mon Sep 17 00:00:00 2001 From: Sourav Mohapatra Date: Mon, 22 Apr 2019 08:58:10 +0530 Subject: [PATCH] qcacmn: Add case to increment ICMP req frames in stats Currently while processing wakeup stats, the driver doesnot increment the icmpv4 packet count in case of a ICMP req frame. This causes only the unicast packet counts to be incremented. Add a case in function ucfg_mc_cp_stats_inc_wake_lock_stats_by_protocol to increment the count in the above mentioned case also. Change-Id: I0ee3e6e91f3bc7a8d9043af1af46739037cb7678 CRs-Fixed: 2439237 --- umac/cp_stats/dispatcher/src/wlan_cp_stats_mc_ucfg_api.c | 1 + 1 file changed, 1 insertion(+) diff --git a/umac/cp_stats/dispatcher/src/wlan_cp_stats_mc_ucfg_api.c b/umac/cp_stats/dispatcher/src/wlan_cp_stats_mc_ucfg_api.c index ca85ca149e8b..8c629782835c 100644 --- a/umac/cp_stats/dispatcher/src/wlan_cp_stats_mc_ucfg_api.c +++ b/umac/cp_stats/dispatcher/src/wlan_cp_stats_mc_ucfg_api.c @@ -156,6 +156,7 @@ QDF_STATUS ucfg_mc_cp_stats_inc_wake_lock_stats_by_protocol( vdev_mc_stats = vdev_cp_stats_priv->vdev_stats; stats = &vdev_mc_stats->wow_stats; switch (protocol) { + case QDF_PROTO_ICMP_REQ: case QDF_PROTO_ICMP_RES: stats->icmpv4_count++; break;