Browse Source

qcacld-3.0: Correct tx power value

It's 0.5 db unit from halphy, so correct the tx power in host side.

Change-Id: I119f86814310d402a8bf4c200c92a680488e5731
CRs-Fixed: 3030628
Wu Gao 3 years ago
parent
commit
943e48a155
1 changed files with 5 additions and 1 deletions
  1. 5 1
      components/target_if/cp_stats/src/target_if_mc_cp_stats.c

+ 5 - 1
components/target_if/cp_stats/src/target_if_mc_cp_stats.c

@@ -380,7 +380,11 @@ static QDF_STATUS target_if_cp_stats_extract_pdev_stats(
 			qdf_mem_free(pdev_stats);
 			return status;
 		}
-		ev->pdev_stats[i].max_pwr = pdev_stats->chan_tx_pwr;
+
+		/*
+		 * It's 0.5 db unit from halphy. so correct the value here
+		 */
+		ev->pdev_stats[i].max_pwr = pdev_stats->chan_tx_pwr >> 1;
 
 		/*
 		 * if pdev_stats->pdev_id is 0, then the event contains all