From patchwork Wed Sep 23 10:57:27 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vivek Natarajan X-Patchwork-Id: 49516 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n8NAvih5019521 for ; Wed, 23 Sep 2009 10:57:44 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751911AbZIWK5j (ORCPT ); Wed, 23 Sep 2009 06:57:39 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751900AbZIWK5j (ORCPT ); Wed, 23 Sep 2009 06:57:39 -0400 Received: from mail-yw0-f174.google.com ([209.85.211.174]:51194 "EHLO mail-yw0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751812AbZIWK5i (ORCPT ); Wed, 23 Sep 2009 06:57:38 -0400 Received: by ywh4 with SMTP id 4so690722ywh.33 for ; Wed, 23 Sep 2009 03:57:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:cc:subject :message-id:mime-version:content-type:content-disposition:user-agent; bh=CbiumdAbF8FA9W6F78Cs3b/9e+LcxgjRaYLXBcuqRg4=; b=XmjGqG71ZS4mYjGeNboARezAnHVDQktRHZz0SbGRqhMPpEQjRSdEgm2ivCgQ+pmKc/ pKbIF5oBZB63bKxKMqDUl5Sucv7GLJNsCC3F16hSks13icqoxXSLI6D/Pis0VwkkYtSD 8V8B1+IUj8zvjRDX6ij23nHPG95lgYk5NNj9I= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:mime-version:content-type :content-disposition:user-agent; b=m+CqUvDBFJBXl/7iy9/sMoi5hV57f5xkto10WJRZngjmPS5LGfS7dX6lXsd4AObF2j MMJOlERJczE5tst6b+1SUTilYH4InDfdt3i2hpWm0ecz16xqGYf7DTxU/1pmagkab10C +a9gmlmZZSLykxRHpTpyXAn6fEsyWbGG0DVWA= Received: by 10.91.141.6 with SMTP id t6mr1261174agn.49.1253703462635; Wed, 23 Sep 2009 03:57:42 -0700 (PDT) Received: from vivek-laptop ([119.226.192.190]) by mx.google.com with ESMTPS id 38sm2175660aga.0.2009.09.23.03.57.39 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 23 Sep 2009 03:57:41 -0700 (PDT) Date: Wed, 23 Sep 2009 16:27:27 +0530 From: Vivek Natarajan To: linville@tuxdriver.com Cc: linux-wireless@vger.kernel.org Subject: [PATCH] ath9k: Initialize txgain and rxgain for newer AR9287 chipsets. Message-ID: <20090923105727.GA13880@vivek-laptop> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Signed-off-by: Vivek Natarajan --- drivers/net/wireless/ath/ath9k/hw.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/wireless/ath/ath9k/hw.c b/drivers/net/wireless/ath/ath9k/hw.c index f74604d..7a4de3d 100644 --- a/drivers/net/wireless/ath/ath9k/hw.c +++ b/drivers/net/wireless/ath/ath9k/hw.c @@ -814,7 +814,7 @@ static void ath9k_hw_init_mode_regs(struct ath_hw *ah) static void ath9k_hw_init_mode_gain_regs(struct ath_hw *ah) { - if (AR_SREV_9287_11(ah)) + if (AR_SREV_9287_11_OR_LATER(ah)) INIT_INI_ARRAY(&ah->iniModesRxGain, ar9287Modes_rx_gain_9287_1_1, ARRAY_SIZE(ar9287Modes_rx_gain_9287_1_1), 6); @@ -825,7 +825,7 @@ static void ath9k_hw_init_mode_gain_regs(struct ath_hw *ah) else if (AR_SREV_9280_20(ah)) ath9k_hw_init_rxgain_ini(ah); - if (AR_SREV_9287_11(ah)) { + if (AR_SREV_9287_11_OR_LATER(ah)) { INIT_INI_ARRAY(&ah->iniModesTxGain, ar9287Modes_tx_gain_9287_1_1, ARRAY_SIZE(ar9287Modes_tx_gain_9287_1_1), 6);