From: Gabor Juhos <juhosg@openwrt.org>
To: Stanislaw Gruszka <stf_xl@wp.pl>
Cc: John Linville <linville@tuxdriver.com>,
linux-wireless@vger.kernel.org, users@rt2x00.serialmonkey.com
Subject: Re: [rt2x00-users] [PATCH v2 3/4] rt2x00: rt2800lib: fix default VGC values for RT3593
Date: Fri, 04 Oct 2013 21:59:12 +0200 [thread overview]
Message-ID: <524F1E10.7020608@openwrt.org> (raw)
In-Reply-To: <20131004143822.GC7842@localhost.localdomain>
2013.10.04. 16:38 keltezéssel, Stanislaw Gruszka írta:
> On Thu, Oct 03, 2013 at 08:00:42PM +0200, Gabor Juhos wrote:
>> Update the rt2800_get_default_vgc function to use the same VGC
>> values that the DPO_RT5572_LinuxSTA_2.6.1.3_20121022 reference
>> driver uses.
>>
>> References:
>> RT35xx_ChipAGCAdjust in chips/rt35xx.c
>> RT3593_R66_MID_LOW_SENS_GET macro in include/chip/rt3593.h
>> RT3593_R66_NON_MID_LOW_SEMS_GET macro in include/chips/rt3593.h
>>
>> Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
>
> Acked-by: Stanislaw Gruszka <stf_xl@wp.pl>
>
>> @@ -4422,6 +4423,8 @@ static u8 rt2800_get_default_vgc(struct rt2x00_dev *rt2x00dev)
>> } else { /* 5GHZ band */
>> if (rt2x00_rt(rt2x00dev, RT3572))
>> vgc = 0x22 + (rt2x00dev->lna_gain * 5) / 3;
>
> Looks RT3572 values should be also changed ? According to:
>
> if (pAd->CommonCfg.BBPCurrentBW == BW_20)
> {
> R66 = 0x32 + (lanGain*5) / 3;
> if (Rssi > RSSI_FOR_MID_LOW_SENSIBILITY)
> R66 += 0x10;
> }
> else
> {
> R66 = 0x3A + (lanGain*5)/3;
> if (Rssi > RSSI_FOR_MID_LOW_SENSIBILITY)
> R66 += 0x10;
> }
Yes. I even created a patch for that, but I forgot to add that into the series.
Will send that separately.
-Gabor
next prev parent reply other threads:[~2013-10-04 19:58 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-03 18:00 [PATCH v2 1/4] rt2x00: rt2800lib: fix VGC adjustment for RT5592 Gabor Juhos
2013-10-03 18:00 ` [PATCH v2 2/4] rt2x00: rt2800lib: fix VGC adjustment for RT3572 and RT3593 Gabor Juhos
2013-10-04 14:27 ` [rt2x00-users] " Stanislaw Gruszka
2013-10-03 18:00 ` [PATCH v2 3/4] rt2x00: rt2800lib: fix default VGC values for RT3593 Gabor Juhos
2013-10-04 14:38 ` [rt2x00-users] " Stanislaw Gruszka
2013-10-04 19:59 ` Gabor Juhos [this message]
2013-10-03 18:00 ` [PATCH v2 4/4] rt2x00: rt2800lib: fix VGC programming for RT3572 and RT3593 Gabor Juhos
2013-10-04 14:39 ` [rt2x00-users] " Stanislaw Gruszka
2013-10-04 14:19 ` [rt2x00-users] [PATCH v2 1/4] rt2x00: rt2800lib: fix VGC adjustment for RT5592 Stanislaw Gruszka
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=524F1E10.7020608@openwrt.org \
--to=juhosg@openwrt.org \
--cc=linux-wireless@vger.kernel.org \
--cc=linville@tuxdriver.com \
--cc=stf_xl@wp.pl \
--cc=users@rt2x00.serialmonkey.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).