From patchwork Fri Jan 30 09:47:23 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Kazior X-Patchwork-Id: 5748341 Return-Path: X-Original-To: patchwork-ath10k@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 9AE3DBF440 for ; Fri, 30 Jan 2015 09:48:54 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id D609C2025A for ; Fri, 30 Jan 2015 09:48:53 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 245982018E for ; Fri, 30 Jan 2015 09:48:53 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1YH8C2-0005lx-1y; Fri, 30 Jan 2015 09:48:50 +0000 Received: from mail-wi0-x234.google.com ([2a00:1450:400c:c05::234]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1YH8By-0005cc-Nt for ath10k@lists.infradead.org; Fri, 30 Jan 2015 09:48:47 +0000 Received: by mail-wi0-f180.google.com with SMTP id h11so1571246wiw.1 for ; Fri, 30 Jan 2015 01:48:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tieto.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=VLALgDAxGfYpEf07bc2+PX8FOY0D1jDGUoWu2Ny+TY4=; b=OASo0lmNVDGnsQkGpaYfM2ZG7r/6Oz1jJLyNlIlRKQDcLwAodpq3dESiUtL+U/GK3d ZjxDy9YDsdO6OJpFMQLepIhZ+PxF91qfOzYWewiJJZFyw0ZgfDno4SRmHzBU2sGdUmpc bt9AuwUu/FghWrvC7PEivKJaSX0ivqjLQPk+U= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=VLALgDAxGfYpEf07bc2+PX8FOY0D1jDGUoWu2Ny+TY4=; b=GdW+31FENfViLn/dH4bmXOZvRltdxGjw3YrJ97jEAsVdkcSx+hTZpl50gg2drzuMGm sbZAjrbtfmHAiHIQfKhwN36nFvTRiJ/Ee6RuKfIfy708WZYgfs38YYCVTfNiBe7O+SUu XbXqkAB+S1TaWPKMafbERlpmZJNbQ8vfzUYjxhBDGjQ17XQQz98WXWD1tREX04Dksu78 dkUVL9R886zcn1TEptDPZm0mMR1NkPBRaBoyWhRuMCbneh9EvTJ+omOag+fAX+2f6jkm NE14EUY8uRG8RwxROLtwuYJaYI6QZwnj9r/92FMnCLCz6B1hcKWOrg9SFN/mfVKnzCRU cjzg== X-Gm-Message-State: ALoCoQlaC28tAuk1C1a7koknA7trPQZIWoTQM1+wIgXUVUNrPp8LuiIs7KpPXHNslrxFTy1OlALvm9Rst8qulw9LC4zKKYnVotBEJ0fpJfUuu/wRA48yvkxm756XucDTL+C43q0FIWa5F/M6WkfgHyTQLGshlKHUahmRZdnUw0bj2dVnhPXPNzI= X-Received: by 10.180.108.165 with SMTP id hl5mr2999793wib.39.1422611302360; Fri, 30 Jan 2015 01:48:22 -0800 (PST) Received: from bob.homerouter.cpe (apn-31-1-134-151.dynamic.gprs.plus.pl. [31.1.134.151]) by mx.google.com with ESMTPSA id q5sm2319686wix.0.2015.01.30.01.48.21 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 30 Jan 2015 01:48:21 -0800 (PST) From: Michal Kazior To: ath10k@lists.infradead.org Subject: [PATCH 3/4] ath10k: add more wmi fw stat defines Date: Fri, 30 Jan 2015 10:47:23 +0100 Message-Id: <1422611244-20767-4-git-send-email-michal.kazior@tieto.com> X-Mailer: git-send-email 1.8.5.3 In-Reply-To: <1422611244-20767-1-git-send-email-michal.kazior@tieto.com> References: <1422611244-20767-1-git-send-email-michal.kazior@tieto.com> X-DomainID: tieto.com X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150130_014846_943034_423A04E2 X-CRM114-Status: UNSURE ( 8.71 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.8 (/) Cc: linux-wireless@vger.kernel.org, Michal Kazior X-BeenThere: ath10k@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "ath10k" Errors-To: ath10k-bounces+patchwork-ath10k=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP New qca6174 wmi-tlv firmware revisions support more stat event bits. Signed-off-by: Michal Kazior --- drivers/net/wireless/ath/ath10k/debug.c | 2 +- drivers/net/wireless/ath/ath10k/wmi.h | 10 +++++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/drivers/net/wireless/ath/ath10k/debug.c b/drivers/net/wireless/ath/ath10k/debug.c index f0a6b93..33f36ee 100644 --- a/drivers/net/wireless/ath/ath10k/debug.c +++ b/drivers/net/wireless/ath/ath10k/debug.c @@ -395,7 +395,7 @@ static int ath10k_debug_fw_stats_request(struct ath10k *ar) reinit_completion(&ar->debug.fw_stats_complete); - ret = ath10k_wmi_request_stats(ar, WMI_REQUEST_PEER_STAT); + ret = ath10k_wmi_request_stats(ar, WMI_STAT_PEER); if (ret) { ath10k_warn(ar, "could not request stats (%d)\n", ret); return ret; diff --git a/drivers/net/wireless/ath/ath10k/wmi.h b/drivers/net/wireless/ath/ath10k/wmi.h index 20ce360..0eb0959 100644 --- a/drivers/net/wireless/ath/ath10k/wmi.h +++ b/drivers/net/wireless/ath/ath10k/wmi.h @@ -3057,8 +3057,12 @@ struct wmi_pdev_stats_peer { } __packed; enum wmi_stats_id { - WMI_REQUEST_PEER_STAT = 0x01, - WMI_REQUEST_AP_STAT = 0x02 + WMI_STAT_PEER = BIT(0), + WMI_STAT_AP = BIT(1), + WMI_STAT_PDEV = BIT(2), + WMI_STAT_VDEV = BIT(3), + WMI_STAT_BCNFLT = BIT(4), + WMI_STAT_VDEV_RATE = BIT(5), }; struct wlan_inst_rssi_args { @@ -3093,7 +3097,7 @@ struct wmi_pdev_suspend_cmd { } __packed; struct wmi_stats_event { - __le32 stats_id; /* %WMI_REQUEST_ */ + __le32 stats_id; /* WMI_STAT_ */ /* * number of pdev stats event structures * (wmi_pdev_stats) 0 or 1