From 0660a65062805cf894465a4734591a3d5edeff47 Mon Sep 17 00:00:00 2001 From: nobelj Date: Mon, 3 Apr 2023 11:54:01 -0700 Subject: [PATCH] qcacmn: Add fix to display WDI event and stats count On txrx_stats 260, wdi event stats are displayed with content as zero. Which need to be displayed only on non zero value. Change-Id: I5ad4595e35e977dd141584c92cdc164e153b7c0f CRs-Fixed: 3454039 --- dp/wifi3.0/dp_stats.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dp/wifi3.0/dp_stats.c b/dp/wifi3.0/dp_stats.c index 22c8969071..188186e221 100644 --- a/dp/wifi3.0/dp_stats.c +++ b/dp/wifi3.0/dp_stats.c @@ -7691,8 +7691,8 @@ dp_print_pdev_tx_stats(struct dp_pdev *pdev) pdev->stats.ppdu_wrap_drop); for (i = 0; i < CDP_WDI_NUM_EVENTS; i++) { - if (!pdev->stats.wdi_event[i]) - DP_PRINT_STATS("Wdi msgs received from fw[%d]:%d", + if (pdev->stats.wdi_event[i]) + DP_PRINT_STATS("Wdi msgs received for event ID[%d]:%d", i, pdev->stats.wdi_event[i]); }