linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Felix Fietkau <nbd@openwrt.org>
To: "John W. Linville" <linville@tuxdriver.com>
Cc: Marek Lindner <lindner_marek@yahoo.de>,
	linux-wireless@vger.kernel.org, ath9k-devel@venema.h4ckr.net
Subject: Re: [PATCHv2] ath9k: remove eeprom txgain override for minor version < 19
Date: Wed, 10 Aug 2011 12:59:26 -0600	[thread overview]
Message-ID: <4E42D50E.2000608@openwrt.org> (raw)
In-Reply-To: <20110810175826.GB25266@tuxdriver.com>

On 2011-08-10 11:58 AM, John W. Linville wrote:
> On Wed, Aug 03, 2011 at 04:35:16PM +0200, Marek Lindner wrote:
>>  ath9k_hw_4k_get_eeprom() overrides the eeprom value for txgain if the
>>  minor version is not 19 or above with a value of 0.
>>  ar9002_hw_init_mode_gain_regs() relies on this information to
>>  determine whether this is a high power wifi card or not. The override
>>  caused the driver to always use the 'normal' power tables even for
>>  high power devices if their minor version was not high enough. Thus
>>  leading to reduced power output.
>>
>>  This isn't needed for the AR9285; the check originated with the
>>  AR9280 setup code which requires the EEPROM version check.
>>
>>  Signed-off-by: Marek Lindner<lindner_marek@yahoo.de>
>>  ---
>>   drivers/net/wireless/ath/ath9k/eeprom_4k.c |    5 +----
>>   1 files changed, 1 insertions(+), 4 deletions(-)
>>
>>  diff --git a/drivers/net/wireless/ath/ath9k/eeprom_4k.c b/drivers/net/wireless/ath/ath9k/eeprom_4k.c
>>  index 5b1e894..10f3072 100644
>>  --- a/drivers/net/wireless/ath/ath9k/eeprom_4k.c
>>  +++ b/drivers/net/wireless/ath/ath9k/eeprom_4k.c
>>  @@ -237,10 +237,7 @@ static u32 ath9k_hw_4k_get_eeprom(struct ath_hw *ah,
>>   	case EEP_ANT_DIV_CTL1:
>>   		return pModal->antdiv_ctl1;
>>   	case EEP_TXGAIN_TYPE:
>>  -		if (ver_minor>= AR5416_EEP_MINOR_VER_19)
>>  -			return pBase->txGainType;
>>  -		else
>>  -			return AR5416_EEP_TXGAIN_ORIGINAL;
>>  +		return pBase->txGainType;
>>   	default:
>>   		return 0;
>>   	}
>
> Any chance for an ACK from someone from Atheros on the ath9k team?
Acked-by: Felix Fietkau <nbd@openwrt.org>

  reply	other threads:[~2011-08-10 18:59 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-03  8:16 [PATCH] ath9k: remove eeprom txgain override for minor version < 19 Marek Lindner
2011-08-03  9:00 ` Adrian Chadd
2011-08-03 14:35 ` [PATCHv2] " Marek Lindner
2011-08-10 17:58   ` John W. Linville
2011-08-10 18:59     ` Felix Fietkau [this message]
2011-08-11  1:11     ` Adrian Chadd

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4E42D50E.2000608@openwrt.org \
    --to=nbd@openwrt.org \
    --cc=ath9k-devel@venema.h4ckr.net \
    --cc=lindner_marek@yahoo.de \
    --cc=linux-wireless@vger.kernel.org \
    --cc=linville@tuxdriver.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).