Linux wireless drivers development
 help / color / mirror / Atom feed
From: Benoit PAPILLAULT <benoit.papillault@free.fr>
To: "Luis R. Rodriguez" <mcgrof@gmail.com>
Cc: johannes@sipsolutions.net, linux-wireless@vger.kernel.org
Subject: Re: [PATCH] ath9k: Fix rate table choice
Date: Fri, 05 Feb 2010 01:36:54 +0100	[thread overview]
Message-ID: <4B6B6826.50208@free.fr> (raw)
In-Reply-To: <43e72e891002041614o3736d56axd41054c295703a76@mail.gmail.com>

Luis R. Rodriguez a écrit :
> On Thu, Feb 4, 2010 at 1:06 PM, Benoit Papillault
> <benoit.papillault@free.fr> wrote:
>   
>> ath9k rate control choose the rate table based on the current channel
>> (if it is ht40 or not). However, it happens that at this stage, the
>> channel is still ht20 even if the peer sta capabilities would later
>> allow ht40. So let's use peer sta capabilities directly.
>>     
>
> Can you clarify this commit log entry a little more, I don't think I
> get it yet. Also, is this a stable fix? If so, please Cc:
> stable@kernel.org on the commit log entry.
>
>   Luis
>   
I think it could be Cc:stable@kernel.org, but I'll leave the decision up 
to you.

In fact, I was using ath9k as a STA connected to an HT40 AP. However, 
only HT20 was displayed in ath9k/phy0/rcstat.
After digging for a while, i found that the current channel 
(sc->hw->conf.channel_type) was indeed an HT20 (or no-ht) channel!

In fact, association is handled as a queued work (from what I 
understood). As such, it uses tmp_channel (see mac80211/work.c). In the 
enable_ht() [mac80211/mlme.c], we update oper_channel_type before 
calling ieee80211_hw_config to call the hw_config driver callback that 
upates conf.channel_type. However, since we are using queued work, 
ieee80211_hw_config will use tmp_channel instead. Then enable_ht calls 
rate_control_rate_update that calls ath9k rate control callbacks ... 
where the channel is ... not HT40! I guess that when the queued work is 
done, the channel is switched again to ht40.

I would appreciate Johannes point of view here...

After applying this patch, ath9k/phy0/rcstat shows both ht20 and ht40 rates.

Regards,
Benoit


  reply	other threads:[~2010-02-05  0:43 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-04 21:06 [PATCH] ath9k: Fix rate table choice Benoit Papillault
2010-02-05  0:14 ` Luis R. Rodriguez
2010-02-05  0:36   ` Benoit PAPILLAULT [this message]
2010-02-05  4:51 ` Sujith
2010-02-05  7:21   ` Benoit PAPILLAULT
2010-02-05  7:57     ` Sujith

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=4B6B6826.50208@free.fr \
    --to=benoit.papillault@free.fr \
    --cc=johannes@sipsolutions.net \
    --cc=linux-wireless@vger.kernel.org \
    --cc=mcgrof@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox