浏览代码

qcacmn: Populate rx raw stats at peer level

Add rx raw unicast packet counters from peer level

Change-Id: I13f9aaf5c62be86f5ba3cc750d5ee1ec698f424f
CRs-Fixed: 2233242
Chaithanya Garrepalli 7 年之前
父节点
当前提交
9b3988c245
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      dp/wifi3.0/dp_rx.c

+ 2 - 0
dp/wifi3.0/dp_rx.c

@@ -257,6 +257,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);
 		/*
 		 * reset the chfrag_start and chfrag_end bits in nbuf cb
 		 * as this is a non-amsdu pkt and RAW mode simulation expects
@@ -1519,6 +1520,7 @@ done:
 				htt_cmn_pkt_type_raw)) {
 
 			DP_STATS_INC(vdev->pdev, rx_raw_pkts, 1);
+			DP_STATS_INC_PKT(peer, rx.raw, 1, qdf_nbuf_len(nbuf));
 
 			nbuf = dp_rx_sg_create(nbuf, rx_tlv_hdr);
 			next = nbuf->next;