rt2x00.serialmonkey.com

Support forum for the rt2x00 project
It is currently Sat May 18, 2013 9:55 pm

All times are UTC


Forum rules


Important: Read Project restructuring announcement regarding the pending removal of the legacy drivers from this project.



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 74 posts ]  Go to page 1, 2, 3, 4, 5  Next
Author Message
PostPosted: Thu Aug 25, 2005 8:33 pm 
Offline

Joined: Thu Aug 25, 2005 8:13 pm
Posts: 64
Hello RT2500-Users,

I've installed driver version "rt2500-1.1.0-b3" and have problems to get WPA working. This is what I tried to do after loading the module:

Code:
ifconfig ra0 up
iwconfig ra0 mode managed
iwpriv ra0 set AuthMode=WPAPSK
iwpriv ra0 set EncrypType=TKIP
iwpriv ra0 set WPAPSK="MyPassword"
iwconfig ra0 essid "MyModemsESSID"
dhclient ra0


Networking seems to be established, but I cannot reach the Internet or the Web-Interface of my modem.

WEP works fine for me:

Code:
iwconfig ra0 key xxxx-xxxx-xxxx-xxxx-xxxx-xxxx-xx enc open essid "MyModemsESSID"
dhclient ra0


Did I forget something? Could this be a bug? How could I help you to fix this problem? (I unfortunately have no skills in coding)


Max


Top
 Profile  
 
 Post subject:
PostPosted: Thu Aug 25, 2005 8:52 pm 
Offline

Joined: Tue Jun 21, 2005 7:27 pm
Posts: 41
There is a known problem with WPA keys not apparently being excahnged properly the first time the interface is ifup'd. Try doing an ifdown after the first ifup and then ifup again.

If that doesn't work there are a group of us generating debugging on this issue at present, so it may be fixed soon.

Some results of iwconfig, ifconfig, iwlist <iface> scan would be useful.

Can you give more details of distie and kernel etc just to be sure.

_________________
--

Brian


Top
 Profile  
 
 Post subject:
PostPosted: Thu Aug 25, 2005 9:10 pm 
Offline

Joined: Thu Aug 25, 2005 8:13 pm
Posts: 64
erase me - wrong post!


Last edited by MadMax on Thu Aug 25, 2005 9:14 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject:
PostPosted: Thu Aug 25, 2005 9:12 pm 
Offline

Joined: Thu Aug 25, 2005 8:13 pm
Posts: 64
Quote:
Try doing an ifdown after the first ifup and then ifup again.


You mean:
Code:
ifconfig ra0 up
ifconfig ra0 down
ifconfig ra0 up
iwconfig ra0 mode managed
iwpriv ra0 set AuthMode=WPAPSK
iwpriv ra0 set EncrypType=TKIP
iwpriv ra0 set WPAPSK="MyPassword"
iwconfig ra0 essid "MyModemsESSID"
dhclient ra0

?????????????????????????????????????????????

Quote:
Can you give more details of distie and kernel etc just to be sure


Mandriva LE2005 with Kernel 2.6.11

Quote:
Some results of iwconfig, ifconfig, iwlist <iface> scan would be useful.


O.k., but now I'm running with WEP, it takes some time but it's time to go to bed for me :-), I will do that tomorrow...


Max


Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 26, 2005 3:13 pm 
Offline

Joined: Thu Aug 25, 2005 8:13 pm
Posts: 64
Quote:
Try doing an ifdown after the first ifup and then ifup again.


Bad luck for me - this trick didn't work for me :-(

Quote:
Some results of iwconfig, ifconfig, iwlist <iface> scan would be useful.


The results after doing:
Code:
ifconfig ra0 up
iwconfig ra0 mode managed
iwpriv ra0 set AuthMode=WPAPSK
iwpriv ra0 set EncrypType=TKIP
iwpriv ra0 set WPAPSK="MyPassword"
iwconfig ra0 essid "MyModemsESSID"


are as follows:

Code:
result of "iwconfig ra0":
---------------------------
ra0       RT2500 Wireless  ESSID:"MyModemsESSID"
          Mode:Managed  Frequency=2.437 GHz  Access Point: 00:04:0E:43:8C:62
          Bit Rate:54 Mb/s
          RTS thr:off   Fragment thr:off
          Encryption key:0000-0000-00
          Link Quality=40/100  Signal level=-36 dBm  Noise level:-207 dBm
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

result of "iwlist ra0 scan":
------------------------------
ra0       Scan completed :
          Cell 01 - Address: 00:04:0E:43:8C:62
                    Mode:Managed
                    ESSID:"MyModemsESSID"
                    Encryption key:on
                    Channel:6
                    Quality:60/100  Signal level:-102 dBm  Noise level:-207 dBm

result of "ifconfig ra0":
---------------------------
ra0       Protokoll:Ethernet  Hardware Adresse 00:0E:2E:57:85:27
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1645 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3845 errors:10 dropped:10 overruns:0 carrier:0
          Kollisionen:883 Sendewarteschlangenlänge:1000
          RX bytes:1544583 (1.4 Mb)  TX bytes:350348 (342.1 Kb)
          Interrupt:17 Basisadresse:0x8000


After doing "dhclient ra0" it looks like this:
Code:
result of "iwconfig ra0":
---------------------------
ra0       RT2500 Wireless  ESSID:"MyModemsESSID"
          Mode:Managed  Frequency=2.412 GHz  Bit Rate:54 Mb/s
          RTS thr:off   Fragment thr:off
          Encryption key:0000-0000-00
          Link Quality=61/100  Signal level=-35 dBm  Noise level:-207 dBm
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

result of "iwlist ra0 scan":
------------------------------
ra0       Scan completed :
          Cell 01 - Address: 00:04:0E:43:8C:62
                    Mode:Managed
                    ESSID:"MyModemsESSID
                    Encryption key:on
                    Channel:6
                    Quality:61/100  Signal level:-102 dBm  Noise level:-207 dBm
    
result of "ifconfig ra0":
---------------------------
ra0       Protokoll:Ethernet  Hardware Adresse 00:0E:2E:57:85:27
          inet Adresse:192.168.178.20  Bcast:192.168.178.255  Maske:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1694 errors:0 dropped:0 overruns:0 frame:0
          TX packets:5327 errors:20 dropped:20 overruns:0 carrier:0
          Kollisionen:1032 Sendewarteschlangenlänge:1000
          RX bytes:1568417 (1.4 Mb)  TX bytes:435465 (425.2 Kb)
          Interrupt:17 Basisadresse:0x8000


Any suggestions? Or do I have to waint until a new driver will be released?


Max


Top
 Profile  
 
 Post subject:
PostPosted: Sun Aug 28, 2005 6:14 am 
Offline
Site Admin
User avatar

Joined: Sun Jun 05, 2005 12:17 pm
Posts: 2730
Location: Newcastle, NSW, Australia
Do this.

iwconfig ra0 mode managed
iwpriv ra0 set AuthMode=WPAPSK
iwpriv ra0 set EncrypType=TKIP
iwconfig ra0 essid "MyModemsESSID"
iwpriv ra0 set WPAPSK="MyPassword"
ifconfig ra0 up
sleep 5
dhclient ra0

_________________
--------------------
Regards,
Mark Wallis
Project Administrator
http://rt2x00.serialmonkey.com


Top
 Profile  
 
 Post subject:
PostPosted: Mon Aug 29, 2005 6:24 pm 
Offline

Joined: Thu Aug 25, 2005 8:13 pm
Posts: 64
No luck with this either.

I typed in the commands in exact your proposed new order + "sleep 5" - same result :-(


Top
 Profile  
 
 Post subject:
PostPosted: Mon Aug 29, 2005 10:26 pm 
Offline
Site Admin
User avatar

Joined: Sun Jun 05, 2005 12:17 pm
Posts: 2730
Location: Newcastle, NSW, Australia
Please provide a debug trace of running the commands above.

_________________
--------------------
Regards,
Mark Wallis
Project Administrator
http://rt2x00.serialmonkey.com


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 30, 2005 6:09 pm 
Offline

Joined: Thu Aug 25, 2005 8:13 pm
Posts: 64
Quote:
Please provide a debug trace of running the commands above.


You mean building a new module with
Code:
make debug

and loading it with
Code:
modprobe rt2500 debug=1
???

Or is there something else I have to do to enable debugging with ALL the commands?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 30, 2005 10:48 pm 
Offline
Site Admin
User avatar

Joined: Sun Jun 05, 2005 12:17 pm
Posts: 2730
Location: Newcastle, NSW, Australia
As per the Module\TESTING file (what you have above is correct)

_________________
--------------------
Regards,
Mark Wallis
Project Administrator
http://rt2x00.serialmonkey.com


Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 01, 2005 6:37 pm 
Offline

Joined: Thu Aug 25, 2005 8:13 pm
Posts: 64
Hi there,

this is what I did:
loading the module with
Code:
modprobe rt2500 debug=1


Then I ran following commands in a script:

Code:
iwconfig ra0 mode managed
iwpriv ra0 set AuthMode=WPAPSK
iwpriv ra0 set EncrypType=TKIP
iwconfig ra0 essid "Max-Box SL WLAN"
iwpriv ra0 set WPAPSK="DuKummstDaNedNei"
ifconfig ra0 up
sleep 5
dhclient ra0


The last thing I did was:
Code:
grep "kernel: rt2500" /var/log/messages > RaLink_debug.txt


The attached file is the result, 1,4MB size!!!!!!!
Is this normal when debug-mode on?

Max


Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 01, 2005 11:33 pm 
Offline
Site Admin
User avatar

Joined: Sun Jun 05, 2005 12:17 pm
Posts: 2730
Location: Newcastle, NSW, Australia
Quite, which is why most people gzip them before posting, and why it takes awhile to analyse them. I'll have a read now.

_________________
--------------------
Regards,
Mark Wallis
Project Administrator
http://rt2x00.serialmonkey.com


Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 01, 2005 11:43 pm 
Offline
Site Admin
User avatar

Joined: Sun Jun 05, 2005 12:17 pm
Posts: 2730
Location: Newcastle, NSW, Australia
Okay, somehow, the interface is up before you set all that. You can see at line 16480 is where you set the ESSID - the driver has been up for at least 30 seconds before that. Something autoupping it on your behalf ?

But, you do successful associate and auth at 17120. We recieve the first WPA EAP handshake at 17154 and the third at 17212.

From there on I can't spot any problems (though I don't have my working debug sample handy). I'd start by working out what is upping that interface on you.

OR

Rerun the test and provide me another debug where the first thing you do after modprobe is 'ifconfig ra0 down'

_________________
--------------------
Regards,
Mark Wallis
Project Administrator
http://rt2x00.serialmonkey.com


Top
 Profile  
 
 Post subject:
PostPosted: Fri Sep 02, 2005 7:12 am 
Offline

Joined: Thu Aug 25, 2005 8:13 pm
Posts: 64
What I did to bring the network down was:
Code:
service network stop


This hopefully should do the same thing, doesn't it? Or do I have to bring it down every time AFTER I am modprobing? Isn't the network already down then?

Quote:
the driver has been up for at least 30 seconds before that. Something autoupping it on your behalf ?


I was modprobing manually, and after that (perhaps 30sec???) I ran the script. Maybe it has something to do with this?
I don't think that something is done automaticly beside booting.

Quote:
Rerun the test and provide me another debug where the first thing you do after modprobe is 'ifconfig ra0 down'


Well, weekend is near and perhaps I provide you with a new debug-info if necessary.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Sep 03, 2005 11:38 am 
Offline

Joined: Thu Aug 25, 2005 8:13 pm
Posts: 64
Hello all,

back again with a new debug-message - now I've added the line "ifconfig ra0 down" to my script and it looks like this:
Code:
ifconfig ra0 down
iwconfig ra0 mode managed
iwpriv ra0 set AuthMode=WPAPSK
iwpriv ra0 set EncrypType=TKIP
iwconfig ra0 essid "Max-Box SL WLAN"
iwpriv ra0 set WPAPSK="DuKummstDaNedNei"
ifconfig ra0 up
sleep 5
dhclient ra0


Gosh - the debug-text is now 3,6MB!!!!! But now I made a .gz-file.

Happy bug-finding - I wouln't find anything in all the lines...



Max


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 74 posts ]  Go to page 1, 2, 3, 4, 5  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group