rt2x00.serialmonkey.com

Support forum for the rt2x00 project
It is currently Fri Sep 10, 2010 6:54 am

All times are UTC




Post new topic Reply to topic  [ 14 posts ] 
Author Message
 Post subject: rt61 ad-hoc
PostPosted: Fri Apr 18, 2008 5:30 pm 
Offline

Joined: Sun Mar 04, 2007 3:19 pm
Posts: 15
Hi,
I'm using linux 2.6.24 is it possible to use ad-hoc modus with the rt61 driver?

Thanks for answers ;)

P.S. : If it is support i'll post my error messages (currently no network to test)


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 18, 2008 8:07 pm 
Offline
Site Admin

Joined: Sun Jun 05, 2005 1:01 pm
Posts: 5880
Location: Haarlem, The Netherlands
Not with the in-kernel version, you need the legacy drivers (or use the wireless-compat package from linux-wireless.org which contains an updated rt2x00 version).

_________________
Regards,
Ivo van Doorn
Project Administrator
http://rt2x00.serialmonkey.com


Top
 Profile  
 
 Post subject:
PostPosted: Sat Apr 19, 2008 6:15 pm 
Offline

Joined: Sun Mar 04, 2007 3:19 pm
Posts: 15
hmm... will it be fixed with the 2.6.25 kernel?


Top
 Profile  
 
 Post subject:
PostPosted: Sat Apr 19, 2008 6:18 pm 
Offline
Site Admin

Joined: Sun Jun 05, 2005 1:01 pm
Posts: 5880
Location: Haarlem, The Netherlands
no, it has been enabled for 2.6.26 but I lack any form of test reports about it at this time.

_________________
Regards,
Ivo van Doorn
Project Administrator
http://rt2x00.serialmonkey.com


Top
 Profile  
 
 Post subject:
PostPosted: Sat Apr 19, 2008 9:20 pm 
Offline

Joined: Sat Apr 19, 2008 9:19 pm
Posts: 3
I am having the same problem. I just downloaded and compiled wireless-compat but I still can't get ad-hoc:

Code:
sudo iwconfig wlan0 mode ad-hoc
Error for wireless request "Set Mode" (8B06) :
    SET failed on device wlan0 ; Device or resource busy.


This is with a WMP54G card. What did I get wrong?


Top
 Profile  
 
 Post subject:
PostPosted: Sat Apr 19, 2008 9:46 pm 
Offline
Site Admin

Joined: Sun Jun 05, 2005 1:01 pm
Posts: 5880
Location: Haarlem, The Netherlands
Make sure the interface is down when changing mode.

_________________
Regards,
Ivo van Doorn
Project Administrator
http://rt2x00.serialmonkey.com


Top
 Profile  
 
 Post subject:
PostPosted: Sun Apr 20, 2008 12:26 pm 
Offline

Joined: Sat Apr 19, 2008 9:19 pm
Posts: 3
Thanks, that works... however, after I bring the interface up again, the system absolutely locks-up a couple of seconds later. I've tried 4 times thus far and it's happening reliably.

I am using the ubuntu Hardy RC, so I'm not sure if it's a problem with the driver or some component of Hardy. I don't see anything interesting in /var/log/messages. Any tips on further diagnostic?


Top
 Profile  
 
 Post subject:
PostPosted: Sun Apr 20, 2008 8:32 pm 
Offline

Joined: Wed May 17, 2006 10:03 pm
Posts: 262
Are you able to work at a text console rather than a GUI (i.e ctrl-alt-f1) just before it locks up, if so do you see a panic message with a call trace? If so it would be helpful to see the content of that trace. If you can set it up a serial capture on another PC is ideal but if not a photo of the screen is often enough to capture some useful info.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Apr 20, 2008 9:20 pm 
Offline

Joined: Sat Apr 19, 2008 9:19 pm
Posts: 3
No luck. Tried without even starting the X server - it still freezes completely right after bringing wlan0 up. No messages or even beeps.

I guess I should note that I am running the 64-bit version of Hardy - could that be the culprit?


Top
 Profile  
 
 Post subject: Re: rt61 ad-hoc
PostPosted: Mon Apr 21, 2008 7:53 am 
Offline

Joined: Sun Jun 26, 2005 9:22 am
Posts: 76
Location: Sydney, Australia
JoyFM wrote:
Hi,
I'm using linux 2.6.24 is it possible to use ad-hoc modus with the rt61 driver?


Hi I have had reasonable success with the compat wireless driver set under 2.6.24:

http://linuxwireless.org/en/users/Drivers

http://linuxwireless.org/download/compat-wireless-2.6/

just download the latest daily tarball in the download area and read the instructions , although they are external to the kernel and beta drivers, they do install and uninstall in my gentoo kernel very easy.
The daily driver in my case was dated 20-04-2008 , this is currently working in adhoc as shown below.

not sure about wpa supplicant but they may be worth a try.

I have a few machines around with wifi and 2 have rt61 cards
One machine is running a 2.6.23 kernel with ralinks own 1.1.1.0 linux drivers, the other is configured as above as I cannot get the ralink drivers to compile on 2.6.24

Some test results from the
Code:
rt61pci                24192  0
crc_itu_t               2176  1 rt61pci
rt2x00pci              10368  1 rt61pci
rt2x00lib              24960  2 rt61pci,rt2x00pci
firmware_class          9728  2 snd_emu10k1,rt2x00lib
rfkill                  7056  1 rt2x00lib
input_polldev           5000  1 rt2x00lib
mac80211              162716  2 rt2x00pci,rt2x00lib
cfg80211               28896  2 rt2x00lib,mac80211
eeprom_93cx6            2560  1 rt61pci
machine:


Code:
wlan0: No active IBSS STAs - trying to scan for other IBSS networks with same SSID (merge)
wlan0: No active IBSS STAs - trying to scan for other IBSS networks with same SSID (merge)
wlan0: No active IBSS STAs - trying to scan for other IBSS networks with same SSID (merge)
wlan0: No active IBSS STAs - trying to scan for other IBSS networks with same SSID (merge)
wlan0: Selected IBSS BSSID e2:0a:e5:3f:d5:8b based on configured SSID
wlan0: Configured IBSS beacon template
wlan0: Selected IBSS BSSID e2:0a:e5:3f:d5:8b based on configured SSID
wlan0: Configured IBSS beacon template
wlan0: no IPv6 routers present
phy0: Adding new IBSS station 00:14:85:de:d3:31 (dev=wlan0)
wlan0: Selected IBSS BSSID e2:0a:e5:3f:d5:8b based on configured SSID
wlan0: Configured IBSS beacon template
phy0: Adding new IBSS station 00:14:85:de:d3:31 (dev=wlan0)
wlan0: no IPv6 routers present


This driver setup seems to take a while to join the cell but once it does so seems ok speed and stability wise.

Code:
lo        no wireless extensions.

eth1      no wireless extensions.

wmaster0  no wireless extensions.

wlan0     IEEE 802.11  ESSID:"WLAN"
          Mode:Ad-Hoc  Frequency:2.412 GHz  Cell: E2:0A:E5:3F:D5:8B
          Tx-Power=4 dBm
          Retry min limit:7   RTS thr:off   Fragment thr=2352 B
          Encryption key:yeah-sure-like-i-am-telling-you-;-)
          Link Quality:0  Signal level:0  Noise level:0
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

eth0      no wireless extensions.

ppp0      no wireless extensions.


Code:
iperf -s
------------------------------------------------------------
Server listening on TCP port 5001
TCP window size: 85.3 KByte (default)
------------------------------------------------------------
[  4] local 192.168.0.1 port 5001 connected with 192.168.0.2 port 58748
[  4]  0.0-10.2 sec  24.5 MBytes  20.2 Mbits/sec
[  6] local 192.168.0.1 port 5001 connected with 192.168.0.2 port 58749
[  6]  0.0-10.1 sec  25.4 MBytes  21.0 Mbits/sec
[  4] local 192.168.0.1 port 5001 connected with 192.168.0.2 port 58750
[  4]  0.0-10.2 sec  26.2 MBytes  21.7 Mbits/sec


Code:
iperf -c 192.168.0.2
------------------------------------------------------------
Client connecting to 192.168.0.2, TCP port 5001
TCP window size: 16.0 KByte (default)
------------------------------------------------------------
[  3] local 192.168.0.1 port 60089 connected with 192.168.0.2 port 5001
[  3]  0.0-10.1 sec  20.1 MBytes  16.7 Mbits/sec
rufnut rufnut # iperf -c 192.168.0.2
------------------------------------------------------------
Client connecting to 192.168.0.2, TCP port 5001
TCP window size: 16.0 KByte (default)
------------------------------------------------------------
[  3] local 192.168.0.1 port 60090 connected with 192.168.0.2 port 5001
[  3]  0.0-10.0 sec  20.1 MBytes  16.8 Mbits/sec


I guess the main reason for one side being faster than the other is that in the ralink driver (the other machine) I have the turbo function on.

Most important of all for some, from /etc/conf.d/net (maybe different on yr distro) :

Code:
channel_wlan0="1"
mode_wlan0="Ad-Hoc"
essid_wlan0="WLAN"
key_WLAN="yeah-sure-like-i-am-telling-you-;-) enc open"
config_wlan0=( "192.168.0.1 netmask 255.255.255.0" )
iwconfig_wlan0="txpower on"


A lot of good people have battled to bring this result, thanks guys


regards Brett
:-)


Top
 Profile  
 
 Post subject: Re:
PostPosted: Mon May 05, 2008 9:09 pm 
Offline

Joined: Sat Mar 01, 2008 4:44 pm
Posts: 5
IvD wrote:
Not with the in-kernel version, you need the legacy drivers (or use the wireless-compat package from linux-wireless.org which contains an updated rt2x00 version).


I can confirm limited success with the latest git kernel source. I checked out that and built it

Code:
  root@erf:~
  # uname -r
  2.6.25-rc9.erf-wl

It manages to put the card into ad-hoc mode just fine:

Code:
  root@erf:~
  # iwconfig wireless
  wireless  IEEE 802.11  ESSID:"leoair" 
          Mode:Ad-Hoc  Frequency:2.432 GHz  Cell: D2:79:9A:3F:0C:99   
          Tx-Power=2 dBm   
          Retry min limit:7   RTS thr:off   Fragment thr=2352 B   
          Encryption key:off
          Link Quality:0  Signal level:0  Noise level:0
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

It doesn't appear in its own scan list - I'm not sure if that's expected or not? I noticed the first time I switched it into ad-hoc mode it did appear for a short while, then went again. Random artefact? Not sure...

It does however, appear in scan lists on other machines and I did, for a while, manage to establish a connection with it. It kept dropping out every few minutes, before finally giving up all together about 20 minutes after first setting it up. Not sure if to blame the RT61 or the client end yet though.

Still, a sign that it does have hope of working, anyway...


Top
 Profile  
 
 Post subject: Re: rt61 ad-hoc
PostPosted: Tue May 27, 2008 11:21 am 
Offline

Joined: Sun Jan 13, 2008 3:35 pm
Posts: 9
Using compat-wireless-2008-05-26 my cards can be configured to the ad-hoc mode but no connection can be established. They seem to be jumping around channels which sometimes can be fixed by setting the channel via iwconfig again and they change cell ids frequently because no active IBSS stations could be found. The last behavior is strange, because a simple iwlist scan reveals the other station is in range.

I hope this will be fixed soon because the txpower setting on it's own makes the switch to rt2x00 appealing.


Top
 Profile  
 
 Post subject: Re: rt61 ad-hoc
PostPosted: Tue Jul 01, 2008 7:45 pm 
Offline

Joined: Sun Mar 04, 2007 3:19 pm
Posts: 15
Does anybody know anything about the current status of adhoc in linux 2.6.26?


Top
 Profile  
 
 Post subject: Re: rt61 ad-hoc
PostPosted: Sun Jul 13, 2008 7:19 pm 
Offline

Joined: Sun Mar 04, 2007 3:19 pm
Posts: 15
Hi,
I compiled the compat wireless backports and Ad-hoc works perfectly with 2.6.25 linux :)

thank you very much!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 14 posts ] 

All times are UTC


Who is online

Users browsing this forum: Ask Jeeves [Bot], Google [Bot] 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:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group