WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Wifi with D-Link DWL-G122 and WPA2  (Read 7984 times)

Offline odd

  • WikiUser
  • *
  • Posts: 4
Wifi with D-Link DWL-G122 and WPA2
« on: April 22, 2009, 01:41:19 PM »
This is what I did to get wifi running with a D-Link DWL-G122 USB Wireless Adapter and WPA2.
All commands were given as root.

Download the driver package from ralink to get the rt73.bin firmware:
Go to newbielink:http://www.ralink.com.tw/Home/Support/Linux.html [nonactive] and click on RT2501USB(RT73:RT2571W/RT2573/RT2671) to get 2009_0206_RT73_Linux_STA_Drv1.1.0.2.tar.bz2

Check that the package contains the firmware, extract it and move it to the correct directory:

Code: newbielink:javascript:void(0); [nonactive]
tar tjf 2009_0206_RT73_Linux_STA_Drv1.1.0.2.tar.bz2 |grep rt73.bin
tar xjf 2009_0206_RT73_Linux_STA_Drv1.1.0.2.tar.bz2 2009_0206_RT73_Linux_STA_Drv1.1.0.2/Module/rt73.bin
mkdir /lib/firmware
mv 2009_0206_RT73_Linux_STA_Drv1.1.0.2/Module/rt73.bin /lib/firmware/

Add lib/firmware to /opt/.filetool.lst.

Install wireless_tools.tcz.
Install wpa_supplicant.tce (I couldn't use the .tcz-version since it gave me a segmentation fault).

Create /etc/wpa_supplicant.conf with this contents:

Code: newbielink:javascript:void(0); [nonactive]
# allow frontend (e.g., wpa_cli) to be used by all users in root group
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=root
#
# home network; allow all valid ciphers
network={
    ssid="myssid"
    scan_ssid=1
    key_mgmt=WPA-PSK
    psk="mypsk"
}

Add etc/wpa_supplicant.conf to /opt.filetool.lst

Add the following to /opt/bootlocal.sh:

Code: newbielink:javascript:void(0); [nonactive]
/usr/local/sbin/wpa_supplicant -Bdd -D wext -i wlan0 -c /etc/wpa_supplicant.conf
udhcpc -b -i wlan0



Offline tobiaus

  • Suspended
  • Hero Member
  • *****
  • Posts: 599
Re: Wifi with D-Link DWL-G122 and WPA2
« Reply #1 on: April 23, 2009, 07:50:45 AM »
Install wpa_supplicant.tce (I couldn't use the .tcz-version since it gave me a segmentation fault).

it always did that to me, too. i finally used the tce, like you did.

Offline mosquito

  • WikiUser
  • *
  • Posts: 4
Re: Wifi with D-Link DWL-G122 and WPA2
« Reply #2 on: April 25, 2009, 02:54:32 PM »
Could you tell me what hardware version your G122 is - it's written on the back of the device above the barcode.  I have version B1 and C1 both operating on TC with ndiswrapper and WEP.  I couldn't get WPA running last time I tried and am keen to try again...
Cheers
Andrew

Offline odd

  • WikiUser
  • *
  • Posts: 4
Re: Wifi with D-Link DWL-G122 and WPA2
« Reply #3 on: April 27, 2009, 11:12:53 AM »
It's version C1.