All of lore.kernel.org
 help / color / mirror / Atom feed
From: Johannes Berg <johannes@sipsolutions.net>
To: Paul Stewart <pstew@chromium.org>
Cc: linux-wireless@vger.kernel.org,
	Rajkumar Manoharan <rmanohar@qca.qualcomm.com>,
	Arik Nemtsov <anamtsov@gmail.com>,
	Eliad Peller <eliad@wizery.com>, Jouni Malinen <j@w1.fi>
Subject: Re: [RFCv2] mac80211: Don't let regulatory make us deaf
Date: Sun, 26 Feb 2012 12:25:37 +0100	[thread overview]
Message-ID: <1330255537.4401.10.camel@jlt3.sipsolutions.net> (raw)
In-Reply-To: <1330254954.4401.9.camel@jlt3.sipsolutions.net> (sfid-20120226_121611_944331_8D721289)

On Sun, 2012-02-26 at 12:15 +0100, Johannes Berg wrote:
> On Mon, 2012-02-20 at 21:25 -0800, Paul Stewart wrote:
> > When regulatory information changes our HT behavior (e.g,
> > when we get a country code from the AP we have just associated
> > with), we should use this information to change the power with
> > which we transmit, and what channels we transmit.  Sometimes
> > the channel parameters we derive from regulatory information
> > contradicts the parameters we used in association.  For example,
> > we could have associated specifying HT40, but the regulatory
> > rules we apply may forbid HT40 operation.
> > 
> > In the situation above, we should reconfigure ourselves to
> > transmit in HT20 only, however it makes no sense for us to
> > disable receive in HT40, since if we associated with these
> > parameters, the AP has every reason to expect we can and
> > will receive packets this way.
> 
> Looking at this in mac80211 (ieee80211_enable_ht) in more detail for
> other reasons, I believe our current behaviour is wrong in other cases
> as well, not just the regulatory case.
> 
> If the AP is advertising HT40, but 40MHz-intolerant at the same time, I
> believe we should also configure the channel to HT40, and prohibit using
> 40 MHz TX for the time in which 40MHz-intolerant is set. Otherwise, when
> the AP changes the 40MHz-intolerant flag, we may reconfigure our channel
> too late to receive 40MHz transmissions. Also, some devices don't like
> having the channel reconfigured while associated and doing so would be
> particularly messy when we start talking about multi-channel operation.
> 
> I think overall better behaviour would be to set up the HT channel
> already in ieee80211_mgd_auth() according to what the AP advertises,

Correction: ieee80211_mgd_assoc(), during auth we don't yet know what
ciphers we'll use etc. so we don't yet know if HT will be disabled.
However, during auth we also don't care about the channel type, so
there's no problem for multi-channel.

> disregarding regulatory information and 40MHz-intolerant bits. While
> associated, the only possible changes would be
>  1) changes in HT opmode (protection, non-GF/non-HT sta etc.)
>  2) 40MHz-intolerant changes (e.g. when such a STA joins)
> This would affect both the driver and rate control, and for drivers
> having rate control built-in we need to also tell them directly.
> 
> Thoughts?
> 
> johannes
> 
> --
> To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 



  reply	other threads:[~2012-02-26 11:25 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-21  5:25 [RFC] mac80211: Don't let regulatory make us deaf Paul Stewart
2012-02-21  5:25 ` [RFCv2] " Paul Stewart
2012-02-21 18:01   ` Mahesh
2012-02-23 13:39   ` Johannes Berg
2012-02-23 14:53     ` Sam Leffler
2012-02-23 14:59       ` Johannes Berg
2012-02-23 15:14         ` Paul Stewart
2012-02-24  1:53           ` Luis R. Rodriguez
2012-02-24  4:15             ` Paul Stewart
2012-02-21  5:25               ` [PATCH] " Paul Stewart
2012-02-24  4:25             ` [RFCv2] " Sam Leffler
2012-02-26 11:15   ` Johannes Berg
2012-02-26 11:25     ` Johannes Berg [this message]
2012-02-27 10:34       ` Johannes Berg
2012-02-27 11:32         ` Jouni Malinen
2012-02-27 11:38           ` Johannes Berg
2012-02-27 13:46             ` Jouni Malinen
2012-03-07  5:46               ` Paul Stewart
2012-03-07  7:36                 ` Johannes Berg
2012-03-07 18:40                   ` John W. Linville
2012-03-07 18:52                     ` Johannes Berg

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=1330255537.4401.10.camel@jlt3.sipsolutions.net \
    --to=johannes@sipsolutions.net \
    --cc=anamtsov@gmail.com \
    --cc=eliad@wizery.com \
    --cc=j@w1.fi \
    --cc=linux-wireless@vger.kernel.org \
    --cc=pstew@chromium.org \
    --cc=rmanohar@qca.qualcomm.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.