From patchwork Fri Mar 31 12:09:40 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: c_mkenna@qti.qualcomm.com X-Patchwork-Id: 9656133 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 69FEE601D2 for ; Fri, 31 Mar 2017 12:08:53 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5A564285D4 for ; Fri, 31 Mar 2017 12:08:53 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4EE3628689; Fri, 31 Mar 2017 12:08:53 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id CD31E285D4 for ; Fri, 31 Mar 2017 12:08:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=grUUaLcSfZJ3pzXACdzkawSYu+6N5S9huIBxWIPQp2w=; b=YzOVxb8yZ+5tDQ 5KqyvaFlEbaVUNjqhbTep9nxDv27CVi0XcUReKFOOu43oeZjU1AJPZVyj/uukDUrIUZRyZOkg4pzT Kb88LYS+3MSsEOuQmVYe8QGre7jA5YlIBNQxtol6KgPUuH9bBOIT9qpVYJYLvEKIERukXX/GxvHd/ i+7pgRSMuAv5Ogd2yxJ/gs3iZQqix6bTkB0SrZeTgSDSJfeAxlDuoR8fDwPkUeXc/l5UJkJmJP/XV T/Sbr0GU3JyQFkD2gLXFKquAY6Zr5W2+SeDHe17GyEV5hcdunDSGQSgKyBVDEKgOEbD7dczLqIMQR fvzEfxGn9IrLyj6h/Vzw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1ctvME-0003IU-9Y; Fri, 31 Mar 2017 12:08:46 +0000 Received: from wolverine01.qualcomm.com ([199.106.114.254]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1ctvM9-0003Gt-9j for ath10k@lists.infradead.org; Fri, 31 Mar 2017 12:08:44 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=qti.qualcomm.com; i=@qti.qualcomm.com; q=dns/txt; s=qcdkim; t=1490962121; x=1522498121; h=from:to:cc:subject:date:message-id:mime-version; bh=l0HpXbxzHAzqbK4pB3kGdsCxJsRhRa5kDo8zrg/RzOg=; b=lDcC1Y2I3iasRiHxYOL9w49x6iS2pw8eLCB10DEjHac1q0RJKfEWcN6D stHNLYce5bkKGYbUNpIqAt/rBJO5LEs+VMcxKg3gnmB0jG0v8SDYoOaly MSQnHC4QWfPWvxLj8TjOnV2QEivrMKaz/SDiq0BbgWdvr1ODPkhUNXOVT U=; X-IronPort-AV: E=Sophos;i="5.36,251,1486454400"; d="scan'208";a="275058186" Received: from unknown (HELO Ironmsg04-L.qualcomm.com) ([10.53.140.111]) by wolverine01.qualcomm.com with ESMTP; 31 Mar 2017 05:08:20 -0700 X-IronPort-AV: E=McAfee;i="5800,7501,8483"; a="1319778628" X-MGA-submission: =?us-ascii?q?MDFGLFHeSVp5A8BAAQeUMwCeN2uL9YU5D3bCIO?= =?us-ascii?q?eaMHgHp3c7kYr3jmsWTKJns2Hewhbg89yywlhlPhyOjvBuH+O+RIIzyp?= =?us-ascii?q?F/DcWqKWBAxJZN20nPNIjG1olxRm6+GhfNXPjTIPOETo1U282mOnf8zJ?= =?us-ascii?q?gb?= Received: from nasanexm02f.na.qualcomm.com ([10.85.0.87]) by Ironmsg04-L.qualcomm.com with ESMTP/TLS/RC4-SHA; 31 Mar 2017 05:08:20 -0700 Received: from aphydexm01b.ap.qualcomm.com (10.252.127.11) by nasanexm02f.na.qualcomm.com (10.85.0.87) with Microsoft SMTP Server (TLS) id 15.0.1178.4; Fri, 31 Mar 2017 05:08:19 -0700 Received: from localhost (10.80.80.8) by aphydexm01b.ap.qualcomm.com (10.252.127.11) with Microsoft SMTP Server (TLS) id 15.0.1178.4; Fri, 31 Mar 2017 17:38:13 +0530 From: To: Subject: [PATCH] ath10k: Fix the Transmit Power Control stats display format Date: Fri, 31 Mar 2017 17:39:40 +0530 Message-ID: <1490962180-24054-1-git-send-email-c_mkenna@qti.qualcomm.com> X-Mailer: git-send-email 1.7.9.5 MIME-Version: 1.0 X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: NASANEXM01F.na.qualcomm.com (10.85.0.32) To aphydexm01b.ap.qualcomm.com (10.252.127.11) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170331_050841_484833_EF7A25CF X-CRM114-Status: UNSURE ( 6.60 ) X-CRM114-Notice: Please train this message. X-BeenThere: ath10k@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: mkenna@codeaurora.org, linux-wireless@vger.kernel.org, Maharaja Kennadyrajan Sender: "ath10k" Errors-To: ath10k-bounces+patchwork-ath10k=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: Maharaja Kennadyrajan 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 --- drivers/net/wireless/ath/ath10k/debug.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/ath/ath10k/debug.c b/drivers/net/wireless/ath/ath10k/debug.c index 00b424d..1339cc3 100644 --- a/drivers/net/wireless/ath/ath10k/debug.c +++ b/drivers/net/wireless/ath/ath10k/debug.c @@ -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) {