I bought a D-Link DWA-131 USB Wifi adapter as it was supposed to work straight out of the box. The device shows up OK in the USB list (lsusb). I've added the wlanX sections to the /etc/network/interfaces file. But there seems to be a problem connecting to my network, specifically, trouble with the mac address.
The reported mac address for the DWA-131 dongle changes depending on how it's plugged in.
If it's plugged directly into the pi's USB socket, the ifconfig shows the correct mac address, the light never flashes and the device can't connect to the router, even when close and with a clear line of sight.
If it's plugged into the powered hub, ifconfig shows a mac address of ff:ff:ff:ff:ff:ff, the light flashes and the device can see the router, the router can also see the device, the router sees the device's mac address as ff:...:ff. The SSID is visible. The dhcp requests never make it to the dhcp server (an Ubuntu box), the server never responds (obviously) and the router only shows packets coming from the dongle and never to it.
The mac address looks wrong to me when using the hub. Does anyone know how to get this thing to use the correct mac address? I've tried putting a "hwaddress ether " into my interfaces file but that was just ignored.
I'm using the latest wheezy debian image for the SD card.
sudo ifup wlan1which outputs some info and several DHCPREQUESTs and then completes without connecting. – Skizz Sep 12 '12 at 8:30