Re: wpa_supplicant and WEP....

Eric Schuele <[email protected]>
Newsgroups gmane.os.freebsd.devel.mobile
Message-ID <433DAE00.4090602__46600.1534522094$1128115839$gmane$org@computer.org>
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... 
>>>>but I would like it to work with WEP as well.  it appears to associate 
>>>>with a WEP site no matter what WEP key I give it.  But whether the key 
>>>>is correct or not... I can not get a response from my DHCP server.
>>>>
>>>>My wpa_supplicant entry:
>>>
>>>...
>>>
>>>
>>>> wep_tx_keyidx=0
>>>
>>>
>>>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=...
>>>key_mgmt=NONE
>>>wep_key0=...
>>>
>>
>>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.

If I attempt to use the hex key... it fails to parse the wpa_supplicant 
file!?!  The AP is a linksys something-or-other... and when you type in 
a cleartext passphrase it generates 4 hex keys.  I have tried both the 
passphrase and the hex keys.

> 
> Have you been able to connect by hand (not using wpa_supplicant)?  If
> not, do that first.

Yes... I can connect using the following script

ifconfig ath0 ssid office-g
ifconfig ath0 mode 11g channel 6
ifconfig ath0 wepmode on
ifconfig ath0 weptxkey 1 wepkey 0xD8<mykey>65E5A
ifconfig ath0 192.168.1.99
ifconfig ath0 netmask 255.255.255.0

rm /etc/resolv.conf
echo "nameserver 198.6.1.122" >> /etc/resolv.conf
echo "nameserver 198.6.1.142" >> /etc/resolv.conf
echo "nameserver 198.6.1.146" >> /etc/resolv.conf

route -q add default 192.168.1.1

> 
> -- Brooks
> 


-- 
Regards,
Eric
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-mobile
To unsubscribe, send any mail to "[email protected]"
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.