The problem many people face after installing the dual-band Wi-Fi drivers for D-Link DWA USB dongle is that Linux system doesn't recognize them.
So, if you are on Linux and struggling with setting up a DWA device, then here's the guide for you to follow.
cdinto the root of the main directory.
sudo make install
lsusbcommand to see if you see the installed device listed.
modswitchnow. Run this final command now.
sudo /usr/sbin/usb_modeswitch -K -v 0bda -p 1a2b
lsusbonce again and see if the device is showing as a Wireless one.
Connect to any Wi-Fi and start browsing the internet without any worried.
Note: Sometimes, when you restart your computer, there are chances that Wi-Fi option disappears again. For that, I will suggest you to keep a bash script in some folder with the following lines.
#Bus 003 Device 005: ID 0bda:1a2b Realtek Semiconductor Corp.
/usr/sbin/usb_modeswitch -K -v 0bda -p 1a2b
Save the above lines in a file names
usb.sh and then run with root privileges to get the Wi-Fi working again.
For some reason, if the process above doesn't work then you can try the following GitHub project.
Using this is very simple.
Open Terminal and then run these commands first to setup the dependencies.
sudo apt install python3-pip python3-venv
python3 -m venv driver && source ./driver/bin/activate
Now, you just run the project by running the following commands.
git clone https://github.com/CarlosDev314159/d-link-dwa-171-wifi-adapter-automatic-driver-installer.git && cd d-link-dwa-171-wifi-adapter-automatic-driver-installer
pip3 install -r requirements.txt
Once the process finishes, you will have the WiFi working though the DWA-171 dongle!