From: Antonio Quartulli <ordex@autistici.org>
To: Johannes Berg <johannes@sipsolutions.net>
Cc: Will Hawkins <hawkinsw@opentechinstitute.org>,
Will Hawkins <hawkinsw@opentechinitiative.org>,
linux-wireless@vger.kernel.org
Subject: Re: Help tracing NL80211_CMD_AUTHENTICATE as event in IBSS mode
Date: Tue, 26 Jun 2012 20:55:34 +0200 [thread overview]
Message-ID: <20120626185533.GA7932@ritirata.org> (raw)
In-Reply-To: <1340730210.4484.11.camel@jlt3.sipsolutions.net>
[-- Attachment #1: Type: text/plain, Size: 1750 bytes --]
On Tue, Jun 26, 2012 at 07:03:30PM +0200, Johannes Berg wrote:
> On Tue, 2012-06-26 at 12:44 -0400, Will Hawkins wrote:
>
> > > Huh, now I'm confused, why would it need the authenticate frames for
> > > IBSS? As far as I can tell, it looks at CMD_NEW_STA, which calls
> > > nl80211_new_station_event(),
> >
> > This is what I understand as well.
> >
> > which in IBSS sends EVENT_IBSS_RSN_START to
> > > the supplicant core -- that will trigger the 4-way-handshake. No? Hence
> > > it doesn't need to register for auth frames, it never needs them, since
> > > RSN uses open auth, if any is even used in IBSS at all.
> >
> > This is where I am still trying to figure out exactly how it works.
>
> I believe that when the new station is added (NEW_STA event), it will
> simply send out a 1/4 EAPOL frame. Since both do that, I guess it does
> some kind of de-duplication? Whoever sends it first wins or something,
> but I don't really know. Maybe we should take the discussion to the
> hostap list at this point :-)
Yeah, Johannes is right when saying that NEW_STA simply makes wpa_s trigger a
EVENT_IBSS_RSN_START that will start a 4-way handshake.
Auth frames are not used at all in wpa_s for IBSS/RSN. Auth frames are only used
in the kernel to remove and then add again a station from the neighbour list. In
this way wpa_s will first purge that station and then will add it again thanks
to another NEW_STA event.
@johannes: de-duplication? IBSS/RSN assumes that each node runs an authenticator
and a supplicant. Does this mean that we need exactly two 4-way handshakes? Why
should we have a "winner"?
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-06-26 18:55 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-26 4:01 Help tracing NL80211_CMD_AUTHENTICATE as event in IBSS mode Will Hawkins
2012-06-26 6:53 ` Johannes Berg
2012-06-26 16:23 ` Will Hawkins
2012-06-26 16:41 ` Johannes Berg
2012-06-26 16:44 ` Will Hawkins
2012-06-26 17:03 ` Johannes Berg
2012-06-26 18:55 ` Antonio Quartulli [this message]
2012-06-26 18:56 ` Johannes Berg
2012-06-26 19:35 ` Antonio Quartulli
2012-06-26 19:36 ` Johannes Berg
2012-06-26 19:42 ` Nicolas Cavallari
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=20120626185533.GA7932@ritirata.org \
--to=ordex@autistici.org \
--cc=hawkinsw@opentechinitiative.org \
--cc=hawkinsw@opentechinstitute.org \
--cc=johannes@sipsolutions.net \
--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.