From owner-freebsd-current@FreeBSD.ORG Fri Sep 30 22:26:28 2005 Return-Path: X-Original-To: current@freebsd.org Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2799B16A41F; Fri, 30 Sep 2005 22:26:28 +0000 (GMT) (envelope-from brdavis@odin.ac.hmc.edu) Received: from odin.ac.hmc.edu (Odin.AC.HMC.Edu [134.173.32.75]) by mx1.FreeBSD.org (Postfix) with ESMTP id C130943D53; Fri, 30 Sep 2005 22:26:27 +0000 (GMT) (envelope-from brdavis@odin.ac.hmc.edu) Received: from odin.ac.hmc.edu (localhost.localdomain [127.0.0.1]) by odin.ac.hmc.edu (8.13.0/8.13.0) with ESMTP id j8UMOgA6025860; Fri, 30 Sep 2005 15:24:42 -0700 Received: (from brdavis@localhost) by odin.ac.hmc.edu (8.13.0/8.13.0/Submit) id j8UMOgXc025859; Fri, 30 Sep 2005 15:24:42 -0700 Date: Fri, 30 Sep 2005 15:24:42 -0700 From: Brooks Davis To: Eric Schuele Message-ID: <20050930222442.GA20004@odin.ac.hmc.edu> References: <433D5215.6010101@computer.org> <20050930184537.GA3665@teardrop.org> <433DA1CF.7020502@computer.org> <20050930210541.GA11841@odin.ac.hmc.edu> <433DAE00.4090602@computer.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="BXVAT5kNtrzKuDFl" Content-Disposition: inline In-Reply-To: <433DAE00.4090602@computer.org> User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-new X-Spam-Status: No, hits=0.0 required=8.0 tests=none autolearn=no version=2.63 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on odin.ac.hmc.edu Cc: mobile@freebsd.org, current@freebsd.org Subject: Re: wpa_supplicant and WEP.... X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Sep 2005 22:26:28 -0000 --BXVAT5kNtrzKuDFl Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Sep 30, 2005 at 04:28:32PM -0500, Eric Schuele wrote: > Brooks Davis wrote: > >On Fri, Sep 30, 2005 at 03:36:31PM -0500, Eric Schuele wrote: > > > >>James Snow wrote: > >> > >>>On Fri, Sep 30, 2005 at 09:56:21AM -0500, Eric Schuele wrote: > >>> > >>> > >>>>I have gotten wpa_supplicant to work fine for WPA-PSK and open sites.= ..=20 > >>>>but I would like it to work with WEP as well. it appears to associat= e=20 > >>>>with a WEP site no matter what WEP key I give it. But whether the ke= y=20 > >>>>is correct or not... I can not get a response from my DHCP server. > >>>> > >>>>My wpa_supplicant entry: > >>> > >>>... > >>> > >>> > >>>>wep_tx_keyidx=3D0 > >>> > >>> > >>>I would try dropping this line. I use wpa_supplicant to connect to a > >>>number of different wireless networks and for the WEP-only ones I've > >>>never needed anything more than: > >>> > >>>ssid=3D... > >>>key_mgmt=3DNONE > >>>wep_key0=3D... > >>> > >> > >>Still no go. The wep_key0 is the clear text passphrase, correct? Not > >>one of the encrypted keys? right? > > > > > >The entry in the example file shows both hex and ascii keys. No > >excryption of keys is supported by standard WEP so if your AP is doing > >something like that you need to get the hex key it's using from it. >=20 > If I attempt to use the hex key... it fails to parse the wpa_supplicant= =20 > file!?! The AP is a linksys something-or-other... and when you type in= =20 > a cleartext passphrase it generates 4 hex keys. I have tried both the=20 > passphrase and the hex keys. You definitly need to use the hex keys. Turning a password into four hex keys is absolutly not part of the standard. How are you entering your hex keys? The examples are a bit unclear, but digging around in the code it looks like unquoted strings are assumed to be hex strings. They should not be prefixed by 0x. The manpage needs some help in this area. > >Have you been able to connect by hand (not using wpa_supplicant)? If > >not, do that first. >=20 > Yes... I can connect using the following script Good. Hopefully it's just a confusing config file issue. -- Brooks --=20 Any statement of the form "X is the one, true Y" is FALSE. PGP fingerprint 655D 519C 26A7 82E7 2529 9BF0 5D8E 8BE9 F238 1AD4 --BXVAT5kNtrzKuDFl Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQFDPbspXY6L6fI4GtQRAj8CAKCgomcCcsKb1snUJ9NKipMPKllmQACfdW5f fJg9Q5cNy49BsGPt3w3k9IQ= =ZfNN -----END PGP SIGNATURE----- --BXVAT5kNtrzKuDFl--