qcacmn: Add RX stats support for Direct switch
Add support to send RX stats when Direct switch is enabled. For WDS extended mode get the stats from peer object, else take it from vdev object. These will be accumulated by PPEDS module Change-Id: I1f73c50679c416536cfc1ebaaeaec9b307e8bf56 CRs-Fixed: 3421251
This commit is contained in:

committed by
Madan Koyyalamudi

szülő
543c9847e4
commit
1598a12f5c
@@ -5780,8 +5780,8 @@ static QDF_STATUS dp_vdev_getstats(struct cdp_vdev *vdev_handle,
|
||||
vdev_stats = qdf_mem_malloc_atomic(sizeof(struct cdp_vdev_stats));
|
||||
|
||||
if (!vdev_stats) {
|
||||
dp_cdp_err("%pK: DP alloc failure - unable to get alloc vdev stats",
|
||||
soc);
|
||||
dp_err("%pK: DP alloc failure - unable to get alloc vdev stats",
|
||||
soc);
|
||||
return QDF_STATUS_E_FAILURE;
|
||||
}
|
||||
|
||||
@@ -5823,7 +5823,8 @@ static QDF_STATUS dp_vdev_getstats(struct cdp_vdev *vdev_handle,
|
||||
vdev_stats->rx.peer_unauth_rx_pkt_drop +
|
||||
vdev_stats->rx.policy_check_drop +
|
||||
vdev_stats->rx.nawds_mcast_drop +
|
||||
vdev_stats->rx.mcast_3addr_drop;
|
||||
vdev_stats->rx.mcast_3addr_drop +
|
||||
vdev_stats->rx.ppeds_drop.num;
|
||||
|
||||
qdf_mem_free(vdev_stats);
|
||||
|
||||
@@ -5884,6 +5885,7 @@ static void dp_pdev_getstats(struct cdp_pdev *pdev_handle,
|
||||
pdev->stats.dropped.mon_rx_drop +
|
||||
pdev->stats.dropped.mon_radiotap_update_err +
|
||||
pdev->stats.rx.mec_drop.num +
|
||||
pdev->stats.rx.ppeds_drop.num +
|
||||
pdev->stats.rx.multipass_rx_pkt_drop +
|
||||
pdev->stats.rx.peer_unauth_rx_pkt_drop +
|
||||
pdev->stats.rx.policy_check_drop +
|
||||
|
Reference in New Issue
Block a user