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
This commit is contained in:
Venkateswara Swamy Bandaru
2020-01-21 18:42:38 +05:30
committed by nshrivas
parent 61ec40476d
commit 0605cde1f1

View File

@@ -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;
}