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: 5748301 Return-Path: X-Original-To: patchwork-linux-wireless@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 A11D2BF6C3 for ; Fri, 30 Jan 2015 09:48:37 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C45AE20263 for ; Fri, 30 Jan 2015 09:48:36 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id F184320260 for ; Fri, 30 Jan 2015 09:48:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755492AbbA3Js2 (ORCPT ); Fri, 30 Jan 2015 04:48:28 -0500 Received: from mail-we0-f181.google.com ([74.125.82.181]:61569 "EHLO mail-we0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755075AbbA3Js1 (ORCPT ); Fri, 30 Jan 2015 04:48:27 -0500 Received: by mail-we0-f181.google.com with SMTP id k48so26125513wev.12 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=TklU2QV3EtQ+epJmGj27Haw0hdZx4q1yUaVGI+dNtxMt3kSugdR4WmhP58pJ6HFkXO Ag7QAsf5lv6NuL9SWen3QhBay8koY6Mem8g27zw2EivnfnECSvk/w6+56yO1mBs7v/Ou UhQPFMmhs50VEomyOV+V5ipD5WFL+7zZKcErEN7sgpN1isbX473zvo43yoStKkEo908U GXbdRchCWT5XKcmTAHnOQVVch9xz6MI3Au2G4PlFULLtJnanFZ6Hr8LUjxAOB5kFB8B1 5DvL+lYjM8gEPROLf25eXQ3hd9LD6owzojNvV1BcoNmcOMf3HXoD0oPAzXvfyeptedJZ SIzg== X-Gm-Message-State: ALoCoQnHYAhiFtZI+NriHFtep7TqGfrKLSzlBRo6Y864/9YvVH9MmMFWsNS8SDpDebaGo3vlXmhSNmbcPSRsDa4fbuNkXD3gZmWgZ3QVZlbG4T9M1d0/OApMTOv4gs2NFoZNDKadCKOe 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 Cc: linux-wireless@vger.kernel.org, Michal Kazior 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 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,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