From: Antonio Quartulli <ordex@autistici.org>
To: Johannes Berg <johannes@sipsolutions.net>
Cc: "John W. Linville" <linville@tuxdriver.com>,
linux-wireless@vger.kernel.org
Subject: Re: [PATCHv2] nl/cfg/mac80211: add set_mcast_rate API
Date: Mon, 9 Jul 2012 15:27:15 +0200 [thread overview]
Message-ID: <20120709132715.GF4488@ritirata.org> (raw)
In-Reply-To: <1341839999.4455.48.camel@jlt3.sipsolutions.net>
[-- Attachment #1: Type: text/plain, Size: 1718 bytes --]
On Mon, Jul 09, 2012 at 03:19:59PM +0200, Johannes Berg wrote:
> On Mon, 2012-07-09 at 15:18 +0200, Antonio Quartulli wrote:
>
> > > So this is kinda broken. In fact, the whole basic rate thing is broken
> > > it seems.
> > >
> > > The mcast rate is per band, as it should, since you could find the same
> > > BSSID on a 5 GHz channel and then jump to that channel if the TSF is
> > > higher...
> > >
> > > However, the basic rates aren't, which is wrong: the basic rates bitmap
> > > could be 1,2,6,9. If the driver is like most drivers, that translates to
> > > a bitmap of 0x33. But 0x33, for most drivers, if applied to the 5 GHz
> > > rates means 6,9,24,36. See why this is broken? A rate bitmap can't be
> > > siwtched around between bands and still make any sense.
> >
> > I see, I wrongly thought that nl80211_parse_mcast_rate() was checking if the
> > provided mcast_rate belongs to the basic_rate set of the band which we are now.
>
> Well, ok, don't get confused -- there's no basic rate set "of the band",
> it's a BSS property.
>
> > But that's wrong! nl80211_parse_mcast_rate() only checks if the provided
> > mcast_rate exists somewhere...
>
> It checks that each rate exists in the band that it's for.
>
> > > Oh, also, I'm not sure why you do BIT(... -1), but that's unrelated.
> > > What kind of value is the mcast rate? A rate index, or a number?
> > >
> >
> > it's an index and actually it's the index +1, as reported in mac80211.h:
> >
> > * @mcast_rate: per-band multicast rate index + 1 (0: disabled)
>
> also in the cfg80211 API?
yes
>
> johannes
--
Antonio Quartulli
..each of us alone is worth nothing..
Ernesto "Che" Guevara
[-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --]
prev parent reply other threads:[~2012-07-09 13:27 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-07-08 9:31 [PATCH] nl/cfg/mac80211: add set_mcast_rate API Antonio Quartulli
2012-07-08 9:56 ` Johannes Berg
2012-07-08 10:07 ` Antonio Quartulli
2012-07-08 23:51 ` [PATCHv2] " Antonio Quartulli
2012-07-09 13:05 ` Johannes Berg
2012-07-09 13:12 ` Johannes Berg
2012-07-09 13:25 ` Antonio Quartulli
2012-07-09 13:18 ` Antonio Quartulli
2012-07-09 13:19 ` Johannes Berg
2012-07-09 13:27 ` Antonio Quartulli [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=20120709132715.GF4488@ritirata.org \
--to=ordex@autistici.org \
--cc=johannes@sipsolutions.net \
--cc=linux-wireless@vger.kernel.org \
--cc=linville@tuxdriver.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.