From: Dan Williams <dcbw@redhat.com>
To: Helge Hafting <helgehaf@mail.aitel.hist.no>
Cc: Tomas Winkler <tomasw@gmail.com>,
Helge Hafting <helge.hafting@aitel.hist.no>,
Joonwoo Park <joonwpark81@gmail.com>,
linville@tuxdriver.com, linux-wireless@vger.kernel.org
Subject: Re: [PATCH] mac80211: fix races between siwessid and siwencode
Date: Thu, 06 Mar 2008 09:30:14 -0500 [thread overview]
Message-ID: <1204813814.29410.23.camel@localhost.localdomain> (raw)
In-Reply-To: <47CFF955.4010501@mail.aitel.hist.no>
On Thu, 2008-03-06 at 15:01 +0100, Helge Hafting wrote:
> Tomas Winkler wrote:
> > On Wed, Mar 5, 2008 at 3:53 PM, Helge Hafting
> > <helge.hafting@aitel.hist.no> wrote:
> >
> >> Joonwoo Park wrote:
> >> > On Wed, Mar 05, 2008 at 06:40:09PM +0900, Joonwoo Park wrote:
> >> >
> >> >> resolve: http://bughost.org/bugzilla/show_bug.cgi?id=1522
> >> >>
> >> >> The function ieee80211_ioctl_siwencode shouldn't be called if
> >> >> authentication process is not completed.
> >> >> This patch makes the ieee80211_ioctl_siwessid to wait for authentication
> >> >> is completed.
> >> >>
> >> >> Signed-off-by: Joonwoo Park <joonwpark81@gmail.com>
> >> >>
> >> >
> >> > Helge,
> >> >
> >> > Can you please try this patch?
> >> > I believe this patch helps your problem.
> >> >
> >> I tried it, and still have problems. The messages may be slightly different:
> >>
> >> I first bring up the interface with "ifconfig wlan0 up"
> >> and then try "iwconfig wlan0 essid my_essid key s:password"
> >> over and over till it works. This gave me:
> >>
> >> Initial auth_alg=0
> >> wlan0: authenticate with AP 00:14:1b:5e:13:40
> >> wlan0: authenticate with AP 00:14:1b:5e:13:40
> >> wlan0: authenticate with AP 00:14:1b:5e:13:40
> >> wlan0: authentication with AP 00:14:1b:5e:13:40 timed out
> >>
> >> A total of 5 tries went wrong. The sixth time it worked, with
> >> different messages and a different access point.
> >> (There are several access points at work.)
> >> Initial auth_alg=0
> >> wlan0: authenticate with AP 00:12:7f:ce:9c:e0
> >> wlan0: RX authentication from 00:12:7f:ce:9c:e0 (alg=0 transaction=2
> >> status=0)
> >> wlan0: authenticated
> >> wlan0: associate with AP 00:12:7f:ce:9c:e0 (capab=0x431 status=0 aid=242)
> >> wlan0: associated
> >> wlan0: CTS protection enabled (BSSID=00:12:7f:ce:9c:e0)
> >> wlan0: switched to long barker preamble (BSSID=BSSID=00:12:7f:ce:9c:e0)
> >> wlan0: WMM queue=2 aci=0 acm=0 aifs=3 cWmin=15 cWmax=1023 burst=0
> >> wlan0: WMM queue=3 aci=1 acm=0 aifs=7 cWmin=15 cWmax=1023 burst=0
> >> wlan0: WMM queue=1 aci=2 acm=0 aifs=2 cWmin=7 cWmax=15 burst=30
> >> wlan0: WMM queue=0 aci=3 acm=0 aifs=2 cWmin=3 cWmax=7 burst=15
> >> wlan0: link becomes ready
> >>
> >>
> >> Only 6 attempts is an improvement, if it stays that way. Still, the
> >> old ipw3945 succeeded on first try. :-/
> >> I hope the testing can be of help.
> >>
> >> Helge Hafting
> >>
> >>
> >>
> >>
> > Is this shared or open authentication?
> > Do you happend to have a sniff capture of the association ?
> I am not sure what you mean by the question.
> This network uses WEP encryption (some users have older wireless equipment)
> there is one essid and a single shared password that everybody uses.
> Security is not that important, this is mostly to keep out outside bandwith
> wasters/pirates.
WEP has two authentication modes, "Shared Key" and "Open System". He
wants to know which method your access point is using. During
authentication, Open System is a simple two-frame request/response. For
Shared Key, there's an additional challenge/response where the AP sends
a block of data, the client encrypts it with the WEP key, and sends it
back to the AP where it's verified. Only if it verifies does the AP
complete association with the client.
You need to ensure that the mode matches between clients and the AP.
Some APs have an "Auto" option that just accepts both methods from the
client.
Dan
> I do not have a sniff of this association, but I can try to sniff the
> next time.
> will wireshark be useful, or is some kind of wireless specific sniffer
> needed?
>
>
> Helge Hafting
> --
> To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2008-03-06 14:39 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-05 9:40 [PATCH] mac80211: fix races between siwessid and siwencode Joonwoo Park
2008-03-05 9:48 ` Joonwoo Park
2008-03-05 13:53 ` Helge Hafting
2008-03-05 15:01 ` Tomas Winkler
2008-03-06 14:01 ` Helge Hafting
2008-03-06 14:25 ` Tomas Winkler
2008-03-06 14:30 ` Dan Williams [this message]
2008-03-09 11:52 ` Helge Hafting
2008-03-10 15:02 ` Dan Williams
2008-03-05 9:54 ` Johannes Berg
2008-03-05 11:10 ` Joonwoo Park
2008-03-05 11:17 ` Johannes Berg
2008-03-05 18:29 ` Dan Williams
2008-03-05 18:53 ` Tomas Winkler
2008-03-05 19:19 ` Dan Williams
2008-03-05 20:50 ` Tomas Winkler
2008-03-05 21:23 ` Dan Williams
2008-03-05 22:28 ` Tomas Winkler
2008-03-05 23:35 ` Dan Williams
2008-03-05 18:22 ` Dan Williams
2008-03-05 18:30 ` Michael Buesch
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=1204813814.29410.23.camel@localhost.localdomain \
--to=dcbw@redhat.com \
--cc=helge.hafting@aitel.hist.no \
--cc=helgehaf@mail.aitel.hist.no \
--cc=joonwpark81@gmail.com \
--cc=linux-wireless@vger.kernel.org \
--cc=linville@tuxdriver.com \
--cc=tomasw@gmail.com \
/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.