rt2500 succes with Debian - but some rate issues

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


13-05-2008 21:20:58

Hi forum,

1st post here to share some of my experiences to get my rt2500 pcmcia-card to run (conceptronic C54RC and C54APM(ver.1) Acess-Point).
One (or two?) years ago I had the now called legacy drivers installed on my debian laptop. It worked well but was complicated to install and after some updates of the distribution I forgot how I did it and lost interest for a while. Until recently, when I read, that the 2.6.25-kernel has some new wireless-drivers included. I decided to compile the on my old Debian(lenny) laptop. At menuconfig I didn't know, whether I would need the legacy drivers or the new rt2x00 and mac80211 combination, so I kernel-configured both. The new kernel booted and I had no idea, what drivers were chosen by the system and how to get a ra0 or wlan0 entry in my /etc/network/interfaces. Lurking in this forum I found a statement use "iwconfig, wpa-supplicant and network-manager" for the new rt2x00 drivers. I remembered having seen those network-manager on a wireless Ubuntu-laptop and so I installed network-manager-kde and so on. In some READMEs I found, that I don't need my static entries in my /etc/network/interfaces, so I moved it besides and replaces it with this content

allow-hotplug eth0
iface eth0 inet dhcp

auto wlan0
iface wlan0 inet dhcp

The interfaces are dynamically controlled by the network-manager then (I learned). After /etc/init.d/network-manager start I had a new interface wlan0, visible by ifconfig. The GUI network-manager-kde starts the search for a wireless network. My Accesspoint was configured with 54mps, WPA1, PSK, AES, and channel 7. After typing my preshared-key in the pop-up-window of my laptop, I could connect to the wireless-network. As I understand, this means the rt2x00 drivers and wpa-supplicant are working.

But the GUI from Kde and iwconfig always showed a rate of 1Mb/s (in a rare cases 2Mb/s), where I expected 54Mb/s. Somewhere here in the board I read iwconfig could adjust the rate. I had success doing " iwconfig wlan0 rate 54M" - all while the connect was active! It lasts a few seconds and then both GUI and iwconfig showed a rate of 54Mb/s

~# iwconfig
lo no wireless extensions.

eth0 no wireless extensions.

wmaster0 no wireless extensions.

wlan0 IEEE 802.11g ESSID"GRUEN"
ModeManaged Frequency2.442 GHz Access Point 00805A29A682
Bit Rate=54 Mb/s Tx-Power=27 dBm
Retry min limit7 RTS throff Fragment thr=2352 B
Encryption key0552-6A4C-702E-99EC-FB3E-02BA-7F3E-B68D [2]
Link Quality=54/100 Signal level=-32 dBm
Rx invalid nwid0 Rx invalid crypt0 Rx invalid frag0
Tx excessive retries0 Invalid misc0 Missed beacon0

Some test-downloads in my LAN showed, it were only 15Mb/s effectiv
$ scp .
test_100mb.bin 100% 100MB 1.9MB/s 0054

15mbps is fast enough for me - but is this normal for 54mbps networks?
Do I something wrong, that I have to type "iwconfig wlan0 rate 54M" manually? Can it be statically configured somewhere?

As you see, it is not easy to find the basic steps for a newbie. Maybe my short description helps someone in a similar situation.
Thanks to all the maintainers, who do the real work in this project!


If someone is interested in lsmod and lspci
# lspci
0000.0 Host bridge Intel Corporation 440BX/ZX/DX - 82443BX/ZX/DX Host bridge (rev 03)
0001.0 PCI bridge Intel Corporation 440BX/ZX/DX - 82443BX/ZX/DX AGP bridge (rev 03)
0006.0 Multimedia audio controller ESS Technology ES1988 Allegro-1 (rev 12)
0006.1 Communication controller ESS Technology ESS Modem (rev 12)
0007.0 ISA bridge Intel Corporation 82371AB/EB/MB PIIX4 ISA (rev 02)
0007.1 IDE interface Intel Corporation 82371AB/EB/MB PIIX4 IDE (rev 01)
0007.2 USB Controller Intel Corporation 82371AB/EB/MB PIIX4 USB (rev 01)
0007.3 Bridge Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 03)
0008.0 Ethernet controller Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)
000a.0 CardBus bridge Ricoh Co Ltd RL5c476 II (rev 80)
000a.1 CardBus bridge Ricoh Co Ltd RL5c476 II (rev 80)
0100.0 VGA compatible controller S3 Inc. 86C270-294 Savage/MX-MV (rev 11)
0200.0 Network controller RaLink RT2500 802.11g Cardbus/mini-PCI (rev 01)

# lsmod
Module Size Used by
aes_i586 8032 4
aes_generic 27560 1 aes_i586
ipv6 238620 12
arc4 1792 2
ecb 3296 2
crypto_blkcipher 17412 1 ecb
rt2500pci 17664 0
rt2x00pci 10016 1 rt2500pci
rt2x00lib 19776 2 rt2500pci,rt2x00pci
rfkill 7284 1 rt2x00lib
input_polldev 4744 1 rt2x00lib
mac80211 117932 2 rt2x00pci,rt2x00lib
cfg80211 17320 1 mac80211
eeprom_93cx6 2080 1 rt2500pci
joydev 11136 0
pcmcia 36036 0
firmware_class 9120 1 pcmcia
snd_maestro3 22820 0
snd_ac97_codec 90212 1 snd_maestro3
ac97_bus 1696 1 snd_ac97_codec
snd_pcm_oss 37440 0
psmouse 35280 0
pcspkr 2848 0
rtc 13884 0
serio_raw 6404 0
snd_pcm 67976 3 snd_maestro3,snd_ac97_codec,snd_pcm_oss
8139cp 20960 0
yenta_socket 23756 3
rsrc_nonstatic 11264 1 yenta_socket
8139too 24512 0
mii 5024 2 8139cp,8139too
snd_page_alloc 9704 1 snd_pcm
pcmcia_core 36624 3 pcmcia,yenta_socket,rsrc_nonstatic
fan 5348 0
i2c_piix4 7884 0
snd_mixer_oss 14976 1 snd_pcm_oss
i2c_core 22416 1 i2c_piix4
uhci_hcd 22032 0
snd_seq_dummy 3524 0
usbcore 127868 2 uhci_hcd
snd_seq_oss 28276 0
snd_seq_midi 7840 0
snd_rawmidi 22496 1 snd_seq_midi
battery 12868 0
snd_seq_midi_event 6880 2 snd_seq_oss,snd_seq_midi
snd_seq 44540 6 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_seq_m
ac 5732 0
thermal 18556 0
button 7920 0
processor 27008 2 thermal
snd_timer 21444 2 snd_pcm,snd_seq
snd_seq_device 7340 5 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_rawmi
snd 48180 10 snd_maestro3,snd_ac97_codec,snd_pcm_oss,snd_pcm
intel_agp 24380 1
agpgart 31152 1 intel_agp
shpchp 29172 0
pci_hotplug 27492 1 shpchp
soundcore 7588 1 snd
evdev 11104 5