浏览代码

qcacmn: Fix Rx unicast issue at pdev stats level

As multicast is supreset for mcast and bcast,
derive pdev unicast stats only from to_stack and multicast.

Change-Id: I207e1e1d1950b52e0758aac539c79c1865192371
CRs-Fixed: 2323824
Amir Patel 6 年之前
父节点
当前提交
9e96f02458
共有 1 个文件被更改,包括 2 次插入4 次删除
  1. 2 4
      dp/wifi3.0/dp_internal.h

+ 2 - 4
dp/wifi3.0/dp_internal.h

@@ -340,12 +340,10 @@ static inline void dp_update_pdev_stats(struct dp_pdev *tgtobj,
 
 	srcobj->rx.unicast.num =
 		srcobj->rx.to_stack.num -
-				(srcobj->rx.multicast.num +
-				srcobj->rx.bcast.num);
+				(srcobj->rx.multicast.num);
 	srcobj->rx.unicast.bytes =
 		srcobj->rx.to_stack.bytes -
-				(srcobj->rx.multicast.bytes +
-				srcobj->rx.bcast.bytes);
+				(srcobj->rx.multicast.bytes);
 
 	tgtobj->stats.rx.unicast.num += srcobj->rx.unicast.num;
 	tgtobj->stats.rx.unicast.bytes += srcobj->rx.unicast.bytes;