how to force rt73 work with 11g rate?

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

salvage

28-07-2008 08:08:59

Hi,
Everyone. I am using DWL G122 wireless cards using rt73-cvs-2008061003. Could anyone tell me how to make these cards work with a rate of 54Mps? I tried several times, but it seems that once I did ping *.*.*.*, the rate would be back to 11Mbps. Is that because the default rate is 11Mbps? Anyone have any ideas? Thank you very much!

ps I chose ad-hoc mode.

IvD

28-07-2008 09:17:46

Please read the iwpriv_usage.txt file which came with the driver.

Also searching this forum will return all topics concerning this issue and the mentioning of Adhoc and OFDM rates...

salvage

29-07-2008 07:32:23

I think its sth about the software driver. I did a little change in the code and now it can work in ad-hoc mode with a rate as high as 54Mbps. D

IvD

29-07-2008 07:54:02

Well if hacking the code is easier for you then doing a 'iwpriv' command....

salvage

29-07-2008 13:56:37

I found that if I chose ad-hoc mode, the default phy mode would be 11b, not 11b/g mixed.
So I just changed the default value from 11b to 11b/g.

IvD

29-07-2008 13:59:03

I have already told you where to find the explanation why this restriction exists and how you can bypass it without hacking the code.
So my comment

[quote54s0fjh5]Well if hacking the code is easier for you then doing a 'iwpriv' command....[/quote54s0fjh5]

still applies

salvage

29-07-2008 14:05:50

Wait......

salvage

29-07-2008 15:03:20

I show what I did just now
rpm -e NetworkManager-gnome-0.6.4-5.fc6.i386
rpm -e NetworkManager-0.6.4-5.fc6.i386
rpm -e wpa_supplicant-0.4.8-10.1.fc6.i386
[root@localhost wpa_supplicant-0.5.10]# patch -p1 < wpa_supplicant-ralink_rt73.patch
[root@localhost wpa_supplicant-0.5.10]# patch -p1 < wpa_supplicant-ralink_rt73-fix.patch
[root@localhost wpa_supplicant-0.5.10]# cp defconfig .config
[root@localhost wpa_supplicant-0.5.10]# make
[root@localhost wpa_supplicant-0.5.10]# make install
[root@localhost wpa_supplicant-0.5.10]# iwpriv wlan0 set AuthMode=WPAPSK
[root@localhost wpa_supplicant-0.5.10]# iwpriv wlan0 set WPAPSK=123
Interface doesn't accept private ioctl...
set (8BE2) Invalid argument
[root@localhost wpa_supplicant-0.5.10]#

Before I reinstall wpa-supplicant, this error still occurs.
Ah, I really wanna give up. ~~~

ok, the rate is 54Mbps now. Only one question
[root@localhost wpa_supplicant-0.5.10]# iwpriv wlan0 set WPAPSK=123
Interface doesn't accept private ioctl...
set (8BE2) Invalid argument

IvD

29-07-2008 15:07:11

And you had it working when you hacked the code?

I don't know what you are now trying to do, so I would suggest you now start by mentioning which driver you are using, which distro, provide some debug information, etc etc

In addition what is the output of the following commands
lspci
lsmod
iwconfig

salvage

29-07-2008 15:15:31

dwl g122 usb wireless cards.
kernel fc6
wlan0 RT73 WLAN ESSID"123"
ModeAd-Hoc Frequency=2.412 GHz Cell 0A32F0BAA24E
Bit Rate54 Mb/s
RTS throff Fragment throff
Encryption keyoff
Link Quality=0/100 Signal level-121 dBm Noise level-115 dBm
Rx invalid nwid0 Rx invalid crypt0 Rx invalid frag0
Tx excessive retries0 Invalid misc0 Missed beacon0

Only one question
[root@localhost wpa_supplicant-0.5.10]# iwpriv wlan0 set WPAPSK=0x12
Interface doesn't accept private ioctl...
set (8BE2) Invalid argument

[root@localhost wpa_supplicant-0.5.10]# iwpriv wlan0 set AuthMode=WPAPSK
[root@localhost wpa_supplicant-0.5.10]# iwpriv wlan0 set WPAPSK=123
Interface doesn't accept private ioctl...
set (8BE2) Invalid argument
[root@localhost wpa_supplicant-0.5.10]# iwpriv wlan0 set WPAPSK=123
Interface doesn't accept private ioctl...
set (8BE2) Invalid argument
[root@localhost wpa_supplicant-0.5.10]# iwpriv wlan0 set EncrypType=TKIP
[root@localhost wpa_supplicant-0.5.10]# iwpriv wlan0 set WirelessMode=0

IvD

29-07-2008 15:20:37

Do you have the correct number of characters as WPAPSK argument?
Try removing the starting '0x'

salvage

29-07-2008 15:25:50

[root@localhost home]# iwpriv wlan0 set WPAPSK=aaa
Interface doesn't accept private ioctl...
set (8BE2) Invalid argument
[root@localhost home]# iwpriv wlan0 set WPAPSK=123
Interface doesn't accept private ioctl...
set (8BE2) Invalid argument
[root@localhost home]# iwpriv wlan0 set WPAPSK=111
Interface doesn't accept private ioctl...
set (8BE2) Invalid argument
[root@localhost home]# iwpriv wlan0 set WPAPSK=12
Interface doesn't accept private ioctl...
set (8BE2) Invalid argument
[root@localhost home]#

Sorry, know little about WPAPSK shock

salvage

29-07-2008 15:27:58

wlan0 Available private ioctls
set (8BE2) set 1024 char & get 0
adhocOfdm (8BE6) set 1 int & get 0
stat (8BE9) set 1024 char & get 1024 char
get_site_survey (8BEF) set 1024 char & get 1024 char
get_RaAP_Cfg (8BF1) set 1024 char & get 0
forceprism (8BF2) set 1024 char & get 0
rfmontx (8BEC) set 1024 char & get 0
get_rfmontx (8BED) set 0 & get 1 int
auth (8BE7) set 1 int & get 0
enc (8BE8) set 1 int & get 0
wpapsk (8BEA) set 64 char & get 0
psm (8BEB) set 1 int & get 0
[root@localhost home]# iwpriv wlan0 set WPAPSK=12345678
[root@localhost home]#
successful!! D

Thank you so much for your patience!!! D