Wifi on beaglebone black using Netgear USB dongle WG111v2

Hi,

Device version: Linux beaglebone 3.8.13 #1 SMP Wed Jun 5 11:21:00 CEST 2013 armv7l GNU/Linux

I am trying to connect to internet using a netgear USB dongle (type: WG111v2) on my BeagleBone black (running on Angstorm)

lsusb produces this result…

Bus 001 Device 002: ID 0846:6a00 NetGear, Inc. WG111v2 54 Mbps Wireless [RealTek RTL8187L]

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

The contents of dmesg|tail are as follows…/

[ 31.799691] cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2700 mBm)

[ 31.807778] cfg80211: (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 1700 mBm)

[ 31.815866] cfg80211: (5250000 KHz - 5330000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)

[ 31.823946] cfg80211: (5490000 KHz - 5600000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)

[ 31.832025] cfg80211: (5650000 KHz - 5710000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)

[ 31.840113] cfg80211: (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 3000 mBm)

[ 31.848322] cfg80211: (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 4000 mBm)

[ 31.856508] wlan0: Limiting TX power to 27 (27 - 0) dBm as advertised by 00:25:9c:dc:9c:58

[ 41.367073] EXT4-fs (mmcblk1p2): re-mounted. Opts: commit=0

[ 52.665479] fuse init (API version 7.20)

ifconfig wlan0 gets this result…

wlan0 Link encap:Ethernet HWaddr 00:1B:2F:76:70:E9

inet addr:169.254.34.180 Bcast:169.254.255.255 Mask:255.255.0.0

inet6 addr: fe80::21b:2fff:fe76:70e9/64 Scope:Link

UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1

RX packets:613 errors:0 dropped:0 overruns:0 frame:0

TX packets:41 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:1000

RX bytes:95614 (93.3 KiB) TX bytes:13745 (13.4 KiB)

The wifi internet setup in my home is static IPv4 based, with wpa security. The wifi router is at 192.168.0.1, DNS servers are configured on the router.

I tried the adafruit tutorial for setting up wifi…http://learn.adafruit.com/beaglebone/wifi after following this tutorial for some reason wlan0 gets set for IPv6 addressing and not IPv4 addressing.

Please suggest how I can get the wifi configured for static IP on the BBB.

thanks
a