From patchwork Tue Apr 9 06:43:13 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Surabhi Vishnoi X-Patchwork-Id: 10890575 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 0FC381708 for ; Tue, 9 Apr 2019 06:43:24 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D5AF82887E for ; Tue, 9 Apr 2019 06:43:23 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D38AE288C7; Tue, 9 Apr 2019 06:43:23 +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=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.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 80F83288C4 for ; Tue, 9 Apr 2019 06:43:23 +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:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: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=f/thaKa+45o1dvKOO8qbfesHYeAAJ/74BK45AVyFFLA=; b=d89 8sxZHSmXj47efFj0VPamN5LzoDhUWLmmoROZdv+yoOD8EoGaPuHHdDtjMH9zcHvEpuwP9v7DNvPHt 3h0R4v1Kmz7ezMbCSjp6eoYJVr6gtuDeLp87IcTW3+7pfqlJjaVD82Ok9sZi526zRLe+iK52Rx+64 KUHqvcV/uTOicq746NXQsvetTC5RTiJKChjy9A/oFrAaUheiq5mB9UCA3W0Jn7xWTQ5mnCgOKaJ8Y XB5ElKxYr2E+bpJMrdKp9fwkcOMW5sx5GdYaPRx91EJadcYMoN269PeP+oI60WPffXMDbwFetQMGg M2R4uLt7jHvpMVgS1uYaD5pYauBiH/A==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1hDkTZ-0001SC-F7; Tue, 09 Apr 2019 06:43:21 +0000 Received: from smtp.codeaurora.org ([198.145.29.96]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hDkTX-0001Rj-He for ath10k@lists.infradead.org; Tue, 09 Apr 2019 06:43:20 +0000 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id C6F6E608FC; Tue, 9 Apr 2019 06:43:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1554792198; bh=kFOYAk60ne8u0i5mzjmPGCOUsWuG9qNfTN9bW1O7HG0=; h=From:To:Cc:Subject:Date:From; b=G18ayrlyxRnULuYg5rTEzcUsXPpde7uarBb8zBcplfI8Dm7vCtYL+5sb/fpGsJV+X vHSmZZMyNcGrLfeTfbr44nuANye5nem+u+FSmjuqbquJHqddl9rFy14jFRqkQxXAff nYPn7yGVN4P1bIGOSlh5pWkYP45mGFgBFjOSS78Y= Received: from svishnoi-linux.qualcomm.com (blr-c-bdr-fw-01_globalnat_allzones-outside.qualcomm.com [103.229.19.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: svishnoi@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 2BB0B60E57; Tue, 9 Apr 2019 06:43:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1554792198; bh=kFOYAk60ne8u0i5mzjmPGCOUsWuG9qNfTN9bW1O7HG0=; h=From:To:Cc:Subject:Date:From; b=G18ayrlyxRnULuYg5rTEzcUsXPpde7uarBb8zBcplfI8Dm7vCtYL+5sb/fpGsJV+X vHSmZZMyNcGrLfeTfbr44nuANye5nem+u+FSmjuqbquJHqddl9rFy14jFRqkQxXAff nYPn7yGVN4P1bIGOSlh5pWkYP45mGFgBFjOSS78Y= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 2BB0B60E57 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=svishnoi@codeaurora.org From: Surabhi Vishnoi To: ath10k@lists.infradead.org Subject: [PATCH] ath10k: Fix the wrong value of enums for wmi tlv stats id Date: Tue, 9 Apr 2019 12:13:13 +0530 Message-Id: <1554792193-22535-1-git-send-email-svishnoi@codeaurora.org> X-Mailer: git-send-email 1.9.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190408_234319_605115_5CD70999 X-CRM114-Status: UNSURE ( 8.89 ) 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: linux-wireless@vger.kernel.org, Surabhi Vishnoi MIME-Version: 1.0 Sender: "ath10k" Errors-To: ath10k-bounces+patchwork-ath10k=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP The enum value for WMI_TLV_STAT_PDEV, WMI_TLV_STAT_VDEV and WMI_TLV_STAT_PEER is wrong, due to which the vdev stats are not received from firmware in wmi_update_stats event. Fix the enum values for above stats to receive all stats from firmware in WMI_TLV_UPDATE_STATS_EVENTID. Tested HW: WCN3990 Tested FW: WLAN.HL.3.1-00784-QCAHLSWMTPLZ-1 Fixes: f40a307eb92c ("ath10k: Fill rx duration for each peer in fw_stats for WCN3990) Signed-off-by: Surabhi Vishnoi --- drivers/net/wireless/ath/ath10k/wmi.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/net/wireless/ath/ath10k/wmi.h b/drivers/net/wireless/ath/ath10k/wmi.h index e1c40bb..12f57f9 100644 --- a/drivers/net/wireless/ath/ath10k/wmi.h +++ b/drivers/net/wireless/ath/ath10k/wmi.h @@ -4535,9 +4535,10 @@ enum wmi_10_4_stats_id { }; enum wmi_tlv_stats_id { - WMI_TLV_STAT_PDEV = BIT(0), - WMI_TLV_STAT_VDEV = BIT(1), - WMI_TLV_STAT_PEER = BIT(2), + WMI_TLV_STAT_PEER = BIT(0), + WMI_TLV_STAT_AP = BIT(1), + WMI_TLV_STAT_PDEV = BIT(2), + WMI_TLV_STAT_VDEV = BIT(3), WMI_TLV_STAT_PEER_EXTD = BIT(10), };