From 0605cde1f1b20b7615a8e8bc77f8115a690bffe6 Mon Sep 17 00:00:00 2001 From: Venkateswara Swamy Bandaru Date: Tue, 21 Jan 2020 18:42:38 +0530 Subject: [PATCH] qcacmn: Fix issue in athstats Incorrect size is given while copying pdev stats. Fix this by properly passing pdev stats struct while calculating size of pdev stats. Change-Id: I4b4be2542d092c5c984252a62e2406cb1e83bcd8 CRs-Fixed: 2603674 --- dp/wifi3.0/dp_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dp/wifi3.0/dp_main.c b/dp/wifi3.0/dp_main.c index ca957d108acb..777bd9ec05f5 100644 --- a/dp/wifi3.0/dp_main.c +++ b/dp/wifi3.0/dp_main.c @@ -8946,7 +8946,7 @@ dp_txrx_stats_publish(struct cdp_soc_t *soc, uint8_t pdev_id, req.cookie_val, 0); msleep(DP_MAX_SLEEP_TIME); - qdf_mem_copy(buf, &pdev->stats, sizeof(struct cdp_stats_extd)); + qdf_mem_copy(buf, &pdev->stats, sizeof(struct cdp_pdev_stats)); return TXRX_STATS_LEVEL; }