Browse Source

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
Sourav Mohapatra 6 years ago
parent
commit
791789e341
1 changed files with 1 additions and 0 deletions
  1. 1 0
      umac/cp_stats/dispatcher/src/wlan_cp_stats_mc_ucfg_api.c

+ 1 - 0
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;