From patchwork Wed Apr 27 11:43:23 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sujith Manoharan X-Patchwork-Id: 735531 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p3RCfO61007265 for ; Wed, 27 Apr 2011 12:44:58 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758620Ab1D0Lku (ORCPT ); Wed, 27 Apr 2011 07:40:50 -0400 Received: from mail-pw0-f46.google.com ([209.85.160.46]:55000 "EHLO mail-pw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758345Ab1D0Lku (ORCPT ); Wed, 27 Apr 2011 07:40:50 -0400 Received: by pwi15 with SMTP id 15so609306pwi.19 for ; Wed, 27 Apr 2011 04:40:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:mime-version:content-type :content-transfer-encoding:message-id:date:to:x-mailer:cc:subject; bh=ZcCV8FTa8LF3WMd7RqrmyBi9sy1SzPnIFl1Th2BkTEY=; b=ayrI2Wb+wUulcdfYe94yk90rMZ96SHx7k2kpLfZVY5EHnDt7NPstyWQ4bpnE0qCDbP dkbyqLg0oWrUMAeXccc0Xr0qkG87/yEVgmM8jlMwwPN8eI6d3XIE7T0UptN6yzA1D/fq 5LfvigXG1zmA9dpsHN8oIPh/kPJ3TI7a5vVrU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:mime-version:content-type:content-transfer-encoding:message-id :date:to:x-mailer:cc:subject; b=rtejcbm6i4aGGHeTCOnrTaaqgkKudQXylOBAPs9lmV5n32845xTzBAg7o8kS1OlbEd SHLromu9kO5fbHG+RYDZ3bZd8BmuW4gtHSgAyHCDAaPRO6dFQHoQsHcLWyvUNps1RDR/ mlAqfp5r3zpSPqP0NRkx9unJeKScvTT862pao= Received: by 10.142.154.13 with SMTP id b13mr507034wfe.161.1303904449527; Wed, 27 Apr 2011 04:40:49 -0700 (PDT) Received: from atheros-test ([182.72.177.186]) by mx.google.com with ESMTPS id p40sm353651wfc.19.2011.04.27.04.40.46 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 27 Apr 2011 04:40:48 -0700 (PDT) From: Sujith MIME-Version: 1.0 Message-ID: <19896.347.762620.660156@gargle.gargle.HOWL> Date: Wed, 27 Apr 2011 17:13:23 +0530 To: linville@tuxdriver.com X-Mailer: VM 8.1.1 under 23.3.1 (x86_64-unknown-linux-gnu) CC: linux-wireless@vger.kernel.org, ath9k-devel@venema.h4ckr.net Subject: [PATCH 3/4] ath9k_htc: Add a new WMI command to set a rate mask Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Wed, 27 Apr 2011 12:46:11 +0000 (UTC) From: Sujith Manoharan This patch adds WMI_BITRATE_MASK_CMDID which can be used by the set_bitrate_mask() handler. Signed-off-by: Sujith Manoharan --- drivers/net/wireless/ath/ath9k/htc.h | 7 +++++++ drivers/net/wireless/ath/ath9k/wmi.c | 2 ++ drivers/net/wireless/ath/ath9k/wmi.h | 1 + 3 files changed, 10 insertions(+), 0 deletions(-) diff --git a/drivers/net/wireless/ath/ath9k/htc.h b/drivers/net/wireless/ath/ath9k/htc.h index 55f4bb3..6bb71e3 100644 --- a/drivers/net/wireless/ath/ath9k/htc.h +++ b/drivers/net/wireless/ath/ath9k/htc.h @@ -171,6 +171,13 @@ struct ath9k_htc_target_rate { struct ath9k_htc_rate rates; }; +struct ath9k_htc_target_rate_mask { + u8 vif_index; + u8 band; + __be32 mask; + u16 pad; +} __packed; + struct ath9k_htc_target_int_stats { __be32 rx; __be32 rxorn; diff --git a/drivers/net/wireless/ath/ath9k/wmi.c b/drivers/net/wireless/ath/ath9k/wmi.c index 463b76a..f9b1eb4 100644 --- a/drivers/net/wireless/ath/ath9k/wmi.c +++ b/drivers/net/wireless/ath/ath9k/wmi.c @@ -79,6 +79,8 @@ static const char *wmi_cmd_to_name(enum wmi_cmd_id wmi_cmd) return "WMI_TX_STATS_CMDID"; case WMI_RX_STATS_CMDID: return "WMI_RX_STATS_CMDID"; + case WMI_BITRATE_MASK_CMDID: + return "WMI_BITRATE_MASK_CMDID"; } return "Bogus"; diff --git a/drivers/net/wireless/ath/ath9k/wmi.h b/drivers/net/wireless/ath/ath9k/wmi.h index 5dfc213..6095eeb 100644 --- a/drivers/net/wireless/ath/ath9k/wmi.h +++ b/drivers/net/wireless/ath/ath9k/wmi.h @@ -111,6 +111,7 @@ enum wmi_cmd_id { WMI_INT_STATS_CMDID, WMI_TX_STATS_CMDID, WMI_RX_STATS_CMDID, + WMI_BITRATE_MASK_CMDID, }; enum wmi_event_id {