If you have recently bought a D-Link Wireless Adapter (DWA-125) for your Linux machine and wondering how to get it working, this article might help you get started.
Since there is no driver available for DWA-125 on Linux, we need to compile the chipset driver from the source.
If your DLink DWA-125 stops working after a kernel upgrade, you will have to reinstall from source code, by compiling for the new kernel version. Follow the instructions below.
To run the commands described here, you need to have sudo access. Also, if you don’t have build-essential package installed, please install it.
Enter the following command in the terminal.
Extract the downloaded zip file to a suitable location.
For the purpose of this documentation, let’s assume the Ubuntu username to be user and the path to the folder where the zip file was extracted to be ~/source/dwa-125
Edit the file ~/source/dwa-125/os/linux/config.mk and change the following values:
# Support Wpa_Supplicant HAS_WPA_SUPPLICANT=y
# Support Native WpaSupplicant for Network Maganger HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=y
Open a terminal and change directory:
Run “make” :
sudo “make install” :
Blacklist unnecessary drivers
Edit /etc/modprobe.d/blacklist.conf and add these lines:
blacklist rt2x00usb blacklist rt2x00lib blacklist rt2800usb
Activate driver module
For Ubuntu 11.10, you might to use RT5370STA instead of RT3070STA as mentioned by flbiggs. So here’s the command you need to get the module activated and to bring up the DWA-125 wireless device:
This should bring up the wireless adapter and network manager should start scanning and detect available wireless networks.
Make driver load on startup
Edit /etc/modules and add this line:
This should activate the DWA-125 wireless device every time you turn on the computer.