List Info

Thread: Re: which ioctl in driver takes WPA-TKIP passphrase?




Re: which ioctl in driver takes WPA-TKIP passphrase?
country flaguser name
United States
2007-02-20 21:00:51
Don,
 
Thanks.
I have  package can translate wep passphrase to wep key.
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?
 
----henry

Dan Williams <dcbwredhat.com> wrote:
On Tue, 2007-02-20 at 14:49 -0800, hong zhang wrote:
>; List,
>
> I konw WEP key is passed through ieee80211_ioctl_setkey() in madwifi
&gt; driver.
&gt; Could anyone please tell me which ioctl function in madwifi driver
>; takes
> wpa-tkip passphrase?
>
> I try to pass a wpa-tkip passphrase down to madwifi driver but I do
> not know which ioctl() should take it.

You don't push the passphrase to the driver, you hash the passphrase
with wpa_passphrase to get the key and you push the key down to the
driver using SIOCSIWENCODEEXT. Drivers certainly shouldn't be accepting
passphrases unless they are smoking really, really unholy crack.

Dan



[1]

about | contact  Other archives ( Real Estate discussion Medical topics )