Can't install D-link DWA-171 drivers

Hello, I’m new to linux and this is my 3rd day. Everything is great so far but the problem I’m facing is that I don’t know how to install drivers from a package as everything else was already detected. I went to D-link website and downloaded the ZIP file of the driver but didn’t understand what to do next. I searched online and I found out that I should use the make command inside the directory but when I do so i get these errors:

make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/5.8.18-1-MANJARO/build M=/home/mahmoud/Documents/DWA_171_REVC_DRIVER_v5.8.1.4_LINUX/rtl8821CU_rtl8731AU_WiFi_linux_v5.8.1.4_36409.20200313_COEX20191014-4141 modules
make[1]: Entering directory ‘/usr/lib/modules/5.8.18-1-MANJARO/build’
CC [M] /home/mahmoud/Documents/DWA_171_REVC_DRIVER_v5.8.1.4_LINUX/rtl8821CU_rtl8731AU_WiFi_linux_v5.8.1.4_36409.20200313_COEX20191014-4141/core/rtw_cmd.o
In file included from /home/mahmoud/Documents/DWA_171_REVC_DRIVER_v5.8.1.4_LINUX/rtl8821CU_rtl8731AU_WiFi_linux_v5.8.1.4_36409.20200313_COEX20191014-4141/include/drv_types.h:75,
from /home/mahmoud/Documents/DWA_171_REVC_DRIVER_v5.8.1.4_LINUX/rtl8821CU_rtl8731AU_WiFi_linux_v5.8.1.4_36409.20200313_COEX20191014-4141/core/rtw_cmd.c:17:
/home/mahmoud/Documents/DWA_171_REVC_DRIVER_v5.8.1.4_LINUX/rtl8821CU_rtl8731AU_WiFi_linux_v5.8.1.4_36409.20200313_COEX20191014-4141/include/rtw_security.h:252:8: error: redefinition of ‘struct sha256_state’
252 | struct sha256_state {
| ^~~~~~~~~~~~
In file included from ./include/linux/filter.h:23,
from ./include/net/sock.h:59,
from ./include/linux/tcp.h:19,
from ./include/linux/ipv6.h:88,
from ./include/net/addrconf.h:50,
from /home/mahmoud/Documents/DWA_171_REVC_DRIVER_v5.8.1.4_LINUX/rtl8821CU_rtl8731AU_WiFi_linux_v5.8.1.4_36409.20200313_COEX20191014-4141/include/osdep_service_linux.h:49,
from /home/mahmoud/Documents/DWA_171_REVC_DRIVER_v5.8.1.4_LINUX/rtl8821CU_rtl8731AU_WiFi_linux_v5.8.1.4_36409.20200313_COEX20191014-4141/include/osdep_service.h:53,
from /home/mahmoud/Documents/DWA_171_REVC_DRIVER_v5.8.1.4_LINUX/rtl8821CU_rtl8731AU_WiFi_linux_v5.8.1.4_36409.20200313_COEX20191014-4141/include/drv_types.h:27,
from /home/mahmoud/Documents/DWA_171_REVC_DRIVER_v5.8.1.4_LINUX/rtl8821CU_rtl8731AU_WiFi_linux_v5.8.1.4_36409.20200313_COEX20191014-4141/core/rtw_cmd.c:17:
./include/crypto/sha.h:84:8: note: originally defined here
84 | struct sha256_state {
| ^~~~~~~~~~~~
make[2]: *** [scripts/Makefile.build:281: /home/mahmoud/Documents/DWA_171_REVC_DRIVER_v5.8.1.4_LINUX/rtl8821CU_rtl8731AU_WiFi_linux_v5.8.1.4_36409.20200313_COEX20191014-4141/core/rtw_cmd.o] Error 1
make[1]: *** [Makefile:1752: /home/mahmoud/Documents/DWA_171_REVC_DRIVER_v5.8.1.4_LINUX/rtl8821CU_rtl8731AU_WiFi_linux_v5.8.1.4_36409.20200313_COEX20191014-4141] Error 2
make[1]: Leaving directory ‘/usr/lib/modules/5.8.18-1-MANJARO/build’
make: *** [Makefile:2327: modules] Error 2

I tried other packages from git but nothing works I really need the wifi by today if anyone can help

Hi,

Thats usually not how we manager software.

It would probably be best to show the actual model:
How to provide good information

EDIT.
Oops. Nevermind I see it in the output.

Which means theres a bunch of AUR packages:

7 aur/rtl8821cu-raspberrypi-git 5.2.5.3_24795.20171031.r18.g0278eaa-1 (+0 0.00) 
    rtl8821cu chipset driver
6 aur/rtl8812au422-dkms-git 4.2.2.r7502.gc20130507aur2-1 (+1 0.00) 
    rtl8821AU/rtl8812AU/rtl8811AU driver with firmware version 4.2.2 (7502.20130507) (Tested and working as of Linux kernel 5.3.8-arch1-1)
5 aur/rtl8821ce-dkms-lts 1.0.5.r110.gd95376d-1 (+1 0.75) 
    rtl8821CE driver for lts kernel with firmware
4 aur/rtl8821ce-dkms 1.0.5.r110.gd95376d-1 (+2 0.37) 
    rtl8821CE driver with firmware
3 aur/rtl8821cu-dkms-git 5.4.170ca0bcba-1 (+13 0.89) 
    rtl8821cu chipset driver
2 aur/rtl8821ce-dkms-git 1.0.5.r36.gca4abd8-1 (+25 0.99) 
    rtl8821CE driver with firmware
1 aur/rtl8821au-dkms-git 5.1.5.r59.gaf07b27-1 (+45 0.00) 
    rtl8821AU, rtl8812AU and rtl8811AU chipset driver with firmware v5.1.5

See here:
https://aur.archlinux.org/packages/?K=rtl8821

But please see this for using the AUR:
https://wiki.manjaro.org/index.php?title=Arch_User_Repository

Here is the picture of the folder I installed after extracting:
https://imgur.com/kCBGnOy

Please see the edited extra information above :arrow_heading_up:

(it seems you likely want the rtl8821cu-dkms-git package)

1 Like

Indeed that was the package needed its now working !.

You are amazing thank you for the help!

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.