<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML dir=ltr><HEAD><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=unicode">
<META content="MSHTML 6.00.2900.3132" name=GENERATOR></HEAD>
<BODY>
<DIV id=idOWAReplyText58884 dir=ltr>
<DIV dir=ltr><FONT face=Arial color=#000000 size=2>There are quite a few
examples on how to do wpa_supplicant configuration - just google it. Yes,
you leave it running. If you do iwconfig <interface> it will tell
you the status. </FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT> </DIV>
<DIV dir=ltr><FONT face=Arial size=2>You also have to set what WPA; is it 1 or
2. 1 is TKIP, 2 is AES. For AES you set:</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2>network {</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2>proto=WPA2</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2>key_mgmt=WPA-PSK</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2>psk="blah"</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2>auth_alg=OPEN</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2>}</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT> </DIV>
<DIV dir=ltr><FONT face=Arial size=2>in the config file.</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT> </DIV>
<DIV dir=ltr><FONT face=Arial size=2>If you put psk in quotes, it is treated as
a ascii passphrase, otherwise I believe its hex.</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT> </DIV>
<DIV dir=ltr><FONT face=Arial size=2>Shouldn't this be posted on a
wpa_supplicant list?</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT> </DIV>
<DIV dir=ltr><FONT face=Arial size=2>Cheers,</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2>Bruce</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT> </DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT> </DIV></DIV>
<DIV dir=ltr><BR>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B>
hostap-bounces+bsmith=road-inc.com@shmoo.com on behalf of David<BR><B>Sent:</B>
Thu 7/26/2007 6:45 PM<BR><B>To:</B> Bryan Kadzban<BR><B>Cc:</B>
hostap@shmoo.com<BR><B>Subject:</B> Re: WPA wifi. Help please! (I am
desperate)<BR></FONT><BR></DIV>
<DIV>Thank you very much.<BR><BR>Uf, still desperate. I tried to write the
wpa_supplicant.conf, run wpa_supplicant and then dhclient. The output of
wpa_supplicant did not make me be optimistic and, of course, dhclient
failed.<BR><BR>What do I have to do? Is this sequence right?<BR><BR>1) Write the
wpa_supplicant.conf file.<BR>2) Run wpa_supplicant -dd -D madwifi -i ath0 -c
/etc/wpa_supplicant.conf and leave it running?<BR>3) Then, dhclient
ath0?<BR><BR>If not, can you please correct me?<BR><BR>If yes, can you please
tell me the wpa_supplicant.conf file, based on the output of iwlist ath0 scan
that I wrote in the previous email? (sorry if I look to be abusing, but I have
tried for 5 hours with no results :-( ). <BR><BR>Thank you very much for
your help,<BR><BR>David<BR><BR><BR>
<DIV><SPAN class=gmail_quote>On 27/07/07, <B class=gmail_sendername>Bryan
Kadzban</B> <<A
href="mailto:bryan@kadzban.is-a-geek.net">bryan@kadzban.is-a-geek.net </A>>
wrote:</SPAN>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">-----BEGIN
PGP SIGNED MESSAGE-----<BR>Hash: RIPEMD160<BR><BR>David wrote: <BR>> They
told me that it is right, but that WPA keys can be shorter than<BR>> 64
characters as well...<BR><BR>*Only* if the string is treated as an ASCII key
(the type of key that<BR>gets hashed with the SSID to generate the real
key). There is no way to <BR>treat a 26-character string as a hex
WPA key; WPA keys are 256 bits<BR>long.<BR><BR>> Maybe a hint can come from
the fact that, in Windows XP, introducing<BR>> the 26 character key works
OK.<BR><BR>I have no idea how XP's supplicant is coded, but I suspect that it
<BR>treats any string shorter than 64 characters as an ASCII key and
hashes<BR>it. For wpa_supplicant, try putting the key in double
quotes, since<BR>that's what flags wpa_supplicant to treat the string as an
ASCII key and <BR>hash it.<BR>-----BEGIN PGP SIGNATURE-----<BR>Version: GnuPG
v1.4.7 (GNU/Linux)<BR>Comment: Using GnuPG with Mozilla - <A
href="http://enigmail.mozdev.org">http://enigmail.mozdev.org</A><BR><BR>iD8DBQFGqSkbS5vET1Wea5wRA5eCAKCf4CWm2jD5gYOmVHBIwunqmzCgzwCfVkdf
<BR>UYDRlQHPWzY/0cBA3LKpecE=<BR>=7NBe<BR>-----END PGP
SIGNATURE-----<BR></BLOCKQUOTE></DIV><BR></DIV></BODY></HTML>