can't enable WiFi USB dongle on BeagleBoard xM

Dear all,

I can't succeed to enable WiFi USB dognle (Netgear or LM Technologies)
from the BeagleBoard xM running Angstrom Linux.

I did the following:
# iwlist wlan0 scan
# iwconfig wlan0 essid "myWifi"
# dhclient wlan0

the last one (dhclient) hangs for a while and when it completes
doesn't give the beagle an IP address.

I also get this:

# ifconfig
lo Link encap:Local Loopback
          inet addr:127.0.0.1 Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING MTU:16436 Metric:1
          RX packets:8 errors:0 dropped:0 overruns:0 frame:0
          TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:480 (480.0 B) TX bytes:480 (480.0 B)

usb0 Link encap:Ethernet HWaddr FE:8E:5F:5B:CB:B8
          UP BROADCAST RUNNING MULTICAST MTU:1492 Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:101 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B) TX bytes:47963 (46.8 KiB)

wlan0 Link encap:Ethernet HWaddr 00:02:72:85:AB:FB
          UP BROADCAST MULTICAST MTU:1500 Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
    RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

# ifup wlan0
Error for wireless request "Set Encode" (8B2A) :
    SET failed on device wlan0 ; Invalid argument.
udhcpc (v1.13.2) started
run-parts: /etc/udhcpc.d/00avahi-autoipd exited with code 1
Sending discover...
Sending discover...
Sending discover...
No lease, forking to background

Does anyone have any idea/directions?
Thanks,
Mik

a driver issue maybe ?
which driver are you using ?

take a look at http://embeddedgeeks.wordpress.com/2012/01/03/belkin-micro-wifi-usb-dongle-on-the-beagleboard

Cheers,
Ayoub Zaki

embeddedgeeks.wordpress.com

Thanks a lot Ayoub Zaki!

that link really helped and I could see what I was missing.

Mik