D-Link DWA-140 USB Wireless N

Introduction
Our focus in this article will be the configuration and setup for an D-Link System DWA-140 RangeBooster N Adapter.

Device Info
Bus 001 Device 003: ID 07d1:3c0a D-Link System DWA-140 RangeBooster N Adapter(rev.B2) [Ralink RT2870]

Kernel Config
You can either build the options in the kernel or leave them as modules.

Install Firmware
You can go to the ralink site for the firmware or, emerge.

If you go to the ralink site, get "rmware RT28XX/RT30XX USB series (RT2870/RT2770/RT3572/RT3070)".

rt2870bin

Testing
wlan0    Link encap:Ethernet  HWaddr 1c:bd:b9:25:d7:ba BROADCAST MULTICAST MTU:1500  Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

usb 1-7: New USB device found, idVendor=07d1, idProduct=3c0a usb 1-7: New USB device strings: Mfr=1, Product=2, SerialNumber=3 usb 1-7: Product: 11n Adapter usb 1-7: Manufacturer: Ralink usb 1-7: SerialNumber: 1.0 usb 1-7: usb_probe_device usb 1-7: configuration #1 chosen from 1 choice usb 1-7: adding 1-7:1.0 (config #1, interface 0) rt2800usb 1-7:1.0: usb_probe_interface rt2800usb 1-7:1.0: usb_probe_interface - got id ieee80211 phy1: Selected rate control algorithm 'minstrel_ht' drivers/usb/core/inode.c: creating file '004' ADDRCONF(NETDEV_UP): wlan0: link is not ready

wlan0 Scan completed :

Connect
In this example we are going to install.

These are the packages that would be merged, in order:

Calculating dependencies... done! [ebuild N     ] dev-libs/libnl-1.1-r2  USE="-doc" 283 kB [ebuild  N     ] net-wireless/wpa_supplicant-0.7.3-r2  USE="dbus qt4 readline ssl -debug -eap-sim -fasteap -gnutls -madwifi (-ps3) -wimax -wps" 1,600 kB [ebuild  N     ] dev-python/urwid-0.9.9.1  USE="-examples" 233 kB [ebuild  N     ] net-misc/wicd-1.7.1_beta2-r4  USE="X gtk libnotify ncurses nls pm-utils (-ioctl)" 499 kB

wlan0    Link encap:Ethernet  HWaddr 1c:bd:b9:25:d7:ba inet addr:192.168.1.76 Bcast:192.168.1.255  Mask:255.255.255.0 inet6 addr: fe80::1ebd:b9ff:fe25:d7ba/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500  Metric:1 RX packets:58 errors:0 dropped:0 overruns:0 frame:0 TX packets:17 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:12206 (11.9 KiB) TX bytes:2210 (2.1 KiB)

PING www-bytemark-v4v6.gentoo.org (89.16.167.134) 56(84) bytes of data. 64 bytes from www.gentoo.org (89.16.167.134): icmp_req=1 ttl=44 time=204 ms 64 bytes from www.gentoo.org (89.16.167.134): icmp_req=2 ttl=44 time=134 ms 64 bytes from www.gentoo.org (89.16.167.134): icmp_req=3 ttl=44 time=227 ms

--- www-bytemark-v4v6.gentoo.org ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2333ms rtt min/avg/max/mdev = 134.755/188.833/227.230/39.350 ms