From: Johannes Berg <johannes@sipsolutions.net>
To: Trepak Vilmos <trepo@netcomga.sk>
Cc: Jouni Malinen <j@w1.fi>,
"hostap@lists.shmoo.com" <hostap@lists.shmoo.com>,
linux-wireless <linux-wireless@vger.kernel.org>
Subject: Re: driver_nl80211 broken again
Date: Sat, 03 Oct 2009 07:52:42 +0200 [thread overview]
Message-ID: <1254549162.3959.77.camel@johannes.local> (raw)
In-Reply-To: <4AC67144.5060508@netcomga.sk>
[-- Attachment #1: Type: text/plain, Size: 1687 bytes --]
On Fri, 2009-10-02 at 23:31 +0200, Trepak Vilmos wrote:
> Johannes Berg wrote:
> > On Thu, 2009-10-01 at 01:13 +0300, Jouni Malinen wrote:
> >> To me, this looks broken. When wpa_supplicant requests a
> >> disassociastion, it is _only_ asking for disassociation, not
> >> deauthentication. cfg80211/mac80211 may not currently handle that, but
> >> as far as I can tell, it sounds like an issue there and not in
> >> wpa_supplicant. Johannes may disagree with this, though.
> >
> > cfg80211/mac80211 _do_ handle that. If you ask for disassociation, it
> > stays authenticated, and later expects you to still remember that and
> > refuses authentication since you're already authenticated.
> >
> >> I don't think either of those options would be acceptable for
> >> wpa_supplicant and the correct fix is to make cfg80211/mac80211 be able
> >> to handle authentication to a STA that is already authenticated. If
> >> that is not acceptable, this hack needs to be hidden in driver_nl80211.c
> >> instead of polluting core wpa_supplicant code which is supposed to be
> >> driver independent. In other words, make driver_nl80211.c deauth if auth
> >> fails and then try auth again. I don't really like that much, but if
> >> this needs to be worked around in wpa_supplicant, that is the most
> >> likely place where such a change could be considered.
> >
> > I still don't see how it makes sense to authenticate while still being
> > authenticated.
>
> The client might have lost state info (rebooted, etc.). Let it redo the
> auth if it wants to, deauth if it fails.
In case you haven't noticed, we're talking about the client
(wpa_supplicant) :)
johannes
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 801 bytes --]
prev parent reply other threads:[~2009-10-03 5:52 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-24 12:32 driver_nl80211 broken again Maxim Levitsky
2009-08-24 14:08 ` Johannes Berg
2009-08-24 20:06 ` Maxim Levitsky
2009-08-24 20:58 ` Johannes Berg
2009-09-05 2:08 ` Maxim Levitsky
2009-09-05 13:07 ` Johannes Berg
2009-09-08 15:29 ` Johannes Berg
2009-09-08 20:54 ` Maxim Levitsky
2009-09-30 1:19 ` Maxim Levitsky
2009-09-30 22:13 ` Jouni Malinen
2009-10-01 8:46 ` Johannes Berg
2009-10-02 21:31 ` Trepak Vilmos
2009-10-03 5:52 ` 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=1254549162.3959.77.camel@johannes.local \
--to=johannes@sipsolutions.net \
--cc=hostap@lists.shmoo.com \
--cc=j@w1.fi \
--cc=linux-wireless@vger.kernel.org \
--cc=trepo@netcomga.sk \
/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).