which ioctl in driver takes WPA-TKIP passphrase?
henryzhang at arrowspan.com
Tue Feb 20 22:00:51 EST 2007
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?
Dan Williams <dcbw at redhat.com> wrote:
On Tue, 2007-02-20 at 14:49 -0800, hong zhang wrote:
> I konw WEP key is passed through ieee80211_ioctl_setkey() in madwifi
> Could anyone please tell me which ioctl function in madwifi driver
> 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.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the HostAP