<div>Don,</div>  <div>&nbsp;</div>  <div>Thanks.</div>  <div>I have&nbsp; package can translate wep passphrase to wep key.</div>  <div>May I use it for wpa passphrase or I have to copy codes from wpa_passphrase and let wpa_passphrase to translate to wpa key?</div>  <div>&nbsp;</div>  <div>----henry<BR><BR><B><I>Dan Williams &lt;dcbw@redhat.com&gt;</I></B> wrote:</div>  <BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">On Tue, 2007-02-20 at 14:49 -0800, hong zhang wrote:<BR>&gt; List,<BR>&gt; <BR>&gt; I konw WEP key is passed through ieee80211_ioctl_setkey() in madwifi<BR>&gt; driver.<BR>&gt; Could anyone please tell me which ioctl function in madwifi driver<BR>&gt; takes<BR>&gt; wpa-tkip passphrase?<BR>&gt; <BR>&gt; I try to pass a wpa-tkip passphrase down to madwifi driver but I do<BR>&gt; not know which ioctl() should take it.<BR><BR>You don't push the passphrase to the driver, you hash the passphrase<BR>with
 wpa_passphrase to get the key and you push the key down to the<BR>driver using SIOCSIWENCODEEXT. Drivers certainly shouldn't be accepting<BR>passphrases unless they are smoking really, really unholy crack.<BR><BR>Dan<BR><BR><BR></BLOCKQUOTE><BR>