My router has a section where you enter a passphrase then hit a generate button. A 26-digit key shows up, it looks to be in hex. This is what I'm using. I tried both of the following:
sudo iwconfig ath0 key open 1234ABCD5678EFAB9012CDEF34
sudo iwconfig ath0 key restricted 1234ABCD5678EFAB9012CDEF34
Neither will allow me to get an IP using dhclient. I've tried setting the IP manually but the laptop still won't see the network.
sudo iwconfig ath0 essid doodad
sudo iwconfig ath0 ap 00:11:22:33:44:55
sudo iwconfig ath0 channel 6
sudo iwconfig ath0 key open 1234ABCD5678EFAB9012CDEF34
Those are the new commands I type it after I insert my PCMCIA card. (with things like essid, ap mac, and key being the real values

)