WirelessTroubleshootingGuide - Ubuntu Wiki
for those of you who are being KILLED trying to set up a wireless adapter in linux, here’s what worked for me..
i am using the D-Link DWL-G520 on some random amd64 box. when i tried connecting to the net on an open system, i had no problems. as soon as i tried connecting using WEP, there were problems galore.. i couldn’t get dhcp to give me an address or anything..
the link about gives a ton of great advice, but the part that fixed the whole problem for me was fixing the auth mode.. i had a feeling that this was the problem as the network utility did not give me any oprions for auth mode.
if you are using WEP-64, you can do this:
iwpriv ath0 authmode 2
then do a:
dhclient ath0
and you should get an address..
if this DOES work, make sure to add it to your /etc/network/interfaces file so it will happen on boot.
pre-up iwpriv ath0 authmode 2
worked for me..
be sure you use the correct interface for your system.. my wireless happens to be ath0… yours might be different..