Question on wifi

I am running my BBB on external power (one recommend) have a RL usb wifi connected to the USB port (direct, no hub).

I can see the device with an ifconfig -a as follows:

`

eth0 Link encap:Ethernet HWaddr c8:a0:30:b2:d7:3e

inet addr:192.168.1.151 Bcast:192.168.1.255 Mask:255.255.255.0

inet6 addr: fe80::caa0:30ff:feb2:d73e/64 Scope:Link

UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1

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

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

collisions:0 txqueuelen:1000

RX bytes:5782954 (5.5 MiB) TX bytes:221943 (216.7 KiB)

Interrupt:40

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:65536 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:0

RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

usb0 Link encap:Ethernet HWaddr ce:ca:6e:8b:5b:3a

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)

wlan0 Link encap:Ethernet HWaddr 5c:f3:70:0c:74:bd

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)

`

My /etc/network/interface has the following (where ssidname and password have the actual names

`

allow-hotplug wlan0

auto wlan0

iface wlan0 inet dhcp

wpa-ssid actualssidname

wpa-psk password

`

When I boot (with wired ethernet or not), the wifi is not configured. I can add a static route in the interface file, and it comes up on boot (I can then ping it on the wired, or wireless ips). I cannot ssh into the wireless one however (which would be because I didn’t change the default route I would assume).

So I believe the wireless adapter is capable of working (given I can configure a static ip). What I would like to have is the wireless be dhcp, and if no wired ethernet, have the wifi be the default route and be able to ssh etc via that means.

Is there something or some file I should modify?

I believe the following is the relevant dmseg:

`

[ 4.958989] r8712u: module is from the staging directory, the quality is unknown, you have been warned.

[ 4.984675] r8712u 1-1:1.0: usb_probe_interface

[ 4.984701] r8712u 1-1:1.0: usb_probe_interface - got id

[ 4.984717] r8712u: Staging version

[ 4.990715] r8712u: register rtl8712_netdev_ops to netdev_ops

[ 4.990738] r8712u: USB_SPEED_HIGH with 4 endpoints

[ 4.994669] r8712u: Boot from EFUSE: Autoload OK

[ 6.206246] net eth0: initializing cpsw version 1.12 (0)

[ 6.210376] net eth0: phy found : id is : 0x7c0f1

[ 6.210408] libphy: PHY 4a101000.mdio:01 not found

[ 6.215564] net eth0: phy 4a101000.mdio:01 not found on slave 1

[ 6.232952] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready

[ 6.685950] r8712u: CustomerID = 0x0000

[ 6.685972] r8712u: MAC Address from efuse = 5c:f3:70:0c:74:bd

[ 6.685982] r8712u: Loading firmware from “rtlwifi/rtl8712u.bin”

[ 6.687451] usbcore: registered new interface driver r8712u

[ 9.286696] libphy: 4a101000.mdio:00 - Link is Up - 100/Full

[ 9.286750] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready

[ 16.253277] r8712u: 1 RCR=0x153f00e

[ 16.253773] r8712u: 2 RCR=0x553f00e

[ 16.358719] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready

`