which ioctl in driver takes WPA-TKIP passphrase?

hong zhang henryzhang
Tue Feb 20 19:00:51 PST 2007


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 <dcbw at redhat.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
> driver.
> 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



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.shmoo.com/pipermail/hostap/attachments/20070220/e3a08975/attachment.htm 



More information about the Hostap mailing list