The scan seems worse with new driver.

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

Dartagnan

16-04-2009 14:32:18

Hello.

I have a PCI card that uses a Ralink RT2500 chipset.
On my computer, there are 2 operating systems (OS)
1 - The first is a "Former OS" it's Ubuntu 7.10, with an old kernel and a former driver rt2x00.
2 - The second is a "New OS" it's ArchLinux, with a recent kernel and recent rt2x00 driver.

There is a concern the "Former OS" much better detects wireless networks that the "New OS". So I can connect using the "Former OS". But I can not connect using the "New OS" !

Here is information on the "Former OS" (Ubuntu 7.10) [quoteb4l7l7kk][bb4l7l7kk]uname -a[/bb4l7l7kk]
Linux Dartagnan-desktop 2.6.22-15-generic #1 SMP Tue Jun 10 092134 UTC 2008 i686 GNU/Linux

[bb4l7l7kk]modinfo rt2500pci [/bb4l7l7kk]
filename /lib/modules/2.6.22-15-generic/ubuntu/wireless/rt2x00/rt2500pci.ko
license GPL
description Ralink RT2500 PCI & PCMCIA Wireless LAN driver.
[bb4l7l7kk]version 2.0.4[/bb4l7l7kk][/colorb4l7l7kk]
author http//rt2x00.serialmonkey.com
srcversion 551DB639C693C1B6DB7ACBB
alias pciv00001814d00000201sv*sd*bc*sc*i*
depends rt2x00pci,rt2x00lib,mac80211,eeprom_93cx6
vermagic 2.6.22-15-generic SMP mod_unload 586

[bb4l7l7kk]lsmod | grep rt2[/bb4l7l7kk]
Module Size Used by
rt2500pci 19072 0
rt2x00pci 11520 1 rt2500pci
rt2x00lib 19584 2 rt2500pci,rt2x00pci
rfkill 8208 1 rt2x00lib
input_polldev 5896 1 rt2x00lib
crc_itu_t 3072 1 rt2x00lib
eeprom_93cx6 3200 1 rt2500pci
mac80211 171016 4 rt2500pci,rt2x00pci,rt2x00lib,rc80211_simple

[bb4l7l7kk]lspci -vv[/bb4l7l7kk]
0400.0 Network controller RaLink RT2500 802.11g Cardbus/mini-PCI (rev 01)
Subsystem Micro-Star International Co., Ltd. Unknown device 6834
Control I/O+ Mem+ BusMaster+ SpecCycle- MemWINV+ VGASnoop- ParErr- Stepping- SERR- FastB2B-
Status Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=slow >TAbort- <TAbort- <MAbort- >SERR- <PERR-
Latency 32, Cache Line Size 32 bytes
Interrupt pin A routed to IRQ 23
Region 0 Memory at f3100000 (32-bit, non-prefetchable)
Capabilities [40] Power Management version 2
Flags PMEClk- DSI- D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
Status D0 PME-Enable- DSel=0 DScale=0 PME-[/quoteb4l7l7kk]and[quoteb4l7l7kk][bb4l7l7kk]iwlist wlan0 scanning[/bb4l7l7kk]
wlan0 Scan completed

[bb4l7l7kk] Cell 01 - Address 001133CC00AA[/bb4l7l7kk][/colorb4l7l7kk]
ESSID"MY_NETWORK"
ModeMaster
Channel6
Frequency2.437 GHz
Signal level=-80 dBm
Encryption keyon
IE WPA Version 1
Group Cipher WEP-40
Pairwise Ciphers (2) TKIP WEP-40
Authentication Suites (1) PSK
IE IEEE 802.11i/WPA2 Version 1
Group Cipher WEP-40
Pairwise Ciphers (2) TKIP WEP-40
Authentication Suites (1) PSK
Bit Rates1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 18 Mb/s
24 Mb/s; 36 Mb/s; 54 Mb/s; 6 Mb/s; 9 Mb/s
12 Mb/s; 48 Mb/s
Extratsf=00000016cc15da67

[bb4l7l7kk] Cell 02 - Address 008811BB6666[/bb4l7l7kk][/colorb4l7l7kk]
ESSID""
ModeMaster
Channel1
[...]

[bb4l7l7kk] Cell 03 - Address 00AA227700FF[/bb4l7l7kk][/colorb4l7l7kk]
ESSID""
ModeMaster
Channel1
[...]

[bb4l7l7kk] Cell 04 - Address 9999999977AA[/bb4l7l7kk][/colorb4l7l7kk]
ESSID"freephonie"
ModeMaster
Channel1
[...][/quoteb4l7l7kk]
With the "Former OS", I detect four wireless networks. And I can connect to "MY_NETWORK", using wpa_suplicant.

Now, here is information on the "New OS" (Archlinux) [quoteb4l7l7kk][bb4l7l7kk]uname -a[/bb4l7l7kk]
Linux Dartagnan-desktop 2.6.29-ARCH #1 SMP PREEMPT Wed Apr 8 124756 UTC 2009 i686 Intel(R) Celeron(R) CPU 440 @ 2.00GHz GenuineIntel GNU/Linux

[bb4l7l7kk]modinfo rt2500pci [/bb4l7l7kk]
filename /lib/modules/2.6.29-ARCH/kernel/drivers/net/wireless/rt2x00/rt2500pci.ko
license GPL
description Ralink RT2500 PCI & PCMCIA Wireless LAN driver.
[bb4l7l7kk]version 2.2.3[/bb4l7l7kk][/colorb4l7l7kk]
author http//rt2x00.serialmonkey.com
srcversion FC788A20B5D9C4F57DF3127
alias pciv00001814d00000201sv*sd*bc*sc*i*
depends rt2x00lib,rt2x00pci,eeprom_93cx6
vermagic 2.6.29-ARCH SMP preempt mod_unload 686

[bb4l7l7kk]lsmod | grep rt2[/bb4l7l7kk]
Module Size Used by
rt2500pci 14772 0
rt2x00pci 7092 1 rt2500pci
rt2x00lib 27252 2 rt2500pci,rt2x00pci
rfkill 9392 2 rt2x00lib
led_class 3384 1 rt2x00lib
mac80211 159260 2 rt2x00pci,rt2x00lib
cfg80211 36492 2 rt2x00lib,mac80211
eeprom_93cx6 1684 1 rt2500pci

[bb4l7l7kk]lspci -vv[/bb4l7l7kk]
0400.0 Network controller RaLink RT2500 802.11g Cardbus/mini-PCI (rev 01)
Subsystem Micro-Star International Co., Ltd. Device 6834
Control I/O+ Mem+ BusMaster+ SpecCycle- MemWINV+ VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=slow >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency 32, Cache Line Size 32 bytes
Interrupt pin A routed to IRQ 20
Region 0 Memory at f3100000 (32-bit, non-prefetchable)
Capabilities [40] Power Management version 2
Flags PMEClk- DSI- D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
Status D0 PME-Enable- DSel=0 DScale=0 PME-
Kernel driver in use rt2500pci
Kernel modules rt2500, rt2500pci[/quoteb4l7l7kk]and[quoteb4l7l7kk][bb4l7l7kk]iwlist wlan0 scanning[/bb4l7l7kk]
wlan0 No scan results[/quoteb4l7l7kk]
With the "New OS", I detect none wireless network. So I can't connect to "MY_NETWORK". ?

Could this be a regression in the rt2x00 pilote ?
Either I make a mistake ?
I would like to use the wifi with the "New OS". What do I do this ?
Thank you for your help.

PS My English isn't fluently, so I use Google Translate. I hope to be understandable ! D

Dartagnan

16-04-2009 15:02:47

I'll try [b3t164d7u][u3t164d7u]compat-wireless[/url3t164d7u][/u3t164d7u][/b3t164d7u].

Dartagnan

17-04-2009 18:26:23

I have tried compat-wireless, without success. (

[quote3g230aek][b3g230aek]iwlist wlan0 scan[/b3g230aek]
wlan0 No scan results[/quote3g230aek]
The version is [quote3g230aek][b3g230aek]modinfo rt2500pci[/b3g230aek]
filename /lib/modules/2.6.29-ARCH/updates/drivers/net/wireless/rt2x00/rt2500pci.ko
license GPL
description Ralink RT2500 PCI & PCMCIA Wireless LAN driver.
[b3g230aek]version 2.3.0[/b3g230aek][/color3g230aek]
author http//rt2x00.serialmonkey.com
srcversion B02EEDB2B3D48B789741415
alias pciv00001814d00000201sv*sd*bc*sc*i*
depends rt2x00lib,rt2x00pci,eeprom_93cx6
vermagic 2.6.29-ARCH SMP preempt mod_unload 686[/quote3g230aek]
When inserting module, I've got these messages [quote3g230aek][b3g230aek]modprobe -av rt2500pci [/b3g230aek]
insmod /lib/modules/2.6.29-ARCH/updates/drivers/misc/eeprom/eeprom_93cx6.ko
insmod /lib/modules/2.6.29-ARCH/updates/net/wireless/cfg80211.ko
insmod /lib/modules/2.6.29-ARCH/updates/net/mac80211/mac80211.ko
insmod /lib/modules/2.6.29-ARCH/kernel/drivers/input/input-polldev.ko
insmod /lib/modules/2.6.29-ARCH/kernel/drivers/leds/led-class.ko
insmod /lib/modules/2.6.29-ARCH/updates/drivers/net/wireless/rt2x00/rt2x00lib.ko
insmod /lib/modules/2.6.29-ARCH/updates/drivers/net/wireless/rt2x00/rt2x00pci.ko
insmod /lib/modules/2.6.29-ARCH/updates/drivers/net/wireless/rt2x00/rt2500pci.ko


[b3g230aek]dmesg[/b3g230aek]
cfg80211 Using static regulatory domain info
[b3g230aek]cfg80211 Regulatory domain US[/b3g230aek][/color3g230aek]
(start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
(2402000 KHz - 2472000 KHz @ 40000 KHz), (600 mBi, 2700 mBm)
(5170000 KHz - 5190000 KHz @ 40000 KHz), (600 mBi, 2300 mBm)
(5190000 KHz - 5210000 KHz @ 40000 KHz), (600 mBi, 2300 mBm)
(5210000 KHz - 5230000 KHz @ 40000 KHz), (600 mBi, 2300 mBm)
(5230000 KHz - 5330000 KHz @ 40000 KHz), (600 mBi, 2300 mBm)
(5735000 KHz - 5835000 KHz @ 40000 KHz), (600 mBi, 3000 mBm)
[b3g230aek]cfg80211 Calling CRDA for country US[/b3g230aek][/color3g230aek]
rt2500pci 00000400.0 PCI INT A -> GSI 20 (level, low) -> IRQ 20
phy0 Selected rate control algorithm 'minstrel'
Registered led device rt2500pci-phy0radio
Registered led device rt2500pci-phy0quality[/quote3g230aek]
I'm not in US, but in France. I'll try to change this setting.

Your help is welcome. wink

Dartagnan

17-04-2009 22:17:11

I set cfg80211 with "EU"

[quote2vegl1kt][b2vegl1kt]modprobe -v cfg80211 ieee80211_regdom=EU[/b2vegl1kt]
insmod /lib/modules/2.6.29-ARCH/updates/net/wireless/cfg80211.ko ieee80211_regdom=[b2vegl1kt]EU[/b2vegl1kt][/color2vegl1kt]


[b2vegl1kt]dmesg[/b2vegl1kt]
cfg80211 Using static regulatory domain info
[b2vegl1kt]cfg80211 Regulatory domain EU[/b2vegl1kt][/color2vegl1kt]
(start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
(2402000 KHz - 2482000 KHz @ 40000 KHz), (600 mBi, 2000 mBm)
(5170000 KHz - 5190000 KHz @ 40000 KHz), (600 mBi, 2300 mBm)
(5190000 KHz - 5210000 KHz @ 40000 KHz), (600 mBi, 2300 mBm)
(5210000 KHz - 5230000 KHz @ 40000 KHz), (600 mBi, 2300 mBm)
(5230000 KHz - 5330000 KHz @ 40000 KHz), (600 mBi, 2000 mBm)
(5490000 KHz - 5710000 KHz @ 40000 KHz), (600 mBi, 3000 mBm)
[b2vegl1kt]cfg80211 Calling CRDA for country EU[/b2vegl1kt][/color2vegl1kt]
rt2500pci 00000400.0 PCI INT A -> GSI 20 (level, low) -> IRQ 20
phy0 Selected rate control algorithm 'minstrel'
Registered led device rt2500pci-phy0radio
Registered led device rt2500pci-phy0quality[/quote2vegl1kt]

OK. Now we test [quote2vegl1kt][b2vegl1kt]modprobe -v rt2500pci[/b2vegl1kt]
insmod /lib/modules/2.6.29-ARCH/updates/drivers/misc/eeprom/eeprom_93cx6.ko
insmod /lib/modules/2.6.29-ARCH/updates/net/mac80211/mac80211.ko
insmod /lib/modules/2.6.29-ARCH/kernel/drivers/input/input-polldev.ko
insmod /lib/modules/2.6.29-ARCH/kernel/drivers/leds/led-class.ko
insmod /lib/modules/2.6.29-ARCH/updates/drivers/net/wireless/rt2x00/rt2x00lib.ko
insmod /lib/modules/2.6.29-ARCH/updates/drivers/net/wireless/rt2x00/rt2x00pci.ko
insmod /lib/modules/2.6.29-ARCH/updates/drivers/net/wireless/rt2x00/rt2500pci.ko


[b2vegl1kt]ifconfig wlan0 up[/b2vegl1kt][/quote2vegl1kt]

And the result is [quote2vegl1kt][b2vegl1kt]iwlist wlan0 scanning[/b2vegl1kt]
wlan0 No scan results[/quote2vegl1kt]
Damn ! evil

IvD

18-04-2009 08:08:50

If you have an old version which is working, could you enable debugfs and use http//kernel.org/pub/linux/kernel/peop ... regdump.sh
to make a register dump from the old driver.

Also use the attached script to make a register dump from the new non-working driver.

Dartagnan

18-04-2009 08:44:58

OK, I'll do that when I'll be back from my week-end. P

Dartagnan

23-04-2009 04:36:47

I've got problem to make register dump.

I mount debugfs with [code17wqip2i]mount -t debugfs debugfs /sys/kernel/debug[/code17wqip2i]

*****************************************************

[b17wqip2i]"Former OS" (old working driver)[/size17wqip2i][/b17wqip2i][/color17wqip2i]

[quote17wqip2i][b17wqip2i]uname -a[/b17wqip2i]
Linux Dartagnan-desktop 2.6.22-15-generic #1 SMP Tue Jun 10 092134 UTC 2008 i686 GNU/Linux

[b17wqip2i]modinfo rt2500pci | grep version[/b17wqip2i]
version 2.0.4
srcversion 551DB639C693C1B6DB7ACBB[/quote17wqip2i]

We try the script [quote17wqip2i][b17wqip2i]./rt2x00_regdump_for_old_driver.sh[/b17wqip2i]
ls /sys/kernel/debug/ieee80211/phy*/rt[0-9]*/ Aucun fichier ou répertoire de ce type[/quote17wqip2i]

Some informations [quote17wqip2i][b17wqip2i]ls -l /sys/kernel/debug/ieee80211/[/b17wqip2i]
total 0
drwxr-xr-x 7 root root 0 2009-04-22 1021 phy0

[b17wqip2i]ls -l /sys/kernel/debug/ieee80211/phy0/[/b17wqip2i]
total 0
-r--r--r-- 1 root root 0 2009-04-22 1021 antenna_sel_rx
-r--r--r-- 1 root root 0 2009-04-22 1021 antenna_sel_tx
-r--r--r-- 1 root root 0 2009-04-22 1021 bridge_packets
-r--r--r-- 1 root root 0 2009-04-22 1021 channel
-r--r--r-- 1 root root 0 2009-04-22 1021 fragmentation_threshold
-r--r--r-- 1 root root 0 2009-04-22 1021 frequency
drwxr-xr-x 4 root root 0 2009-04-22 1021 keys
-r--r--r-- 1 root root 0 2009-04-22 1021 key_tx_rx_threshold
-r--r--r-- 1 root root 0 2009-04-22 1021 long_retry_limit
-r--r--r-- 1 root root 0 2009-04-22 1021 mode
-r--r--r-- 1 root root 0 2009-04-22 1021 modes
drwxr-xr-x 2 root root 0 2009-04-22 1021 netdevwlan0
drwxr-xr-x 2 root root 0 2009-04-22 1021 netdevwmaster0
-r--r--r-- 1 root root 0 2009-04-22 1021 radar_detect
-r--r--r-- 1 root root 0 2009-04-22 1021 rts_threshold
-r--r--r-- 1 root root 0 2009-04-22 1021 short_retry_limit
drwxr-xr-x 3 root root 0 2009-04-22 1021 stations
drwxr-xr-x 2 root root 0 2009-04-22 1021 statistics
-r--r--r-- 1 root root 0 2009-04-22 1021 total_ps_buffered
-r--r--r-- 1 root root 0 2009-04-22 1021 tx_power_reduction
-r--r--r-- 1 root root 0 2009-04-22 1021 wep_iv[/quote17wqip2i]

*****************************************************


[b17wqip2i]"New OS" (new non-working driver)[/size17wqip2i][/b17wqip2i][/color17wqip2i]

[quote17wqip2i][b17wqip2i]uname -a[/b17wqip2i]
Linux Dartagnan-desktop 2.6.29-ARCH #1 SMP PREEMPT Fri Apr 17 124601 UTC 2009 i686 Intel(R) Celeron(R) CPU 440 @ 2.00GHz GenuineIntel GNU/Linux

[b17wqip2i]modinfo rt2500pci |grep version[/b17wqip2i]
version 2.3.0
srcversion B02EEDB2B3D48B789741415[/quote17wqip2i]

We try the script [quote17wqip2i][b17wqip2i]./rt2x00_regdump_for_new_driver.sh [/b17wqip2i]
ls ne peut accéder /sys/kernel/debug/ieee80211/phy*/rt[0-9]*/ Aucun fichier ou dossier de ce type[/quote17wqip2i]

Some informations [quote17wqip2i][b17wqip2i]ls -l /sys/kernel/debug/ieee80211[/b17wqip2i]
total 0
drwxr-xr-x 2 root root 0 avril 23 0534 phy0

[b17wqip2i]ls -l /sys/kernel/debug/ieee80211/phy0/[/b17wqip2i]
total 0

[b17wqip2i]cat /proc/config.gz | gunzip | grep DEBUGFS[/b17wqip2i]
# CONFIG_MAC80211_DEBUGFS is not set[/quote17wqip2i]

*****************************************************

It seems I have to compile my own kernel with options CONFIG_DEBUGFS, CONFIG_MAC80211_DEBUGS, CONFIG_RT2X00_DEBUGFS and CONFIG_RT2X00_LIB_DEBUGFS enabled.

I can sometimes connect to my wifi network with the "New OS", but ping to my modem-router is very bad, with packets loss.

IvD

23-04-2009 15:37:48

That is right you need to enable MAC80211_DEBUGFS as well as CONFIG_RT2X00_LIB_DEBUGFS to enable debugfs.
Note that CONFIG_RT2X00_DEBUGFS doesn't exist