Q:

Problems with D-Link USB Wifi-adapter

I am currently using a network cable to connect to my router. I have a wireless router but my desktop doesn't have wireless connection (WiFi). So I have to use a WiFi adapter. I use a USB type of adapter. But when I plug it in the LED doesn't come on and it appears dead. But it works in Windows.
So what do I have to do to make a WiFi connection to my router?
Update:
Output of lsusb command.
Bus 001 Device 003: ID 0424:2514 Standard Microsystems Corp. USB 2.0 Hub
Bus 001 Device 006: ID 07d1:3a09 D-Link System DWA-160 802.11abgn Xtreme N Dual Band Adapter(rev.A2) [Atheros AR9170+AR9104]
Bus 004 Device 002: ID 046d:c517 Logitech, Inc. LX710 Cordless Desktop Laser
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

A:

Your device 07d1:3a09 works with the driver carl9170. It also requires firmware which should be installed by default. Check:
ls /lib/firmware | grep carl

You should find carl9170-1.fw and carl9170fw. If not, install with:
sudo apt-get install linux-firmware

Now unload and reload the module:
sudo modprobe -r carl9170 && sudo modprobe carl9170

Was a wireless interface, ideally wlan0, created?
iwconfig

Does it scan and connect?
sudo iwlist wlan0 scan

If not, look for other problems in the message logs:
dmesg | grep carl
rfkill list all

