Install D-Link DWA-125 wireless driver on Linux

Introduction

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.

Kernel Upgrade

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.

Permissions

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.

$ sudo apt-get install build-essential

Download source

First, get the source code. The source code is available from Ralink, but if you have trouble finding the right part, download it from TwiCore’s mirror using this link.

Extract the downloaded zip file to a suitable location.

Install

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 configuration

Edit the file ~/source/dwa-125/os/linux/config.mk and change the following values:

line 56

  # Support Wpa_Supplicant
  HAS_WPA_SUPPLICANT=y

line 59

  # Support Native WpaSupplicant for Network Maganger
  HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=y

Open a terminal and change directory:

$ cd ~/source/dwa-125

Run “make” :

$ sudo make

sudo “make install” :

$ 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:

$ sudo modprobe rt5370sta

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:

  rt5370sta

This should activate the DWA-125 wireless device every time you turn on the computer.

Be first to comment

Leave a Reply