mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: ghostrain <605033747@qq.com>
To: linux-kernel@vger.kernel.org
Subject: Cannot switch between 20MHz and 40MHz rates
Date: Mon, 17 Jun 2013 12:58:53 -0700 (PDT)	[thread overview]
Message-ID: <1371499133126-668877.post@n7.nabble.com> (raw)

Hello there! Thanks for your attention!!

I have 1 STA and 1 AP (hostapd + wireless-compat ath9k driver). What I am
trying to do is:

1.AP starts with HT20 (I did this through commenting out any ht_capab lines
in hostapd.conf)

2.STA connects to AP (so STA is also HT20)

3.STA issues an action frame to AP, AP sends back another action frame as
ACK and changes its tx bitrates to HT40

what I do for changing tx bitrates now is setting ht_cap flag and update
rate table, i.e. in function ieee80211_rx_h_action() in file
net/mac80211/rx.c, on receiving my action frame for rate update, do:

    rx->sta->sta.ht_cap.cap |= IEEE80211_HT_CAP_SUP_WIDTH_20_40; 
    rate_control_rate_update();

4.STA receives ACK and do something (what I do now is update its rate table
as I do on AP side).

[b]The problem is[/b]: when AP starts with HT40+ and STA connects,
transmission first uses HT40 rates and then switches to HT20 rates on
issuing my action frame. But when AP starts with HT20 and STA connects,
transmission can only use HT20 rates: once switched to HT40 rates,
transmission will pause, until switching back to HT20.

Could anybody give me some hints on possible reasons, please? Is this a
hostapd configuration problem? or I am doing wrong updating rates? or it is
theoretically impossible to using HT40 rates if started with HT20?

Thanks!!



--
View this message in context: http://linux-kernel.2935.n7.nabble.com/Cannot-switch-between-20MHz-and-40MHz-rates-tp668877.html
Sent from the Linux Kernel mailing list archive at Nabble.com.

             reply	other threads:[~2013-06-17 19:59 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-17 19:58 ghostrain [this message]
  -- strict thread matches above, loose matches on Subject: below --
2013-06-17 19:58 ghostrain

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=1371499133126-668877.post@n7.nabble.com \
    --to=605033747@qq.com \
    --cc=linux-kernel@vger.kernel.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

all inboxes | Powered by JetHome®