A slightly more correct way of getting wep to work is as follows:
1) Edit /etc/pcmcia/hostap_cs.conf and in the line (second from the top) that reads:
class \"network\" module \"hostap_cs\"
Change this line to:
class \"network\" module \"hostap_cs\", \"hostap_crypt_wep\"
That way, the wep module will load and unload automatically when the card is inserted/ejected (whereas adding it to /etc/modules causes the wep module to be loaded all the time, which consumes memory).
2) Edit /etc/pcmcia/wireless.opts, set the variables at the bottom to what you need (ESSID, MODE, and add the variable KEY=your wep key)
Now your card should come up automatically on insert, without needing to manually run iwconfig everytime. And all the related modules should unload when you eject the card.
3) For dhcp settings, set the variable DHCP=\"y\" in /etc/pcmcia/network.opts. Or set static values in that file if you need.
4) Edit /etc/pcmcia/network, find the line that starts up udhcpc (line 114). Change the \"-f\" flag to \"-b\". Now udhcpc will actually create it\'s pid file like it should, so that it can be killed when you eject your card.
That\'s all I remember for now. If I get time, I\'ll put together a quick little patch script to apply all these changes automatically (and prompt for wep settings, etc).