From: Dan Williams <dcbw@redhat.com>
To: Holger Schurig <hs4233@mail.mn-solutions.de>
Cc: linux-wireless@vger.kernel.org, Pavel Roskin <proski@gnu.org>
Subject: Re: mac80211 regression: doesn't associate automatically
Date: Mon, 26 Nov 2007 10:34:40 -0500 [thread overview]
Message-ID: <1196091280.4202.19.camel@localhost.localdomain> (raw)
In-Reply-To: <200711231003.03982.hs4233@mail.mn-solutions.de>
On Fri, 2007-11-23 at 10:03 +0100, Holger Schurig wrote:
> > Orinoco relies on roaming in the firmware
>
> And wlags_h1_cs/wlags_h2_cs as well.
>
> libertas_cs has half-baked roaming in firmware and in
> kernel-space, doesn't work very well so far.
>
> Madwifi has code coarse code roaming in the BSD borrowed
> ieee80211 code. It roams only when it lost the association to
> the current AP. But before doing that, it went with it's rate
> down to 1 MBit/s, even when there's a better AP nearby that it
> could use with 11 MBit/s or higher.
>
> There is code in it which is disabled via "if (0 || ...)" that
> allows for a much smoother roaming, e.g. to scan when the RSSI
> drops below a certain level. Once enabled and after tuning of
> some timeout variables, that roaming code works extremely well.
> Both in a WEP-mode without wpa_supplicant and in WPA/WPA2 mode
> with wpa_supplicant.
>
>
> > wpa_supplicant gives you roaming in the userspace.
>
> Yeah, I thought in this lines as well. I have no problem putting
> wpa_supplicant on my embedded targets. In fact, it's already
> there, it's currently just used for WPA, not for WEP. However,
> if suddenly NetworkManager would be needed for roaming, then
> from an embedded-usage point of view I wouldn't like that.
The problem is, roaming and choosing which AP/BSSID to connect to is
pretty complicated. It depends on user preferences, scan results, RSSI,
and other stuff like that. It depends on having the necessary security
information (keys, PIN, EAP certs, etc) available. wpa_supplicant must
run as root to be able to drive the wifi device, and many of these
settings are user-specific; so there has to be some mechanism to push
those settings down to wpa_supplicant.
You could potentially use wpa_supplicant to do what you want, based on
network block priorities and turning network blocks on/off dynamically
through the control interface. Right now, NetworkManager just pushes
_one_ network to wpa_supplicant, the network NM wants to association
with. I can imagine further down the line pushing more of the decisions
onto wpa_supplicant. But wpa_supplicant seems (to me) to still have
quite a few assumptions about static configuration, which is
traditionally how it's been used. In any case, the trend with NM is
pushing more and more of the Wifi stuff down to wpa_supplicant and to
make NetworkManager be more of a policy engine that handles many
different device types, from wired to wireless to GSM/CDMA broadband
cards to Bluetooth DUN.
Dan
next prev parent reply other threads:[~2007-11-26 15:38 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 [this message]
2007-11-22 14:14 ` Holger Schurig
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=1196091280.4202.19.camel@localhost.localdomain \
--to=dcbw@redhat.com \
--cc=hs4233@mail.mn-solutions.de \
--cc=linux-wireless@vger.kernel.org \
--cc=proski@gnu.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 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).