Ubuntu Gutsy, RT61 and WPA-Access

Live forum: http://rt2x00.serialmonkey.com/viewtopic.php?t=4358

Raubsau

13-10-2007 22:02:32

Hi there,

is there anybody who managed to connect to a WPA-TKIP encrypted W-LAN with an RT61?

I've got a D-Link DWL-G51 Rev C2.

Greets so far,
Raubsau

(Bin auch im ubuntuusers.de-Forum unterwegs, dort gibt es einen Kollegen, der es geschafft hat, ich habe alles haargenau wie er gemacht . funzt trotzdem nicht.)

willy78

14-10-2007 11:37:15

networkmanager with rt61pci kernel module

Raubsau

14-10-2007 19:43:22

Compiled yourself?

hennichodernich

15-10-2007 06:58:21

Compiled yourself?[/quote1nqg1srd]

What were your problems compiling? If you want help, please give all the necessary information here and don't point to some other forum.

regards
Henning

Raubsau

15-10-2007 10:30:03

Sorry about the other forum, it was meant just for the case someone German speaking was interested.

I compiled lots of CVS releases, all went smooth, also scanning works, but I can't connect, iwpriv always says that "set is an invalid command".

Please tell me what information you need so I can post them.

Thx in advance,
Raubsau

hennichodernich

15-10-2007 17:38:28

I compiled lots of CVS releases, all went smooth, also scanning works, but I can't connect, iwpriv always says that "set is an invalid command".

Please tell me what information you need so I can post them.
[/quotenqg9t14m]

Did you blacklist the driver shipped with Ubuntu to make sure it's exactly the driver you compiled that you're dealing with?
Is rt61 actually loaded? ("lsmod")
What does iwconfig show?
Did you bring up the interface before issuing the iwpriv commands? ("ifconfig wlan0 up")
Did you stick exactly to the instructions?
What is the error message exactly?

regards
Henning

Raubsau

15-10-2007 20:30:07

What module do I have to blacklist!? shock

I'll do another compile and provide the information needed.

edit
How do I log the messages which show up when booting?
I just saw a line with some "wifi" in it but could not read that fast. Maybe there's some error?

Yes, I sticked to the instructions, I brought up the interface (in /etc/network/interfaces with pre-up, I guess?).

[code3o80rbbe]iface wlan0 inet static
address 192.168.1.140
netmask 255.255.255.0
broadcast 192.168.1.255
gateway 192.168.1.1
pre-up ifconfig wlan0 up
pre-up iwconfig wlan0 essid linksys
pre-up iwconfig wlan0 mode Managed
pre-up iwpriv wlan0 set Channel=5
pre-up iwpriv wlan0 set AuthMode=WPAPSK
pre-up iwpriv wlan0 set EncrypType=TKIP
pre-up iwpriv wlan0 set WPAPSK=dein passwort
pre-up iwpriv wlan0 set TxRate=0
auto wlan0[/code3o80rbbe]
(This is a interfaces I got from a user whose rt61 works, and edited for my LAN, of course with the right IPs, password, channel etc. after compiling and modprobing.)
I tried everything I can imagine, I think I have ~10 re-installs and somewhat 30 Live boots. I don't want to buy a new card (

wilecoyote

15-10-2007 21:39:20

you can use your card with ndiswrapper which is more stable....
Add rt61 to your /etc/modules.d/blacklist
--> reboot
then see in your Windows drivers folder and copy rt61.sys and rt61.inf to your disk then input the following commands


ndiswrapper -i rt61.inf
ndiswrapper -m
modprobe ndiswrapper

Configure your card ifconfig; iwconfig etc....

wile coyote

hennichodernich

16-10-2007 06:48:16

What module do I have to blacklist!?[/quoteqpl3bscd]

rt61pci, the rt2x00 driver which is shipped with Ubuntu. That driver will collide with rt61.


How do I log the messages which show up when booting?
[/quoteqpl3bscd]

They are logged in /var/log/messages, calling "dmesg" will show the kernel messages.


Yes, I sticked to the instructions, I brought up the interface (in /etc/network/interfaces with pre-up, I guess?).

[codeqpl3bscd]iface wlan0 inet static
address 192.168.1.140
netmask 255.255.255.0
broadcast 192.168.1.255
gateway 192.168.1.1
pre-up ifconfig wlan0 up
pre-up iwconfig wlan0 essid linksys
pre-up iwconfig wlan0 mode Managed
pre-up iwpriv wlan0 set Channel=5
pre-up iwpriv wlan0 set AuthMode=WPAPSK
pre-up iwpriv wlan0 set EncrypType=TKIP
pre-up iwpriv wlan0 set WPAPSK=dein passwort
pre-up iwpriv wlan0 set TxRate=0
auto wlan0[/codeqpl3bscd]
[/quoteqpl3bscd]

Please try to get WiFi running _by hand_ before you try the automatisms.

Run the commands
[codeqpl3bscd]
ifconfig wlan0 up
iwconfig wlan0 essid linksys
iwconfig wlan0 mode Managed
iwpriv wlan0 set Channel=5
iwpriv wlan0 set AuthMode=WPAPSK
iwpriv wlan0 set EncrypType=TKIP
iwpriv wlan0 set WPAPSK=dein passwort
iwpriv wlan0 set TxRate=0
[/codeqpl3bscd]

by hand, one after another to see which one is failing. But first of all have a look which kernel module is loaded!

I tried everything I can imagine, I think I have ~10 re-installs and somewhat 30 Live boots.[/quoteqpl3bscd]

Re-installing is for windows suckers, you won't even have to _reboot_ your linux box (unless the kernel has crashed quite badly).
First, try to get WiFi running by hand. Then you can try to get the boot-time config working, but you won't need to reboot for that, [codeqpl3bscd]/etc/init.d/networking restart[/codeqpl3bscd] is sufficient.

regards
Henning

Raubsau

17-10-2007 21:55:22

I *am* a "Windows sucker" )

Raubsau

18-10-2007 11:54:35

Alright, now it runs, but quite slow compared to sucking Windows wink

Blacklisting the rt61pci was the solution, I will now install Gutsy.

Thx alot for your help.

Greets,
Raubsau