From: "Jouni Malinen" <jkm@devicescape.com>
To: Dan Williams <dcbw@redhat.com>
Cc: linux-wireless@vger.kernel.org, Jouni Malinen <j@w1.fi>
Subject: Re: SIOCSIWAP behavior question
Date: Mon, 2 Apr 2007 08:54:05 -0700 [thread overview]
Message-ID: <20070402155405.GA2706@devicescape.com> (raw)
In-Reply-To: <1175521655.9859.15.camel@localhost.localdomain>
On Mon, Apr 02, 2007 at 09:47:35AM -0400, Dan Williams wrote:
> Should setting a BSSID trigger a disconnection event from the driver?
Just the act of setting BSSID? No.
> Obviously a disconnect event shouldn't be triggered if the BSSID being
> set is the same BSSID the card is already associated with. Or does that
> mean "reassociate unconditionally" ?
I would ike to see disconnect event only if the driver/stack notices
that it cannot complete association and based on this, believes its
association to the ESS is lost.
> But suppose we have two APs in the same ESS with obviously different
> BSSIDs. The card automatically associates with one BSSID, but
> wpa_supplicant decides it likes the other BSSID and calls SIOCSIWAP to
> lock to that one during the association process. Should the driver
> issue an IWAP event of 00:00:00:00:00:00 before attempting
> re-association with the BSSID that wpa_supplicant wants?
I would not like to see this. I see this as re-association within the
same ESS and the driver/stack should just report the new BSSID after
successful re-association. The exact same behavior should apply here
regardless of whether BSSID was set (sort of forced re-association) or
not (driver/stack re-associating, e.g., due to signal strength
difference).
> The libertas driver currently does this; it sometimes confuses
> wpa_supplicant and is arguably wrong behavior because drivers don't
> issue disconnection events when auto-roaming from BSSID to BSSID in the
> same ESS.
>
> Conversely, if you have two access points 'linksys' with different
> BSSIDs that really _are_ two different ESSs, this would screw up
> userspace tools if a disconnect _wasn't_ sent. But in this case
> automatic tools have more problems than driver events.
I would rather not see disconnect event in either case. User space tools
should react to BSSID change event by determining whether the old
network configuration is still valid. This could be done, e.g., by
pinging the default gateway (IP and/or MAC layer) and re-running DHCP if
needed.
--
Jouni Malinen PGP id EFC895FA
next prev parent reply other threads:[~2007-04-02 15:54 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-04-02 13:47 SIOCSIWAP behavior question Dan Williams
2007-04-02 13:55 ` Dan Williams
2007-04-02 15:54 ` Jouni Malinen [this message]
2007-04-02 16:56 ` Joerg Mayer
2007-04-02 17:01 ` Jouni Malinen
2007-04-02 16:58 ` Johannes Berg
2007-04-02 19:19 ` Dan Williams
2007-04-03 11:47 ` Johannes Berg
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=20070402155405.GA2706@devicescape.com \
--to=jkm@devicescape.com \
--cc=dcbw@redhat.com \
--cc=j@w1.fi \
--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.