Linux wireless drivers development
 help / color / mirror / Atom feed
From: Holger Schurig <hs4233@mail.mn-solutions.de>
To: linux-wireless <linux-wireless@vger.kernel.org>
Subject: cfg80211_mgd_wext_connect() and wpa_supplicant don't like each other
Date: Mon, 14 Sep 2009 12:54:14 +0200	[thread overview]
Message-ID: <200909141254.14988.hs4233@mail.mn-solutions.de> (raw)

Hi !

When I'm using
* wpa_supplicant
* a static WEP network block
* wext-compat in linux-wl

I always get two errors when roaming (that is, not at the first
connection):


1252921234.926116: CTRL-EVENT-SCAN-RESULTS
1252921234.926185: 0: 00:13:19:80:da:30 ssid=MNFUNK    q70/0/217 e-1
1252921234.926208: 1: 00:1b:d4:44:35:90 ssid=MNWPA     q49/0/195 e-1
1252921234.926227: 2: 00:1b:53:11:dc:40 ssid=MNFUNK    q46/0/192 e-1
1252921234.926255: Trying to associate with 00:13:19:80:da:30 (SSID='MNFUNK' freq=2437 MHz)
1252921234.927327: sock 3, ifname eth1
1252921235.060073: Associated with 00:13:19:80:da:30
1252921235.060090: CTRL-EVENT-CONNECTED - Connection to 00:13:19:80:da:30 completed (auth)
1252921275.106101: ROAM: search for a better AP
1252921276.182124: CTRL-EVENT-SCAN-RESULTS
1252921276.182148: 0: 00:1b:53:11:dc:40 ssid=MNFUNK    q67/0/213 e-1
1252921276.182170: 1: 00:1b:d4:44:35:90 ssid=MNWPA     q60/0/206 e-1
1252921276.182189: 2: 00:13:19:80:da:30 ssid=MNFUNK    q53/0/199 e-1
1252921276.182218: Trying to associate with 00:1b:53:11:dc:40 (SSID='MNFUNK' freq=2412 MHz)
1252921276.184336: sock 3, ifname eth1
ioctl[SIOCSIWFREQ]: No such file or directory
ioctl[SIOCSIWESSID]: No such file or directory
1252921276.268451: Association request to the driver failed
1252921276.268477: CTRL-EVENT-DISCONNECTED - Disconnect event - remove keys
1252921276.355482: Associated with 00:1b:53:11:dc:40

I traced this down a bit into wext-sme.c, cfg80211_mgd_wext_siwfreq().

This function run's cfg80211_mgd_wext_connect() and this function
returns -2.

Isn't this a bit fishy?  Why should a connect function be called
when user-space wants to changes the frequency?   And if for some
reason this is really helpful/necessary, why return the failure
to do so as an error result back to the original "just change the
frequency" call?

In the end, this here:

1252921276.268451: Association request to the driver failed
1252921276.355482: Associated with 00:1b:53:11:dc:40

looks quite contradicting :-/

-- 
http://www.holgerschurig.de

             reply	other threads:[~2009-09-14 10:54 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-14 10:54 Holger Schurig [this message]
2009-09-14 11:23 ` [PATCH] cfg80211: don't report SME connection errs at SIOCSIW{FREQ/AP/ESSID} Holger Schurig
2009-09-14 17:43   ` Johannes Berg
2009-09-15  6:21     ` Holger Schurig
2009-09-16  4:39       ` Johannes Berg
2009-09-16 11:38         ` 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=200909141254.14988.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox