Finally got wpa encryption working on my laptop ... after lots of pain. It all boiled down to using generic driver (wext) instead of specific ipw2100/2200 (ipw) which was giving me nasty ioctl errors. Here's my kernel details:
$ uname -a
Linux techwood 2.6.14-kanotix-9 #1 PREEMPT Wed Dec 28 10:17:53 CET 2005 i686 GNU/Linux
First you need to verify the settings on your router (WPA Personal, TKIP encryption algorithm, your passphrase). To generate the passphrase key and append to /etc/wpa_supplicant.conf:
$ wpa_passphrase yourssid yourpassphrase >> /etc/wpa_supplicant.conf
I edited my configuration and arrived at the following:
ap_scan=1
fast_reauth=1
network={
ssid="myessid"
pairwise=TKIP
key_mgmt=WPA-PSK
psk=deadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeef
group=TKIP
}
To bring up the interface using wpa_supplicant:
$ wpa_supplicant -B -c /etc/wpa_supplicant.conf -i eth1 -D wext
$ dhclient eth1
I've also found some issues with eth1 getting recognized with ipw2100 driver and kanotix kernel. My hack solution has been to unload and reload ethernet driver and ipw2100 driver in that order, so I've bundled this all into one script:
#!/bin/sh
killall -9 wpa_supplicant &>/dev/null
ifconfig eth1 down &>/dev/null
# cleanly remove and reinsert mods (my ipw2100 hack)
rmmod tg3
rmmod ipw2100
modprobe tg3
modprobe ipw2100
echo "Starting wpasupplicant ..."
wpa_supplicant -B -c /etc/wpa_supplicant.conf -i eth1 -D wext
sleep 2
dhclient eth1
I'm curious if anyone else has had to jump through similar hoops. Anyhow, I'm happy now.