I'm at the University in Zürich at the moment for an international summer school. They provide a wireless network for us and "secured" it with a WEP-Encryption. So this is the first time, I have to use and configure WEP.
8-CURRENT had big changes in the wireless network stack and now uses a virtual "wlanX" device insteed of the normal driver device. So i still do have the iwi-device, which is provided by my wireless network card driver.
iwi0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 2290
media: IEEE 802.11 Wireless Ethernet autoselect mode 11g
But this device isn't used any longer. Insteed a virtual device, named wlan0, is created and configured insteed (see /usr/src/UPDATING on how to do that). The first thing to do is to set this device to up:
ifconfig wlan0 up
If you don't do that, you cannot scan for networks and you cannot configure the device. Next it is necessary to set the session id and the password.
ifconfig wlan0 ssid
ifconfig wlan0 wepkey
Since some devices can have more passwords set, you need to specify which password is used
ifconfig wlan0 deftxkey 1
Then you need to turn on the WEP mode using
ifconfig wlan0 wepmode on
and get an IP adresse