How to install a wireless adapter D-Link DWA-131?
Solution 1
I added a driver for this adapter to PPA. It can be installed by running:
sudo add-apt-repository ppa:hanipouspilot/rtlwifi
sudo apt-get update
sudo apt-get install rtl8192eu-dkms
Solution 2
Here's exactly what and where you have to edit:
Download the source of the DWA-131 (version E1) Linux driver.
Extract your source and go to
/20140812_rtl8192EU_linux_v4.3.1.1_11320/os_dep/linux/
.Edit the
os_intfs.c
file.-
Search for the following line:
DBG_871X_LEVEL(_drv_info
and change#endif return NOTIFY_DONE; DBG_871X_LEVEL(_drv_info_, FUNC_NDEV_FMT" state:%lu\n", FUNC_NDEV_ARG(dev), state); switch (state) { case NETDEV_CHANGENAME: rtw_adapter_proc_replace(dev); break; } return NOTIFY_DONE; }
into
#endif return NOTIFY_DONE; //ed, 20150426 //DBG_871X_LEVEL(_drv_info_, FUNC_NDEV_FMT" state:%lu\n", FUNC_NDEV_ARG(dev), state); switch (state) { case NETDEV_CHANGENAME: //ed,20150426 //rtw_adapter_proc_replace(dev); break; } return NOTIFY_DONE; }
You have to actually insert this:
//ed, 20150426 //
-
Then write the file and do:
make
make install
-
I also did the following:
wget http://www.orbit-lab.org/kernel/compat-wireless-3-stable/v3.0.0/compat-wireless-3.0-2.tar.bz2 tar jxvf compat-wireless-3.0-2.tar.bz2 make make install
(Please note that the
build-essential
package is already installed on the machine. You'll have toapt-get install
it if you want to be able tomake
andmake install
anything on the machine.)
Hope this helps make the process clearer. Thanks to the first author for the files to modify.
Fabrice Clerc
Related videos on Youtube
Amol Gangadhar Naik
Updated on September 18, 2022Comments
-
Amol Gangadhar Naik over 1 year
Recently I built new PC with Ubuntu OS 14.04 (64bit). I noticed the D-Link Wireless N Nano USB Adapter doesn't get detected and installed automatically.
Following are the adapter specifications:
- Model No: DWA-131
- Hardware Version : E1
- Firmware Version : 5.00
How to install this wireless adapter?
-
Panther about 9 yearsSounds as if, after a diligent search on your part, your hardware is not linux compatible. Your options are to contact the vendor and ask for a linux driver, write a kernel module for yourself, or purchase Linux compatible hardware. Of the 3, linux compatible hardware is by far the easiest solution.
-
Merlijn Sebrechts about 9 yearsCan you please edit your answer and explain a bit more which lines to change to what? I find your explanation very confusing. Thanks!
-
Guillermo Garcia over 8 yearsWhy do you need to install this guy? compat-wireless-3.0-2.tar.bz2
-
Mateusz Piotrowski about 8 yearsDoesn't work for me on 15.10.
-
Pilot6 about 8 yearsDid it build without errors? Did you install some other drivers? Are you sure you have a 8192eu device? You'd better ask a new question.
-
Mateusz Piotrowski about 8 yearsThis solution works for me so I'll just stick to it.
-
Mateusz Piotrowski about 8 yearsAt first I tried the one from your repo but it didn't work. The interface showed up in the Wifi menu in the system tray after installation. It disappeared after rebooting however.
-
Pilot6 about 8 yearsIt is weird. Many people use it.
-
Nearoo almost 8 yearsIf I try
make
I get the errorMakefile:1329: recipe for target 'modules' failed
... ideas how to solve this? I'm using Ubuntu 16.04. -
BlackBurn027 almost 8 yearsSame issue here recipe for target 'modules' failed , ubuntu 16.04
-
BlackBurn027 almost 8 yearsThis worked perfectly fine for me , i did this and also did what is told in answer of this question askubuntu.com/questions/152157/… , rebooting the system made it work i am running ubuntu 16.04 !!
-
Fidel Pérez Menéndez over 6 yearsNot working in Ubuntu 16.10 (couldn't compile).
-
math2001 over 4 yearscan you explain why you have to edit that file?