From: Holger Schurig <hs4233@mail.mn-solutions.de>
To: linux-wireless@vger.kernel.org
Subject: Re: mac80211 regression: doesn't associate automatically
Date: Thu, 22 Nov 2007 15:14:37 +0100 [thread overview]
Message-ID: <200711221514.37906.hs4233@mail.mn-solutions.de> (raw)
In-Reply-To: <1195736752.6323.97.camel@johannes.berg>
> As you can see, it doesn't find anything that matches the
> current configuration.
Right.
And correct behavior.
> > $ iwconfig eth1 key s:11111
> > b43-phy0 debug: Using hardware based encryption for keyidx:
> > 0, mac: ff:ff:ff:ff:ff:ff
>
> You've now enabled a key, but not told it to associate using
> that key.
Wrong, because of an false assumption.
On first sight, you might be right. I haven't told to associate.
But at the second sight, there is no EXPLICIT iwconfig-based way
to say "now associate". For 6 drivers (see below) the "iwconfig
XXX key YYY" command is an IMPLICIT way to say "try to associate
with what you know so far. That's because those drivers have a
heuristic like
"If I'm not successfully associated yet, then I try to
associate whenver I get a new bit of info".
And this bit of info might be ESSID, wep key, wpa key, on some
drivers even rate or b/g limitations.
It's mac80211 that falsely thinks "iwconfig XXX essid" is the
only (!) command that triggers an association. Something that is
nowhere seen in "man iwconfig". Before many commands did trigger
an association, e.g. "iwconfig essid", "iwconfig key", "iwconfig
ap" and also several ioctl's used only by wpa-supplicant.
> > As you can see, I'm not associated. However, this sequence
> > used to work with non-mac80211 based WLAN drivers. However,
> > I can actually associate if I reverse the essid/key, e.g.
> > first set the key, then the ssid.
>
> Can't say that matters since wext is actually sufficiently
> undefined to allow both behaviours. :)
Wrong.
Of course I can say that the ESSID,KEY sequence used to work with
non-mac80211 based WLAN drivers. Because it worked. I have proof
that it worked.
I might not be able to say that it worked for *ALL* non-mac80211
based WLAN drivers. But I haven't said that.
And as of now, I can say that 6 drivers didn't care if I first
feed the ESSID and the the WEP KEY:
* orinoco_cs works that way
* ipw2200 (in kernel) also
* wlags49_h1_cs (an out-of-kernel driver) also
* wlags49_h2_cs also
* bcm43xx (sucky in many ways) worked too
* libertas_cs/usb8xxx (in kernel) also
* madwifi also
One can say that if so many drivers behave identically, then this
is a behavior that many users assume. And, oh, by the way, many
distros.
It's the behavior of mac80211 with wext-compatibilty layer that
behaves unusually or out-of-the-order.
> That sucks, I guess debian's scripts need to be fixed.
No, it doesn't. it worked for many years with various WLAN cards.
How should Debian suck if it doesn't work when done manually?
In this case: what sucks is in the eye of the beholder.
Surely your own baby never sucks, compared with other babies.
However, some other moms and fathers might say that the baby
that is out-of-the-order sucks.
But then, ALL babies suck (breast, thumbs) during their first
months ... :-)
next prev parent reply other threads:[~2007-11-22 14:14 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-22 8:12 mac80211 regression: doesn't associate automatically Holger Schurig
2007-11-22 13:05 ` Johannes Berg
2007-11-22 13:26 ` John W. Linville
2007-11-23 0:23 ` Pavel Roskin
[not found] ` <47462A72.8010303@wetwork.net>
2007-11-23 1:26 ` Pavel Roskin
2007-11-23 8:06 ` Holger Schurig
2007-11-23 8:22 ` Pavel Roskin
2007-11-23 9:03 ` Holger Schurig
2007-11-26 15:34 ` Dan Williams
2007-11-22 14:14 ` Holger Schurig [this message]
2007-11-22 14:41 ` Johannes Berg
2007-11-22 15:05 ` Holger Schurig
2007-11-22 15:13 ` Johannes Berg
2007-11-22 15:43 ` Holger Schurig
2007-11-22 15:41 ` Johannes Berg
2007-11-22 15:46 ` Johannes Berg
2007-11-22 15:58 ` Holger Schurig
2007-11-23 12:15 ` Johannes Berg
2007-11-22 16:19 ` Holger Schurig
2007-11-22 20:32 ` Will Dyson
2007-11-23 8:44 ` Holger Schurig
2007-11-23 12:48 ` Johannes Berg
2007-11-23 19:34 ` Will Dyson
2007-11-23 20:22 ` Johannes Berg
2007-11-23 12:46 ` Johannes Berg
2007-11-23 13:23 ` Holger Schurig
2007-11-24 21:36 ` Johannes Berg
2007-11-24 22:39 ` Will Dyson
2007-11-25 10:53 ` Johannes Berg
2007-11-26 7:27 ` Holger Schurig
2007-11-22 15:45 ` Holger Schurig
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=200711221514.37906.hs4233@mail.mn-solutions.de \
--to=hs4233@mail.mn-solutions.de \
--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.