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: [RFC] cfg/nl/mac80211: use per-band basic rates bitmap in IBSS
Date: Tue, 4 Sep 2012 21:45:32 +0200 [thread overview]
Message-ID: <20120904194532.GJ22841@ritirata.org> (raw)
In-Reply-To: <1346787524.3737.43.camel@jlt4.sipsolutions.net>
[-- Attachment #1: Type: text/plain, Size: 1692 bytes --]
On Tue, Sep 04, 2012 at 09:38:44PM +0200, Johannes Berg wrote:
> On Tue, 2012-09-04 at 20:52 +0200, Antonio Quartulli wrote:
> > Each band maps the bitmap of rates to different real bitrates, therefore using
> > the same bitmask for every band (as it is now) is not correct.
> > Each band must have its own bitmask where the bits of the rates specified by the
> > user on IBSS join have to be set
> >
> > Signed-off-by: Antonio Quartulli <ordex@autistici.org>
> > ---
> > include/net/cfg80211.h | 4 ++--
> > net/mac80211/ibss.c | 6 ++++--
> > net/mac80211/ieee80211_i.h | 2 +-
> > net/wireless/nl80211.c | 12 +++++++-----
>
> I'm not sure I see the need to change nl80211, and the change seems
> wrong anyway.
>
> As far as I understand it, the basic rates that are passed into the
> kernel are intended to be used when the kernel creates a new IBSS. This
> always happens on the channel that is also passed in, so it's always
> bound to a given channel (band).
I think basic rates are also used in case of merging, right? In this case we
could switch to another channel (and band).
>
> Now mac80211 internally seems to mess this up a bit, but that doesn't
> affect nl80211/cfg80211?
I modified nl/cfg as well because it is in that point that the bitrates provided
by the user are converted to the band bitmask and so only here I create a bitmask
for every band and pass them all to the mac80211.
In this way we have a bitmask for each band and we can use the one we need
whenever we switch band.
is it a wrong approach?
Cheers,
--
Antonio Quartulli
..each of us alone is worth nothing..
Ernesto "Che" Guevara
[-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --]
next prev parent reply other threads:[~2012-09-04 19:45 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-04 18:52 [RFC] cfg/nl/mac80211: use per-band basic rates bitmap in IBSS Antonio Quartulli
2012-09-04 19:38 ` Johannes Berg
2012-09-04 19:45 ` Antonio Quartulli [this message]
2012-09-04 19:47 ` Johannes Berg
2012-09-05 6:34 ` Antonio Quartulli
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=20120904194532.GJ22841@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).