From: Stanislaw Gruszka <sgruszka@redhat.com>
To: "Alex A. Mihaylov" <minimumlaw@gmail.com>
Cc: linux-wireless@vger.kernel.org
Subject: Re: RFC: RT3070 TX Power troubles
Date: Fri, 8 Mar 2013 17:21:27 +0100 [thread overview]
Message-ID: <20130308162126.GC1409@redhat.com> (raw)
In-Reply-To: <CALK7Yahs2=2UkN9uXGbuoWXhvcC1u4-R4xak5cx0ZqKm7OfK+A@mail.gmail.com>
On Tue, Mar 05, 2013 at 08:00:10PM +0400, Alex A. Mihaylov wrote:
> Good day!
>
> I use Jorjin WN8020 USB WiFi module with RT3070 chip.
> On Windows and Os X module have 15dBm output power, but on Linux about
> 3dBm with 'ifconfig wlan0 txpower 20' and less if txpower set less,
> than 20dBm.
>
> I analyse Ralink driver and found RF_R49/RF_R50 registers present in
> ralnik code, but abcent in Linux drivers. I try patch code:
Patch gnerally looks fine.
>
> + /*
> + * FixMe: Why POWER_BOUND and FREQ_OFFSET_BOUND not init here?
> + */
???
> + rt2800_rfcsr_read(rt2x00dev, 17, &rfcsr);
> + if (rt2x00dev->freq_offset > FREQ_OFFSET_BOUND)
> + rt2x00_set_field8(&rfcsr, RFCSR17_CODE, FREQ_OFFSET_BOUND);
> + else
> + rt2x00_set_field8(&rfcsr, RFCSR17_CODE, rt2x00dev->freq_offset);
> + rt2800_rfcsr_write(rt2x00dev, 17, rfcsr);
Do we also need to init RF_R17 ? Does vendor driver do this ?
> and tx power stay 15dBm (ass writen in WN8020 specification) if
> txpower set to 20dBm in driver, and about 0dBm if tx power set to 0dBm
> in driver.
> I also found function rt2800_config_channel_rf2xxx without
> initialisation POWER_BOUND and FREQ_OFFSET_BOUND. May be this also
> incorrect?
Not sure, need to check on old vendor driver.
Stanislaw
next prev parent reply other threads:[~2013-03-08 16:21 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-05 16:00 RFC: RT3070 TX Power troubles Alex A. Mihaylov
2013-03-08 16:21 ` Stanislaw Gruszka [this message]
2013-03-09 6:05 ` Alex A. Mihaylov
2013-03-12 9:42 ` Stanislaw Gruszka
2013-03-12 11:59 ` Alex A. Mihaylov
2013-03-12 12:44 ` 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=20130308162126.GC1409@redhat.com \
--to=sgruszka@redhat.com \
--cc=linux-wireless@vger.kernel.org \
--cc=minimumlaw@gmail.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 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.