All of lore.kernel.org
 help / color / mirror / Atom feed
From: Johannes Berg <johannes@sipsolutions.net>
To: Holger Schurig <hs4233@mail.mn-solutions.de>
Cc: linux-wireless@vger.kernel.org
Subject: Re: mac80211 regression: doesn't associate automatically
Date: Thu, 22 Nov 2007 15:41:23 +0100	[thread overview]
Message-ID: <1195742483.4149.6.camel@johannes.berg> (raw)
In-Reply-To: <200711221514.37906.hs4233@mail.mn-solutions.de> (sfid-20071122_141421_164627_CF0FF330)

[-- Attachment #1: Type: text/plain, Size: 1974 bytes --]

[please make sure to copy me on replies]

> 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".

Exactly. So I argue we're free to chose.

> 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.

Which is crap.

> > 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.

Bzzt. You're operating on wrong premises. It doesn't matter! Nothing in
wext gives you the promise that this works!

> 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:

[drivers snipped]

Actually, all of these drivers misbehave because they allow you to
associate to a network that has encryption enabled even if you haven't
set a key!

> 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.

Again, you're operating on the premise that what some drivers do defines
wext. That's thankfully untrue and since wext doesn't define behaviour,
the mac80211 behaviour is well in line.

johannes

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 828 bytes --]

  reply	other threads:[~2007-11-22 14:41 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
2007-11-22 14:41     ` Johannes Berg [this message]
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=1195742483.4149.6.camel@johannes.berg \
    --to=johannes@sipsolutions.net \
    --cc=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.