From: Fabio Rossi <rossi.f@inwind.it>
To: Nick Kossifidis <mickflemm@gmail.com>
Cc: Nick Kossifidis <mick@madwifi-project.org>,
ath5k-devel@lists.ath5k.org, linux-wireless@vger.kernel.org,
linville@tuxdriver.com, jirislaby@gmail.com, mcgrof@gmail.com,
me@bobcopeland.com, nbd@openwrt.org
Subject: Re: [PATCH 3/3] ath5k: Add tx power calibration support
Date: Mon, 30 Mar 2009 17:29:27 +0200 [thread overview]
Message-ID: <200903301729.28132.rossi.f@inwind.it> (raw)
In-Reply-To: <40f31dec0903291423s384a98b5l8f86b317aeb5c9a4@mail.gmail.com>
On Sunday 29 March 2009, Nick Kossifidis wrote:
> This patch introduces a function (and some helpers) to set 2 tables on
> hardware, it doesn't mess with the rest of the driver. I've tested it
> both on sta and ap scenarios with all the cards i have available and
> it worked fine. If you want to make more tests just disable parts of
> hw_txpower on phy.c, you can start by commenting out everything below
>
> ath5k_setup_rate_powertable(ah, txpower, &rate_info, ee_mode);
>
> to skip the setting of tx power, if you comment out the whole function
> you'll disable the functionality that this patch adds.
I have discovered the problem. Inside ath5k_hx_txpower() it's called
ath5k_setup_channel_powertable() where the gain curves of frequency
piers are scanned (if I have understood correctly) to extract the data for
the calibration of the current channel.
In particular, for the 5180MHz channel (the first of the A band), the function
ath5k_get_linear_pcdac_min() is called with some critical data which generate
an endless while loop.
Here are the bad numbers passed to ath5k_get_linear_pcdac_min():
* pwrL[0] = 4
* pwrL[1] = 4
* stepL[0] = 20
* stepL[1] = 35
and with this configuration the variable 'tmp' is never decremented inside the
first while loop.
I suppose the data comes from the EEPROM. Is there an easy way to read the
contents of the EEPROM regarding the calibration data for all the channels?
Fabio
next prev parent reply other threads:[~2009-03-30 15:30 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-15 20:20 [PATCH 3/3] ath5k: Add tx power calibration support Nick Kossifidis
2009-03-29 19:09 ` Fabio Rossi
2009-03-29 20:35 ` Nick Kossifidis
2009-03-29 20:04 ` Fabio Rossi
2009-03-29 21:23 ` Nick Kossifidis
2009-03-29 21:29 ` Nick Kossifidis
2009-03-30 15:29 ` Fabio Rossi [this message]
2009-03-31 8:15 ` Nick Kossifidis
2009-03-31 8:16 ` Nick Kossifidis
2009-03-31 8:26 ` Nick Kossifidis
2009-03-31 9:58 ` Fabio Rossi
2009-03-31 16:06 ` Nick Kossifidis
2009-03-31 16:54 ` Fabio Rossi
-- strict thread matches above, loose matches on Subject: below --
2009-03-10 10:37 Nick Kossifidis
2009-03-10 12:47 ` Jiri Slaby
2009-03-10 17:33 ` Nick Kossifidis
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=200903301729.28132.rossi.f@inwind.it \
--to=rossi.f@inwind.it \
--cc=ath5k-devel@lists.ath5k.org \
--cc=jirislaby@gmail.com \
--cc=linux-wireless@vger.kernel.org \
--cc=linville@tuxdriver.com \
--cc=mcgrof@gmail.com \
--cc=me@bobcopeland.com \
--cc=mick@madwifi-project.org \
--cc=mickflemm@gmail.com \
--cc=nbd@openwrt.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 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).