All of lore.kernel.org
 help / color / mirror / Atom feed
From: Johannes Berg <johannes@sipsolutions.net>
To: Janusz Dziedzic <janusz.dziedzic@tieto.com>
Cc: linux-wireless@vger.kernel.org
Subject: Re: [RFCv4 3/3] mac80211: add VHT support for IBSS
Date: Tue, 27 Jan 2015 12:43:22 +0100	[thread overview]
Message-ID: <1422359002.1890.65.camel@sipsolutions.net> (raw)
In-Reply-To: <CALhHN=oGGR=6bq90DB3wEN4Sq7rCCXEZLFR8x0sxot2+3JE=Aw@mail.gmail.com> (sfid-20150127_123951_413522_6EE70539)

On Tue, 2015-01-27 at 12:39 +0100, Janusz Dziedzic wrote:
> On 27 January 2015 at 11:24, Johannes Berg <johannes@sipsolutions.net> wrote:
> > On Tue, 2015-01-27 at 09:44 +0100, Janusz Dziedzic wrote:
> >
> >> +u8 *ieee80211_ie_build_vht_oper(u8 *pos, struct ieee80211_sta_vht_cap *vht_cap,
> >> +                             const struct cfg80211_chan_def *chandef)
> >
> >> +     /* 1 stream, MCS0-7 as a min Basic VHT MCS rates */
> >> +     vht_oper->basic_mcs_set = cpu_to_le16(0xfffc);
> >
> > Unless I'm mistaken in my reading of the spec, this will make any
> > well-behaved client (i.e. not mac80211) not join this network since it
> > supports VHT MCSes.
> >
> > We seem to do the same for HT:
> >
> >         /* It seems that Basic MCS set and Supported MCS set
> >            are identical for the first 10 bytes */
> >         memset(&ht_oper->basic_set, 0, 16);
> >         memcpy(&ht_oper->basic_set, &ht_cap->mcs, 10);
> >
> > but I'm not convinced it's right. It probably only works because nobody
> > ever tested against a well-behaved non-HT client? Or perhaps there isn't
> > even one?
> >
> for HT (spec, 20.3.5) - MCS0 .. MSC7 are mandatory - but this is for
> all stations (not sure about ibss)
> for VHT (22.5, table 22-30) - MCS0...MCS7 are mandatory for nss=1 (20,40,80)
> Seems such set is secure?
> 
> If I understand correctly case you describe with non-HT client:
> non-HT client should not understand HT ies, and HT-only client should
> not understand VHT ies?

Yeah that's a good point, I guess older clients won't even look at this,
and we don't include the HT or VHT marker in the basic rate set IE.

johannes


      reply	other threads:[~2015-01-27 11:43 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-27  8:44 [RFCv4 1/3] cfg80211: add VHT support for IBSS Janusz Dziedzic
2015-01-27  8:44 ` [RFCv4 2/3] mac80211: IBSS fix scan request Janusz Dziedzic
2015-01-27  8:44 ` [RFCv4 3/3] mac80211: add VHT support for IBSS Janusz Dziedzic
2015-01-27 10:24   ` Johannes Berg
2015-01-27 11:39     ` Janusz Dziedzic
2015-01-27 11:43       ` Johannes Berg [this message]

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=1422359002.1890.65.camel@sipsolutions.net \
    --to=johannes@sipsolutions.net \
    --cc=janusz.dziedzic@tieto.com \
    --cc=linux-wireless@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 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.