Ver Fonte

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
Venkateswara Swamy Bandaru há 5 anos atrás
pai
commit
0605cde1f1
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      dp/wifi3.0/dp_main.c

+ 1 - 1
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;
 }