Using an old D-Link WiFi dongle on Raspberry Pi

Gilbert Tsang bio photo By Gilbert Tsang

I have a D-Link DWL-G132 usb dongle lying around from the PC days. Like my web cam I would like to put it to good use so the Raspberry Pi is a great choice. So first thing first is to plug it instead of the Edimax dongle and boot up the with the Raspbian image!

It didn’t take long to find out the system doesn’t have connectivity and a run of lsusb gives the following output:

Bus 001 Device 004: ID 2001:3a03 D-Link Corp. DWL-G132 (no firmware) [Atheros AR5523]

So it appears that the device is detected but no driver can be identified. Needless to say iwconfig confirms the same.

A bit of researching suggests that there’s a driver for the AR5523 chipset not shipped with Raspian. Let’s get started.

Pointing to alternate source

To be safe I want to temporarily switch out where Pi gets its packages and switch it back later.

sudo vi /etc/apt/sources.list
# add the following
deb http://http.debian.net/debian/ wheezy-backports main contrib non-free
# comment out the original repo
# deb http://mirrordirector.raspbian.org/raspbian/ wheezy main contrib non-free rpi

then

sudo apt-get update
#it will say it wants to upgrade the package)
sudo apt-get install firmware-atheros 

Don’t forget to restore the original repo to be on the safe side.

After this my Pi model B+ is well connected with the 2.4GHz dongle.

lsusb
Bus 001 Device 004: ID 2001:3a03 D-Link Corp. DWL-G132 [Atheros AR5523]