RT73 Wireless Usb with WPA, my experience

Post Reply
Message
Author
RazzBear
Posts: 24
Joined: Fri 30 Jun 2006, 10:01

RT73 Wireless Usb with WPA, my experience

#1 Post by RazzBear »

After much playing around i finally got my wireless Usb stick working with puppyand my router using WPA-PSK encryption.
I am using a CWD-854 which uses the RT73 chipset
on a puppy option 2 hard disk install
What i did was as follows

modprobe RT73

I then edited the file /etc/Wireless/RT73STA/rt73sta.dat
and changed the settings in there to reflect my routers ESSID,etc
(strangely enough this file didnt exist until after i did modprobe rt73)
eg
SSID=YourOwnEssid
AuthMode=WPAPSK
EncrypType=TKIP
WPAPSK=YourOwnEncryptionKey

After it was edited and saved do the following

ifconfig rausb0 up

I then run the Network Wizard and clicked on AutoDhcp
it took about 60 secs and came back and asked if i wanted to save
my settings, clicked Yes

Checked with RutilT and everything looked fine

And that was it, it was working.
Started a browser got on to this forum and thought i would pass on this info for others who may be having trouble.

Now all i need to do is work out how to automate the steps
so that i dont have to type in the modprobe and ifconfig and AutoDhcp every time.
Can anybody help me in that area?

User avatar
Shagbag
Posts: 49
Joined: Sat 26 Aug 2006, 10:56
Location: Near Battersea Bridge

#2 Post by Shagbag »

Thanks for the advice. Once I get ndiswrapper to stop complaining, I'm going to need to know how to configure Puppy for WPA-PSK. Your post seems a good start. Cheers

marksouth2000
Posts: 622
Joined: Wed 05 Apr 2006, 20:43

Re: RT73 Wireless Usb with WPA, my experience

#3 Post by marksouth2000 »

RazzBear wrote:Now all i need to do is work out how to automate the steps
so that i dont have to type in the modprobe and ifconfig and AutoDhcp every time.
Can anybody help me in that area?
Coincidentally, I also have an rt73 based stick, a D-Link DWL-G122. Because I use my wireless portable in different locations, I have a script for each location. Here's an example:

Code: Select all

modprobe rt73
sleep 5
ifconfig rausb0 up
iwconfig rausb0 essid THE_RIGHT_SSID 
if [ -e /etc/dhcpc/*.pid ]; then
   rm /etc/dhcpc/*.pid
fi
dhcpcd -t 20 rausb0
I have an icon for this script on the desktop so I just click it and wait for the link light to come on. This beats putting the commands in rc.local and having the machine fail to connect when at a different location, or when it's booted without the stick inserted.

Cheers,
Mark

RazzBear
Posts: 24
Joined: Fri 30 Jun 2006, 10:01

#4 Post by RazzBear »

Thanks Mark giving that script a try now.

tempestuous
Posts: 5464
Joined: Fri 10 Jun 2005, 05:12
Location: Australia

#5 Post by tempestuous »

Shagbag (and anyone else wanting WPA), RazzBear's information is UNIQUE to the Ralink drivers.
Ralink is the only Linux wifi driver which natively supports WPA encryption. And of these, only the rt61 and rt73 drivers will accommodate the configuration file which RazzBear used.
The rt2500 and rt2570 drivers require a series of iwpriv commands to set up WPA, explained here http://dotpups.de/dotpups/Wifi/drivers- ... README.txt

All other wifi drivers (including ndiswrapper) require the "helper" application wpa_supplicant. Get it here http://dotpups.de/dotpups/Wifi/wireless-utilities/

And read the separate README first.
Last edited by tempestuous on Wed 24 Jan 2007, 04:14, edited 1 time in total.

User avatar
rarsa
Posts: 3053
Joined: Sun 29 May 2005, 20:30
Location: Kitchener, Ontario, Canada
Contact:

Re: RT73 Wireless Usb with WPA, my experience

#6 Post by rarsa »

RazzBear wrote:Now all i need to do is work out how to automate the steps
so that i dont have to type in the modprobe and ifconfig and AutoDhcp every time.
Can anybody help me in that area?
The solution is to load the module using the network wizard. After that you will have a "save module" button that you can use to save the module to be loaded at next boot up.
[url]http://rarsa.blogspot.com[/url] Covering my eclectic thoughts
[url]http://www.kwlug.org/blog/48[/url] Covering my Linux How-to

packwood
Posts: 15
Joined: Sun 10 Jun 2007, 20:43

#7 Post by packwood »

I am trying to get an RT73 dongle to work. This post seems to be going in the right direction. Can anyone clarify what needs to be in the folder /etc/Wireless/RT73STA and the steps required to get it there.

Thanks.

masinick
Posts: 11
Joined: Thu 28 Jul 2005, 02:43
Location: Concord, NH
Contact:

#8 Post by masinick »

tempestuous wrote:Shagbag (and anyone else wanting WPA), RazzBear's information is UNIQUE to the Ralink drivers.
Ralink is the only Linux wifi driver which natively supports WPA encryption. And of these, only the rt61 and rt73 drivers will accommodate the configuration file which RazzBear used.
The rt2500 and rt2570 drivers require a series of iwpriv commands to set up WPA, explained here http://dotpups.de/dotpups/Wifi/drivers- ... README.txt

All other wifi drivers (including ndiswrapper) require the "helper" application wpa_supplicant. Get it here http://dotpups.de/dotpups/Wifi/wireless-utilities/

And read the separate README first.
I am using Puppy 3.01 and it recognizes my wireless card (ipw2200) and it can see all of the wireless access points that my router can pick up. The one remaining issue for me is the technique for feeding the wireless config setup program a key that contains letters, numbers and a symbol. Most wireless setup programs prompt for a key and if it is mixed text, it figures out correctly what to do. With the 3.01 version of the program, it is assuming a Hex string. If I do not put in S: in front of my key it complains that it is not Hex. But if I put in S: I still do not get the right result. I assume it is because I have a symbol in my key. Given that, how do I appropriately escape the key so it does the right thing? Also, will the utility eventually be improved so it can tell whether the WPA2 key is Hex, text, numbers, or symbols and just do the right thing?
Brian Masinick
masinick \at\ yahoo \dot\ com

tempestuous
Posts: 5464
Joined: Fri 10 Jun 2005, 05:12
Location: Australia

#9 Post by tempestuous »

That forum post of mine you just quoted is 15 months old.
Recent versions of Puppy now include wpa_supplicant as standard, and Puppy's Network Wizard automatically uses this utility whenever the user chooses the "WPA" or "WPA2" buttons.
I think the Network Wizard is confused by your passphrase. wpa_supplicant should automatically detect a WPA passphrase, and then convert it to hex key using the "wpa_passphrase" utility.
But if there are problems you can pre-convert your passphrase to hex key with this command -

Code: Select all

wpa_passphrase <ssid> <passphrase>
... and the resultant hex key entered into the Wizard instead of the passphrase. It's always more reliable to use the true hex key, anyway.
And don't ever use the "s" parameter with wpa_supplicant. The "s" parameter is only valid with WEP configuratons using iwconfig.

Better still, run all wifi configuration commands manually, following these instructions -
http://www.murga-linux.com/puppy/viewto ... 336#159336
Then you will know what's going on behind the Network Wizard.

Post Reply