From: "Luis R. Rodriguez" <lrodriguez@atheros.com>
To: Felix Fietkau <nbd@openwrt.org>
Cc: Luis Rodriguez <Luis.Rodriguez@Atheros.com>,
"linux-wireless@vger.kernel.org" <linux-wireless@vger.kernel.org>,
"linville@tuxdriver.com" <linville@tuxdriver.com>,
Jouni Malinen <Jouni.Malinen@Atheros.com>
Subject: Re: [PATCH 2/3] ath9k_hw: clean up per-channel calibration data
Date: Wed, 28 Jul 2010 14:40:41 -0700 [thread overview]
Message-ID: <20100728214041.GC8033@tux> (raw)
In-Reply-To: <4C50A170.1070902@openwrt.org>
On Wed, Jul 28, 2010 at 02:30:24PM -0700, Felix Fietkau wrote:
> On 2010-07-28 11:21 PM, Luis R. Rodriguez wrote:
> > On Wed, Jul 28, 2010 at 2:10 PM, Felix Fietkau <nbd@openwrt.org> wrote:
> >> On 2010-07-28 10:52 PM, Luis R. Rodriguez wrote:
> >>> On Wed, Jul 28, 2010 at 10:45 AM, Felix Fietkau <nbd@openwrt.org> wrote:
> >>>> The noise floor history buffer is currently not kept per channel, which
> >>>> can lead to problems when changing channels from a clean channel to a
> >>>> noisy one. Also when switching from HT20 to HT40, the noise floor
> >>>> history buffer is full of measurements, but none of them contain data
> >>>> for the extension channel, which it needs quite a bit of time to recover
> >>>> from.
> >>>>
> >>>> This patch puts all the per-channel calibration data into a single data
> >>>> structure, and gives the the driver control over whether that is used
> >>>> per-channel or even not used for some channels.
> >>>>
> >>>> For ath9k_htc, I decided to keep this per-channel in order to avoid
> >>>> creating regressions.
> >>>>
> >>>> For ath9k, the data is kept only for the operating channel, which saves
> >>>> some space. ath9k_hw takes care of wiping old data when the operating
> >>>> channel or its channel flags change.
> >>>>
> >>>> Signed-off-by: Felix Fietkau <nbd@openwrt.org>
> >>>
> >>> But this also means every time we want to get operational on a channel
> >>> we have to learn the current noise all over again. This means for WiFi
> >>> Direct every channel swap we'd have to learn to walk, which happens
> >>> quite often. What do you think? Sorry, I know we discussed this
> >>> approach and I seemed fine but this just occurred to me now, and will
> >>> become really important later when we support WiFi Direct.
> >> When we get to implementing per-vif channel settings with switching
> >> being done in mac80211, we can just move the calibration data to ath9k's
> >> virtual interface data and thus keep the calibration for multiple
> >> operating channels.
> >
> > Sounds good. This would currently break the ath9k virtual wiphy's
> > calibration stuff :P (not like I care), Jouni?
>
> My current patch should work just fine with virtual wiphy's, since I
> store the calibration data in the ath_wiphy struct.
Ah neat, this approach seems fine in the long run then. My only remaining
questions is how effective our scans are in a noisy environemnt with what
I suppose are some default settings?
Luis
next prev parent reply other threads:[~2010-07-28 21:40 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-28 17:45 [PATCH 1/3] ath9k: prevent calibration during off-channel activity Felix Fietkau
2010-07-28 17:45 ` [PATCH 2/3] ath9k_hw: clean up per-channel calibration data Felix Fietkau
2010-07-28 17:45 ` [PATCH 3/3] ath9k_hw: fix a noise floor calibration related race condition Felix Fietkau
2010-07-28 20:52 ` [PATCH 2/3] ath9k_hw: clean up per-channel calibration data Luis R. Rodriguez
2010-07-28 21:10 ` Felix Fietkau
2010-07-28 21:21 ` Luis R. Rodriguez
2010-07-28 21:30 ` Felix Fietkau
2010-07-28 21:40 ` Luis R. Rodriguez [this message]
2010-07-28 22:03 ` Felix Fietkau
2010-07-28 20:43 ` [PATCH 1/3] ath9k: prevent calibration during off-channel activity Luis R. Rodriguez
2010-07-28 21:08 ` Felix Fietkau
2010-07-28 22:12 ` Luis R. Rodriguez
2010-07-28 22:28 ` Felix Fietkau
2010-07-28 22:47 ` Luis R. Rodriguez
2010-07-28 22:48 ` Luis R. Rodriguez
2010-07-29 16:58 ` wireless-next-2.6 rebase -- " John W. Linville
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=20100728214041.GC8033@tux \
--to=lrodriguez@atheros.com \
--cc=Jouni.Malinen@Atheros.com \
--cc=Luis.Rodriguez@Atheros.com \
--cc=linux-wireless@vger.kernel.org \
--cc=linville@tuxdriver.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 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.