Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

SOLVED: D-Link DWA-172 & Debian

Need help with peripherals or devices?
Post Reply
Message
Author
User avatar
phantomlord
Posts: 26
Joined: 2006-10-29 17:38

SOLVED: D-Link DWA-172 & Debian

#1 Post by phantomlord »

I am trying to make this USB wireless adapter to work with my Debian Sid. It has a RTL8811au chip. My kernel is 3.16.0-4-686-pae.
So, I searched the internet and found how to install the necessary driver:
apt-get install git
git clone https://github.com/abperiasamy/rtl8812A ... _linux.git
cd rtl8812AU_8821AU_linux
make
make install
All went fine, no errors. Than I insert the module:
modprobe -v 8812au
insmod /lib/modules/3.16.0-4-686-pae/kernel/drivers/net/wireless/8812au.ko

lsmod |grep 8812
8812au 852252 0
cfg80211 350041 1 8812au
usbcore 170994 9 ohci_hcd,ohci_pci,ehci_hcd,ehci_pci,gspca_main,usbhid,8812au,gspca_zc3xx,xhci_hcd
All looks fine, but:
iwconfig
lo no wireless extensions.
eth0 no wireless extensions.

ifup wlan0
Ignoring unknown interface wlan0=wlan0.
There is no wlan0 interface and I need help to make it work. Any ideas, please?
Last edited by phantomlord on 2015-04-28 18:39, edited 1 time in total.

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 71 times

Re: D-Link DWA-172 & Debian

#2 Post by stevepusser »

Maybe the driver source from here would work?

https://github.com/Braklet/rtl8811AU_rtl8821A-linux
MX Linux packager and developer

User avatar
phantomlord
Posts: 26
Joined: 2006-10-29 17:38

Re: D-Link DWA-172 & Debian

#3 Post by phantomlord »

Oh, pfff... I tried this one before, it is the worst case! I advice anybody to not use this driver. It causes hanging and freezing of Linux when inserting the module, even on booting. I had to use a life distro in order to delete the module from /lib/modules/3.16.0-4-686-pae/kernel/drivers/net/wireless/ and make my Debian boot.

User avatar
phantomlord
Posts: 26
Joined: 2006-10-29 17:38

Re: D-Link DWA-172 & Debian

#4 Post by phantomlord »

Now I tried another one: https://github.com/abperiasamy/rtl8812A ... _linux.git
The situation with it is the same as in my first post. By the way:

Code: Select all

lshw
.........
*-usb UNCLAIMED
                   description: Generic USB device
                   product: 11ac adapter
                   vendor: D-Link Corporation
                   physical id: 5
                   bus info: usb@3:5
                   version: 2.00
                   serial: 00e04c000001
                   capabilities: usb-2.10
                   configuration: maxpower=500mA speed=480Mbit/s
......

lsusb
.....
Bus 003 Device 004: ID 2001:3318 D-Link Corp. 
....

# lsmod |grep 8812
8812au                852252  0 
cfg80211              350041  1 8812au
usbcore               170994  9 ohci_hcd,ohci_pci,ehci_hcd,ehci_pci,gspca_main,usbhid,8812au,gspca_zc3xx,xhci_hcd

root@debian:/lib/modules/3.16.0-4-686-pae/kernel/drivers/net/wireless# rmmod 8812au
root@debian:/lib/modules/3.16.0-4-686-pae/kernel/drivers/net/wireless# modprobe -v 8812au
insmod /lib/modules/3.16.0-4-686-pae/kernel/drivers/net/wireless/8812au.ko 
root@debian:/lib/modules/3.16.0-4-686-pae/kernel/drivers/net/wireless# dmesg
[ 1735.507874] usbcore: deregistering interface driver rtl8812au
[ 1740.263050] usbcore: registered new interface driver rtl8812au
root@debian:/lib/modules/3.16.0-4-686-pae/kernel/drivers/net/wireless#iwconfig
lo        no wireless extensions.

eth0      no wireless extensions.


mpoly
Posts: 1
Joined: 2015-04-18 19:36

Re: D-Link DWA-172 & Debian

#5 Post by mpoly »

Hi,

I have a good news for you. I own a D-Link DWA-172 too and I found the way to make it works.
I use https://github.com/abperiasamy/rtl8812AU_8821AU_linux (rtl8812AU_8821AU_linux-master.zip)
Then you'll need to edit the file os_dep/linux/usb_intf.c to add :

{USB_DEVICE(0x2001, 0x3318),.driver_info = RTL8821}, /* D-Link DWA-172 */

in the #ifdef CONFIG_RTL8821A section. Then compile, install and enjoy :)

User avatar
phantomlord
Posts: 26
Joined: 2006-10-29 17:38

Re: D-Link DWA-172 & Debian

#6 Post by phantomlord »

Thanks, I will try this soon and will reply

User avatar
phantomlord
Posts: 26
Joined: 2006-10-29 17:38

Re: D-Link DWA-172 & Debian

#7 Post by phantomlord »

Nice, it worked! Thank you mpoly!
*-usb
description: Wireless interface
product: 11ac adapter
vendor: D-Link Corporation
physical id: 1
bus info: usb@4:1
logical name: wlan1
version: 2.00
serial: 00e04c000001
capabilities: usb-2.10 ethernet physical wireless
configuration: broadcast=yes driver=rtl8812au driverversion=3.16.0-4-686-pae firmware=N/A ip=192.168.0.101 link=yes maxpower=500mA multicast=yes speed=480Mbit/s wireless=IEEE 802.11AC

User avatar
phantomlord
Posts: 26
Joined: 2006-10-29 17:38

Re: SOLVED: D-Link DWA-172 & Debian

#8 Post by phantomlord »

For 4.* kernels one must use this driver:
https://github.com/csssuf/rtl8812au

Yet adding
{USB_DEVICE(0x2001, 0x3318),.driver_info = RTL8821}, /* D-Link DWA-172 */
in the #ifdef CONFIG_RTL8821A section of os_dep/linux/usb_intf.c is required

katun79
Posts: 1
Joined: 2015-08-15 11:18

Re: SOLVED: D-Link DWA-172 & Debian

#9 Post by katun79 »

Thanks for this useful solution!
I post a git pull request to include your change into the repository https://github.com/csssuf/rtl8812au.

Thanks. :D

wimy
Posts: 6
Joined: 2018-04-24 07:57

Re: SOLVED: D-Link DWA-172 & Debian

#10 Post by wimy »

please, help me. when I type make in terminal, I recever iformation, the path not direct or not found. can you explant from command make, ... to install. thank you very much

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 71 times

Re: SOLVED: D-Link DWA-172 & Debian

#11 Post by stevepusser »

You need to set up a kernel module build environment first, which requires extra packages to be installed. Do you have a net connection? It is a big pain without one.

If you do have a wired connection, install module-assistant and run as root or with sudo:

Code: Select all

m-a prepare
to set up the build environment.
MX Linux packager and developer

wimy
Posts: 6
Joined: 2018-04-24 07:57

Re: SOLVED: D-Link DWA-172 & Debian

#12 Post by wimy »

thanks but I don't know how to install pakage which then modify. as I can't install module. Can you show me from comman make and make install. thanks you very much

wimy
Posts: 6
Joined: 2018-04-24 07:57

Re: SOLVED: D-Link DWA-172 & Debian

#13 Post by wimy »


User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 71 times

Re: SOLVED: D-Link DWA-172 & Debian

#14 Post by stevepusser »

We can't help you if you won't provide vital information.

For the second time, do you have any sort of Net connection in your Debian or not?
MX Linux packager and developer

wimy
Posts: 6
Joined: 2018-04-24 07:57

Re: SOLVED: D-Link DWA-172 & Debian

#15 Post by wimy »

Thanks, maybe I will try my best again.

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 71 times

Re: SOLVED: D-Link DWA-172 & Debian

#16 Post by stevepusser »

For the third time, do you have a connection to the Net or not?

This is your last chance to answer, after this you are on your own.
MX Linux packager and developer

wimy
Posts: 6
Joined: 2018-04-24 07:57

Re: SOLVED: D-Link DWA-172 & Debian

#17 Post by wimy »

I have connection or net. can you help me online. I don't want miss the last change. can you help me throught teamview. I use skype laiduchieu or email laiduchieu@hotmail.com. or I will online 16h:00 GMT+7( I'm from Viet Nam) on forum thanks you very much. or how can you help me?

wimy
Posts: 6
Joined: 2018-04-24 07:57

Re: SOLVED: D-Link DWA-172 & Debian

#18 Post by wimy »

I think problem is such not directly when I type make. can you help me this problem.
https://photos.app.goo.gl/9Y98GfgRG6NAdrc89

Post Reply