ath10k: fix the Transmit Power Control stats display format
authorMaharaja Kennadyrajan <c_mkenna@qti.qualcomm.com>
Fri, 31 Mar 2017 12:09:40 +0000 (17:39 +0530)
committerKalle Valo <kvalo@qca.qualcomm.com>
Wed, 5 Apr 2017 07:39:15 +0000 (10:39 +0300)
This patch helps to fix TPC stats to display the stats
properly. Here cosmetic change has been done to print the
TPC stats for all the cases 1.CDD 2.STBC 3.TXBF

Signed-off-by: Maharaja Kennadyrajan <c_mkenna@qti.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath10k/debug.c

index 00b424d99126a0c56b830efec0efec3dc30e8bcf..1339cc383797fc6fc936b5236e167e3eac3eb476 100644 (file)
@@ -1816,7 +1816,7 @@ static void ath10k_tpc_stats_fill(struct ath10k *ar,
                         tpc_stats->num_tx_chain,
                         tpc_stats->rate_max);
 
-       for (j = 0; j < tpc_stats->num_tx_chain ; j++) {
+       for (j = 0; j < WMI_TPC_FLAG; j++) {
                switch (j) {
                case WMI_TPC_TABLE_TYPE_CDD:
                        if (tpc_stats->flag[j] == ATH10K_TPC_TABLE_TYPE_FLAG) {