Today everything is wireless (recently I was also in trouble getting a consumer ethernet HUB – I can easily found only access point…). So, to fill the gap 🙂 a quite inexpensive USB key can put a little of “wireless” into our “old” computers.
The D-Link DWL G122 is a compact USB key, cheap and 802.11b/g compliant. BUT, also with the last 2.6 kernel (tested with PCLinuxOS and Ubuntu) is not recognized. You can try using ndiswrapper but I have found a better solution: native drivers under Linux (easy to get working, too!). I’m writing this simple how-to because I have found many docs about installing this dongle under Linux, but many proposed solutions are just not working (at least with my dongle).
So, before following these instructions, make sure to have my same USB key. I own a D-Link DWL G122 H/W Ver C1 F/W Ver 3.00. To make the check you can also plug the key into your Linux system, then run from a terminal:
# lsusb | grep Link Bus 005 Device 003: ID 07d1:3c03 D-Link System
The same key will have the same ID (07d1:3c03). If you have the same dongle, remove it from the USB port, then go to the drivers site. Download the rt73 branch (I have used the CVS package).
From a terminal, with the root user:
# wget http://rt2x00.serialmonkey.com/rt73-cvs-daily.tar.gz # tar zxvf rt73-cvs-daily.tar.gz # cd rt73-cvs-*/Module # make # make install
Now, if no errors, you can try to plug your USB key into the computer. If you run this command, you should see somthing like this:
# dmesg | tail -n5 usb 5-2: new high speed USB device using ehci_hcd and address 3 usb 5-2: configuration #1 chosen from 1 choice rtusb init ====> idVendor = 0x7d1, idProduct = 0x3c03 usbcore: registered new driver rt73
Also with iwconfig, you should see the interface rausb0:
# iwconfig ... rausb0 RT73 WLAN Link Quality:0 Signal level:0 Noise level:113 Rx invalid nwid:0 invalid crypt:0 invalid misc:0 ...
At this point, you can try the dongle functionality: bring up the interface and scan for available networks:
# ifconfig rausb0 up # iwlist rausb0 scanning rausb0 Scan completed : Cell 01 - Address: 00:00:00:00:00:AA ESSID:"******" Mode:Managed Channel:1 Encryption key:off Bit Rates:1 Mb/s Cell 02 - Address: 00:00:00:00:AA:00 ESSID:"********" Mode:Managed Channel:6 Encryption key:on Bit Rates:148 Mb/s
If you can see something like this, your dongle USB is working fine and you can easily use your preferred GUI to join your wireless network.Ciao!