From: Gabor Juhos <juhosg@openwrt.org>
To: ath9k-devel@lists.ath9k.org
Subject: [ath9k-devel] [RFC 2/2] ath9k: fix tx power settings for AR9287
Date: Sun, 15 Apr 2012 19:23:34 +0200 [thread overview]
Message-ID: <4F8B0416.1030400@openwrt.org> (raw)
In-Reply-To: <20362.11117.884392.679390@gargle.gargle.HOWL>
2012.04.15. 3:59 keltez?ssel, Sujith Manoharan ?rta:
> Gabor Juhos wrote:
>> The 'ath9k_hw_update_regulatory_maxpower'
>> helper function has been introduced by
>> commit a55f858852e4345d0a31af593c46738ca8614bff
>> (ath9k_hw: Cleanup TX power calculation for AR9287).
>>
>> Updating of the max_power_level value has been moved
>> into the helper function in that change, however the
>> removed code from 'ath9k_hw_ar9287_set_txpower' has
>> not been replaced with a call of the new helper
>> function.
>>
>> Due to that missing call, retrieving tx power for 2x2
>> and 3x3 chainmask is not handled properly. During the
>> calculation of the tx power for 2x2 and 3x3 chainmasks
>> the values are reduced. Those reductions must be
>> compensated during retrieving.
>>
>> Fix this by adding the missing call of the helper
>> function.
>>
>> Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
>> Cc: Sujith Manoharan <c_manoha@qca.qualcomm.com>
>> ---
>> drivers/net/wireless/ath/ath9k/eeprom_9287.c | 2 ++
>> 1 files changed, 2 insertions(+), 0 deletions(-)
>>
>> diff --git a/drivers/net/wireless/ath/ath9k/eeprom_9287.c b/drivers/net/wireless/ath/ath9k/eeprom_9287.c
>> index f272236..b34e8b2 100644
>> --- a/drivers/net/wireless/ath/ath9k/eeprom_9287.c
>> +++ b/drivers/net/wireless/ath/ath9k/eeprom_9287.c
>> @@ -824,6 +824,8 @@ static void ath9k_hw_ar9287_set_txpower(struct ath_hw *ah,
>> regulatory->max_power_level = ratesArray[i];
>> }
>>
>> + ath9k_hw_update_regulatory_maxpower(ah);
>> +
>
> Looks like I got confused between 4K-based cards and AR9287.
> Thanks for catching this.
>
> Acked-by: Sujith Manoharan <c_manoha@qca.qualcomm.com>
Thanks, I will resend this as a regular patch.
-Gabor
WARNING: multiple messages have this Message-ID (diff)
From: Gabor Juhos <juhosg@openwrt.org>
To: Sujith Manoharan <c_manoha@qca.qualcomm.com>
Cc: "John W. Linville" <linville@tuxdriver.com>,
linux-wireless@vger.kernel.org,
"ath9k-devel@lists.ath9k.org" <ath9k-devel@venema.h4ckr.net>
Subject: Re: [RFC 2/2] ath9k: fix tx power settings for AR9287
Date: Sun, 15 Apr 2012 19:23:34 +0200 [thread overview]
Message-ID: <4F8B0416.1030400@openwrt.org> (raw)
In-Reply-To: <20362.11117.884392.679390@gargle.gargle.HOWL>
2012.04.15. 3:59 keltezéssel, Sujith Manoharan írta:
> Gabor Juhos wrote:
>> The 'ath9k_hw_update_regulatory_maxpower'
>> helper function has been introduced by
>> commit a55f858852e4345d0a31af593c46738ca8614bff
>> (ath9k_hw: Cleanup TX power calculation for AR9287).
>>
>> Updating of the max_power_level value has been moved
>> into the helper function in that change, however the
>> removed code from 'ath9k_hw_ar9287_set_txpower' has
>> not been replaced with a call of the new helper
>> function.
>>
>> Due to that missing call, retrieving tx power for 2x2
>> and 3x3 chainmask is not handled properly. During the
>> calculation of the tx power for 2x2 and 3x3 chainmasks
>> the values are reduced. Those reductions must be
>> compensated during retrieving.
>>
>> Fix this by adding the missing call of the helper
>> function.
>>
>> Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
>> Cc: Sujith Manoharan <c_manoha@qca.qualcomm.com>
>> ---
>> drivers/net/wireless/ath/ath9k/eeprom_9287.c | 2 ++
>> 1 files changed, 2 insertions(+), 0 deletions(-)
>>
>> diff --git a/drivers/net/wireless/ath/ath9k/eeprom_9287.c b/drivers/net/wireless/ath/ath9k/eeprom_9287.c
>> index f272236..b34e8b2 100644
>> --- a/drivers/net/wireless/ath/ath9k/eeprom_9287.c
>> +++ b/drivers/net/wireless/ath/ath9k/eeprom_9287.c
>> @@ -824,6 +824,8 @@ static void ath9k_hw_ar9287_set_txpower(struct ath_hw *ah,
>> regulatory->max_power_level = ratesArray[i];
>> }
>>
>> + ath9k_hw_update_regulatory_maxpower(ah);
>> +
>
> Looks like I got confused between 4K-based cards and AR9287.
> Thanks for catching this.
>
> Acked-by: Sujith Manoharan <c_manoha@qca.qualcomm.com>
Thanks, I will resend this as a regular patch.
-Gabor
next prev parent reply other threads:[~2012-04-15 17:23 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-14 15:32 [ath9k-devel] [RFC 1/2] ath9k: add an extra boolean parameter to ath9k_hw_apply_txpower Gabor Juhos
2012-04-14 15:32 ` Gabor Juhos
2012-04-14 15:32 ` [ath9k-devel] [RFC 2/2] ath9k: fix tx power settings for AR9287 Gabor Juhos
2012-04-14 15:32 ` Gabor Juhos
2012-04-15 1:59 ` [ath9k-devel] " Sujith Manoharan
2012-04-15 1:59 ` Sujith Manoharan
2012-04-15 17:23 ` Gabor Juhos [this message]
2012-04-15 17:23 ` Gabor Juhos
2012-04-15 10:24 ` [ath9k-devel] [RFC 1/2] ath9k: add an extra boolean parameter to ath9k_hw_apply_txpower Felix Fietkau
2012-04-15 10:24 ` Felix Fietkau
2012-04-15 17:23 ` [ath9k-devel] " Gabor Juhos
2012-04-15 17:23 ` Gabor Juhos
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=4F8B0416.1030400@openwrt.org \
--to=juhosg@openwrt.org \
--cc=ath9k-devel@lists.ath9k.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.