From 7b6d21f76369cc268e4e4670d977a6bb41026fe0 Mon Sep 17 00:00:00 2001 From: Anish Nataraj Date: Mon, 30 Apr 2018 11:08:54 +0530 Subject: [PATCH] qcacmn: Populate Rx Raw, Tx Nawds multicast counters Aggregate vdev level tx nawds multicast counter and rx raw unicast packet counters from peer level Change-Id: Iee466587d67286e5bf8f87e8ce516ce8e00e6f68 CRs-Fixed: 2233242 --- dp/wifi3.0/dp_internal.h | 1 + dp/wifi3.0/dp_rx.c | 1 + 2 files changed, 2 insertions(+) diff --git a/dp/wifi3.0/dp_internal.h b/dp/wifi3.0/dp_internal.h index c279eef37b13..5a376eca7539 100644 --- a/dp/wifi3.0/dp_internal.h +++ b/dp/wifi3.0/dp_internal.h @@ -277,6 +277,7 @@ while (0) DP_STATS_AGGR_PKT(_tgtobj, _srcobj, tx.mcast); \ DP_STATS_AGGR_PKT(_tgtobj, _srcobj, tx.bcast); \ DP_STATS_AGGR_PKT(_tgtobj, _srcobj, tx.tx_success); \ + DP_STATS_AGGR_PKT(_tgtobj, _srcobj, tx.nawds_mcast); \ DP_STATS_AGGR(_tgtobj, _srcobj, tx.tx_failed); \ DP_STATS_AGGR(_tgtobj, _srcobj, tx.ofdma); \ DP_STATS_AGGR(_tgtobj, _srcobj, tx.stbc); \ diff --git a/dp/wifi3.0/dp_rx.c b/dp/wifi3.0/dp_rx.c index f4f6de10c3d0..579164f146d4 100644 --- a/dp/wifi3.0/dp_rx.c +++ b/dp/wifi3.0/dp_rx.c @@ -258,6 +258,7 @@ dp_rx_deliver_raw(struct dp_vdev *vdev, qdf_nbuf_t nbuf_list, DP_RX_LIST_APPEND(deliver_list_head, deliver_list_tail, nbuf); DP_STATS_INC(vdev->pdev, rx_raw_pkts, 1); + DP_STATS_INC_PKT(peer, rx.raw, 1, qdf_nbuf_len(nbuf)); /* * reset the chfrag_start and chfrag_end bits in nbuf cb * as this is a non-amsdu pkt and RAW mode simulation expects