linux with rt2860 much slower than an XP laptop in same room

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

alfonso78

31-01-2012 08:32:44

Hi,

I also posted this on ubuntuforums[/url27jyqm9k], but I really believe it's a driver problem...

I have an issue with wireless.
My MB (Zotac H67) has a Ralink RT2860 chipset.

I have two access points
- from my ISP (I will call it ISP)
- an ALIX with an Atheros AR5414 miniPCI wireless card

this my experience linux wired is really fast. If I connect it to the ISP wireless it's so slow it makes you cry.
Speedtest.net doesn't even start and wget can't show an actual speed.
But it is connected and it works. If I connect it to the ALIX, it works more or less, but very slow.
My XP laptop works fine connected to both APs.

Test results with [url27jyqm9k]http://www.speedtest.net/:[/url27jyqm9k]

[code27jyqm9k]
laptop lenovo T400 with XP wireless (ISP router):
ping 24ms
download 4.46 Mbps
upload 0.74 Mbps

laptop lenovo T400 with XP wireless (ALIX running Voyage - based on Debian 6.0.3 "Squeeze"):
ping 24ms
download 5.50 Mbps
upload 0.74 Mbps

desktop linux with kernel 3.0.0-15 wired:
ping 18 ms
download 12.19 Mbps
upload 0.77 Mbps

desktop linux with kernel 3.0.0-15 wireless (ISP router):
ping 18 ms
download test stalls
(from wget I can see a download barely starts, but it's too slow for wget to show a speed)

desktop linux with kernel 3.0.0-15 wireless (ALIX running Voyage - based on Debian 6.0.3 "Squeeze"):
ping 20ms
download 2.22 Mbps
upload 0.77 Mbps

desktop linux with kernel 3.2.0 wired:
ping 16 ms
download 12.08 Mbps
upload 0.76 Mbps

desktop linux with kernel 3.2.0 wireless (ISP router):
ping 18 ms
download test stalls
(from wget I can see a download barely starts, but it's too slow for wget to show a speed)

desktop linux with kernel 3.2.0 wireless (ALIX running Voyage - based on Debian 6.0.3 "Squeeze"):
ping 18ms
download 1.43 Mbps
upload 0.76 Mbps[/code27jyqm9k]

A bit of info

[code27jyqm9k]$ lspci -nn | grep 0280
01:00.0 Network controller [0280]: Ralink corp. RT2860 [1814:0781]
[/code27jyqm9k]

[code27jyqm9k]$ uname -r
3.2.0-interlaced2+[/code27jyqm9k]
(intel developers just fixed a bug on the driver of my video card so I need this custom built kernel)

[code27jyqm9k]$ lsmod | grep rt2
rt2800pci 18108 0
rt2800lib 52596 1 rt2800pci
crc_ccitt 12595 1 rt2800lib
rt2x00pci 14116 1 rt2800pci
rt2x00lib 48261 3 rt2800pci,rt2800lib,rt2x00pci
mac80211 432604 3 rt2800lib,rt2x00pci,rt2x00lib
cfg80211 174734 2 rt2x00lib,mac80211
eeprom_93cx6 13134 1 rt2800pci
[/code27jyqm9k]

I found [url=https://bugzilla.redhat.com/show_bug.cgi?id=65845127jyqm9k]this bug report[/url27jyqm9k] for RedHat which seems to face the same issue and they seem to be testing a [url=https://bugzilla.redhat.com/attachment.cgi?id=55214627jyqm9k]patch[/url27jyqm9k] a couple of weeks ago...
I'd love to know how to apply this patch to my kernel...

I tried to offer only WPA2 from my AP, but the speed doesn't change.

this is my current hostapd.wlan0.conf
[code27jyqm9k]interface=wlan0
driver=nl80211
logger_syslog=-1
logger_syslog_level=2
logger_stdout=-1
logger_stdout_level=2
debug=4
#dump_file=/tmp/hostapd.dump
#ctrl_interface=/var/run/hostapd
#ctrl_interface_group=0
channel=6
hw_mode=g
macaddr_acl=0
auth_algs=3
eapol_key_index_workaround=0
eap_server=0
# wpa=3
# only WPA2
wpa=2
#ssid=voyage-mpd
ssid=the-truth-is-out-there
#wpa_passphrase=voyage-mpd
wpa_passphrase=<<password>>
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP
rsn_pairwise=CCMP
eapol_version=1
#wme_enabled=1
#ieee80211n=1
#ht_capab=[HT40-][HT40+][SHORT-GI-40][TX-STBC][RX-STBC1] [DSSS_CCK-40]
[/code27jyqm9k]

I also looked at suggestions [url=http://wiki.debian.org/rt2860sta27jyqm9k]here[/url27jyqm9k] and [url=https://help.ubuntu.com/community/WifiDocs/Device/RalinkRT286027jyqm9k]here[/url27jyqm9k]

This is how my ALIX wireless is seen

[code27jyqm9k]$ sudo iwlist scan | less
wlan1 Scan completed :
Cell 01 - Address: 00:0B:6B:2E:25:D5
Channel:6
Frequency:2.437 GHz (Channel 6)
Quality=52/70 Signal level=-58 dBm
Encryption key:on
ESSID:"the-truth-is-out-there"
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 6 Mb/s
9 Mb/s; 12 Mb/s; 18 Mb/s
Bit Rates:24 Mb/s; 36 Mb/s; 48 Mb/s; 54 Mb/s
Mode:Master
Extra:tsf=0000000003d19a22
Extra: Last beacon: 4900ms ago
IE: Unknown: 00167468652D74727574682D69732D6F75742D7468657265
IE: Unknown: 010882848B960C121824
IE: Unknown: 030106
IE: Unknown: 2A0104
IE: Unknown: 32043048606C
IE: IEEE 802.11i/WPA2 Version 1
Group Cipher : CCMP
Pairwise Ciphers (1) : CCMP
Authentication Suites (1) : PSK[/code27jyqm9k]

and this is how my ISP wireless is seen

[code27jyqm9k] Cell 04 - Address: 00:1D:19:FC:E2:CE
Channel:1
Frequency:2.412 GHz (Channel 1)
Quality=50/70 Signal level=-60 dBm
Encryption key:on
ESSID:"DartyBox_114E"
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 6 Mb/s; 9 Mb/s
11 Mb/s; 12 Mb/s; 18 Mb/s
Bit Rates:24 Mb/s; 36 Mb/s; 48 Mb/s; 54 Mb/s
Mode:Master
Extra:tsf=0000000002952718
Extra: Last beacon: 1492ms ago
IE: Unknown: 000D4461727479426F785F31313445
IE: Unknown: 010882848B0C12961824
IE: Unknown: 030101
IE: IEEE 802.11i/WPA2 Version 1
Group Cipher : TKIP
Pairwise Ciphers (2) : CCMP TKIP
Authentication Suites (1) : PSK
IE: WPA Version 1
Group Cipher : TKIP
Pairwise Ciphers (2) : CCMP TKIP
Authentication Suites (1) : PSK
IE: Unknown: 2A0100
IE: Unknown: 32043048606C
IE: Unknown: DD180050F2020101040003A4000027A4000042435E0062322F00
IE: Unknown: DD0900037F01010000FF7F
IE: Unknown: DD0A00037F04010000000000
IE: Unknown: 0706465220010D14
IE: Unknown: DD910050F204104A000110104400010210570001001041000100103B00010310470010E08100663B5D4CA28C18513D38A85E7E10210005426577616E102300084461727479426F781024000A307830304135304630311042000F3934303030303034343630383738371054000800060050F20400011011000F496E66696E656F6E2044616E756265100800020080103C000101
[/code27jyqm9k]

I also updated the firmware to the latest available on ralink website

[code27jyqm9k]$ md5sum /lib/firmware/rt2860.bin
66332d7636ee78db31b056aa0e44b097 /lib/firmware/rt2860.bin[/code27jyqm9k]

any idea?

Thank you!

jawilljr

31-01-2012 17:54:07

[quote26hv2acl]I also updated the firmware to the latest available on ralink website[/quote26hv2acl]

The firmware on Ralink's site os old. The md5sum for the latest rt2860.bin should be

[code26hv2acl]md5sum /lib/firmware/rt2860.bin
75a1da3caa0b1c95e81dfba207f834c6 /lib/firmware/rt2860.bin[/code26hv2acl]

The firmware was updated with this commit.[/url26hv2acl]


If it were me, I would at least try the latest stable [url=http://linuxwireless.org/en/users/Download/stable/#compat-wireless_3.3_stable_releases26hv2acl]compat-wireless-3.3-rc1-2[/url26hv2acl]

According to the [url=http://www.orbit-lab.org/kernel/compat-wireless-3-stable/v3.3/ChangeLog-3.3-wireless26hv2acl]changelog[/url26hv2acl] it has the "fix spurious interrupts generation" patch.

Hope it helps.

Jerry

alfonso78

31-01-2012 23:11:06

[quotebo8a01ph]I also updated the firmware to the latest available on ralink website[/quotebo8a01ph]

The firmware on Ralink's site os old. The md5sum for the latest rt2860.bin should be

[codebo8a01ph]md5sum /lib/firmware/rt2860.bin
75a1da3caa0b1c95e81dfba207f834c6 /lib/firmware/rt2860.bin[/codebo8a01ph]

The firmware was updated with this commit.[/urlbo8a01ph]


If it were me, I would at least try the latest stable [url=http://linuxwireless.org/en/users/Download/stable/#compat-wireless_3.3_stable_releasesbo8a01ph]compat-wireless-3.3-rc1-2[/urlbo8a01ph]

According to the [url=http://www.orbit-lab.org/kernel/compat-wireless-3-stable/v3.3/ChangeLog-3.3-wirelessbo8a01ph]changelog[/urlbo8a01ph] it has the "fix spurious interrupts generation" patch.

Hope it helps.

Jerry[/quotebo8a01ph]

Hi, and thank you for trying.

I put what you say it's the latest firmware in /lib/firmware/ . Can you please explain how can you be sure that is the latest version?

About compat-wireless I'm really puzzled

- how come the bleeding edge version is 2.6 and the stable is 3.3?
- since I compiled my new kernel 3.2.0 from the main tree a few days ago and compat-wireless comes from the kernel, how could the solution be compat-wireless?

Anyway, I can't compile to test

[codebo8a01ph]compat-wireless-3.3-rc1-2$ make
./scripts/gen-compat-autoconf.sh config.mk > include/linux/compat_autoconf.h
make -C /lib/modules/3.2.0-interlaced2+/build M=/home/alfonso/wifi/compat-wireless-3.3-rc1-2 modules
make[1]: Entering directory `/home/alfonso/tests/kernel/linux_keithp'
LD /home/alfonso/wifi/compat-wireless-3.3-rc1-2/compat/built-in.o
CC [M] /home/alfonso/wifi/compat-wireless-3.3-rc1-2/compat/main.o
In file included from include/net/net_namespace.h:13:0,
from /home/alfonso/wifi/compat-wireless-3.3-rc1-2/include/net/net_namespace.h:7,
from include/linux/netdevice.h:49,
from /home/alfonso/wifi/compat-wireless-3.3-rc1-2/include/linux/compat-2.6.29.h:5,
from /home/alfonso/wifi/compat-wireless-3.3-rc1-2/include/linux/compat-2.6.h:24,
from <command-line>:0:
include/net/netns/mib.h:15:5: warning: "IS_ENABLED" is not defined [-Wundef]
include/net/netns/mib.h:15:15: error: missing binary operator before token "("
In file included from include/net/net_namespace.h:23:0,
from /home/alfonso/wifi/compat-wireless-3.3-rc1-2/include/net/net_namespace.h:7,
from include/linux/netdevice.h:49,
from /home/alfonso/wifi/compat-wireless-3.3-rc1-2/include/linux/compat-2.6.29.h:5,
from /home/alfonso/wifi/compat-wireless-3.3-rc1-2/include/linux/compat-2.6.h:24,
from <command-line>:0:
include/net/netns/xfrm.h:59:5: warning: "IS_ENABLED" is not defined [-Wundef]
include/net/netns/xfrm.h:59:15: error: missing binary operator before token "("
In file included from /home/alfonso/wifi/compat-wireless-3.3-rc1-2/include/net/net_namespace.h:7:0,
from include/linux/netdevice.h:49,
from /home/alfonso/wifi/compat-wireless-3.3-rc1-2/include/linux/compat-2.6.29.h:5,
from /home/alfonso/wifi/compat-wireless-3.3-rc1-2/include/linux/compat-2.6.h:24,
from <command-line>:0:
include/net/net_namespace.h:80:5: warning: "IS_ENABLED" is not defined [-Wundef]
include/net/net_namespace.h:80:15: error: missing binary operator before token "("
In file included from include/linux/netdevice.h:54:0,
from /home/alfonso/wifi/compat-wireless-3.3-rc1-2/include/linux/compat-2.6.29.h:5,
from /home/alfonso/wifi/compat-wireless-3.3-rc1-2/include/linux/compat-2.6.h:24,
from <command-line>:0:
include/net/netprio_cgroup.h: In function ātask_netprio_stateā:
include/net/netprio_cgroup.h:44:5: warning: "IS_ENABLED" is not defined [-Wundef]
include/net/netprio_cgroup.h:44:15: error: missing binary operator before token "("
In file included from /home/alfonso/wifi/compat-wireless-3.3-rc1-2/include/linux/compat-2.6.29.h:5:0,
from /home/alfonso/wifi/compat-wireless-3.3-rc1-2/include/linux/compat-2.6.h:24,
from <command-line>:0:
include/linux/netdevice.h: At top level:
include/linux/netdevice.h:147:39: error: missing binary operator before token "("
include/linux/netdevice.h:153:7: warning: "IS_ENABLED" is not defined [-Wundef]
include/linux/netdevice.h:153:17: error: missing binary operator before token "("
include/linux/netdevice.h:159:6: warning: "IS_ENABLED" is not defined [-Wundef]
include/linux/netdevice.h:159:16: error: missing binary operator before token "("
include/linux/netdevice.h:964:5: warning: "IS_ENABLED" is not defined [-Wundef]
include/linux/netdevice.h:964:15: error: missing binary operator before token "("
include/linux/netdevice.h:981:5: warning: "IS_ENABLED" is not defined [-Wundef]
include/linux/netdevice.h:981:15: error: missing binary operator before token "("
include/linux/netdevice.h:1123:5: warning: "IS_ENABLED" is not defined [-Wundef]
include/linux/netdevice.h:1123:15: error: missing binary operator before token "("
include/linux/netdevice.h:1126:5: warning: "IS_ENABLED" is not defined [-Wundef]
include/linux/netdevice.h:1126:15: error: missing binary operator before token "("
include/linux/netdevice.h:1289:5: warning: "IS_ENABLED" is not defined [-Wundef]
include/linux/netdevice.h:1289:15: error: missing binary operator before token "("
include/linux/netdevice.h:1293:5: warning: "IS_ENABLED" is not defined [-Wundef]
include/linux/netdevice.h:1293:15: error: missing binary operator before token "("
include/linux/netdevice.h: In function ānetdev_uses_dsa_tagsā:
include/linux/netdevice.h:1397:9: error: āstruct net_deviceā has no member named ādsa_ptrā
include/linux/netdevice.h:1398:31: error: āstruct net_deviceā has no member named ādsa_ptrā
include/linux/netdevice.h: In function ānetdev_uses_trailer_tagsā:
include/linux/netdevice.h:1416:9: error: āstruct net_deviceā has no member named ādsa_ptrā
include/linux/netdevice.h:1417:35: error: āstruct net_deviceā has no member named ādsa_ptrā
In file included from /home/alfonso/wifi/compat-wireless-3.3-rc1-2/include/linux/compat-2.6.h:38:0,
from <command-line>:0:
/home/alfonso/wifi/compat-wireless-3.3-rc1-2/include/linux/compat-3.3.h: At top level:
/home/alfonso/wifi/compat-wireless-3.3-rc1-2/include/linux/compat-3.3.h:28:20: error: static declaration of āskb_complete_wifi_ackā follows non-static declaration
include/linux/skbuff.h:2260:6: note: previous declaration of āskb_complete_wifi_ackā was here
/home/alfonso/wifi/compat-wireless-3.3-rc1-2/include/linux/compat-3.3.h:34:13: error: conflicting types for ānetdev_features_tā
include/linux/netdev_features.h:15:13: note: previous declaration of ānetdev_features_tā was here
make[3]: *** [/home/alfonso/wifi/compat-wireless-3.3-rc1-2/compat/main.o] Error 1
make[2]: *** [/home/alfonso/wifi/compat-wireless-3.3-rc1-2/compat] Error 2
make[1]: *** [_module_/home/alfonso/wifi/compat-wireless-3.3-rc1-2] Error 2
make[1]: Leaving directory `/home/alfonso/tests/kernel/linux_keithp'
make: *** [modules] Error 2
[/codebo8a01ph]

I did some stupid monkey test cause I had the feeling this was due to kernel 3.2 so I rebooted in kernel 3.0 and in fact compat-wireless compiles

[codebo8a01ph]compat-wireless-3.3-rc1-2$ make
./scripts/gen-compat-autoconf.sh config.mk > include/linux/compat_autoconf.h
make -C /lib/modules/3.0.0-15-generic-pae/build M=/home/alfonso/wifi/compat-wireless-3.3-rc1-2 modules
make[1]: Entering directory `/usr/src/linux-headers-3.0.0-15-generic-pae'
LD /home/alfonso/wifi/compat-wireless-3.3-rc1-2/compat/built-in.o
CC [M] /home/alfonso/wifi/compat-wireless-3.3-rc1-2/compat/main.o
CC [M] /home/alfonso/wifi/compat-wireless-3.3-rc1-2/compat/cordic.o
CC [M] /home/alfonso/wifi/compat-wireless-3.3-rc1-2/compat/crc8.o
/home/alfonso/wifi/compat-wireless-3.3-rc1-2/compat/crc8.c:17:0: warning: "pr_fmt" redefined [enabled by default]
include/linux/printk.h:152:0: note: this is the location of the previous definition
/home/alfonso/wifi/compat-wireless-3.3-rc1-2/compat/crc8.c:17:0: warning: "pr_fmt" redefined [enabled by default]
include/linux/printk.h:152:0: note: this is the location of the previous definition
CC [M] /home/alfonso/wifi/compat-wireless-3.3-rc1-2/compat/compat_atomic.o
LD [M] /home/alfonso/wifi/compat-wireless-3.3-rc1-2/compat/compat.o
LD /home/alfonso/wifi/compat-wireless-3.3-rc1-2/drivers/misc/eeprom/built-in.o
CC [M] /home/alfonso/wifi/compat-wireless-3.3-rc1-2/drivers/misc/eeprom/eeprom_93cx6.o
LD /home/alfonso/wifi/compat-wireless-3.3-rc1-2/drivers/net/wireless/built-in.o
LD /home/alfonso/wifi/compat-wireless-3.3-rc1-2/drivers/net/wireless/rt2x00/built-in.o
CC [M] /home/alfonso/wifi/compat-wireless-3.3-rc1-2/drivers/net/wireless/rt2x00/rt2x00dev.o
CC [M] /home/alfonso/wifi/compat-wireless-3.3-rc1-2/drivers/net/wireless/rt2x00/rt2x00mac.o
CC [M] /home/alfonso/wifi/compat-wireless-3.3-rc1-2/drivers/net/wireless/rt2x00/rt2x00config.o
CC [M] /home/alfonso/wifi/compat-wireless-3.3-rc1-2/drivers/net/wireless/rt2x00/rt2x00queue.o
CC [M] /home/alfonso/wifi/compat-wireless-3.3-rc1-2/drivers/net/wireless/rt2x00/rt2x00link.o
CC [M] /home/alfonso/wifi/compat-wireless-3.3-rc1-2/drivers/net/wireless/rt2x00/rt2x00crypto.o
CC [M] /home/alfonso/wifi/compat-wireless-3.3-rc1-2/drivers/net/wireless/rt2x00/rt2x00firmware.o
CC [M] /home/alfonso/wifi/compat-wireless-3.3-rc1-2/drivers/net/wireless/rt2x00/rt2x00leds.o
LD [M] /home/alfonso/wifi/compat-wireless-3.3-rc1-2/drivers/net/wireless/rt2x00/rt2x00lib.o
CC [M] /home/alfonso/wifi/compat-wireless-3.3-rc1-2/drivers/net/wireless/rt2x00/rt2x00pci.o
CC [M] /home/alfonso/wifi/compat-wireless-3.3-rc1-2/drivers/net/wireless/rt2x00/rt2x00usb.o
CC [M] /home/alfonso/wifi/compat-wireless-3.3-rc1-2/drivers/net/wireless/rt2x00/rt2800lib.o
CC [M] /home/alfonso/wifi/compat-wireless-3.3-rc1-2/drivers/net/wireless/rt2x00/rt2400pci.o
CC [M] /home/alfonso/wifi/compat-wireless-3.3-rc1-2/drivers/net/wireless/rt2x00/rt2500pci.o
CC [M] /home/alfonso/wifi/compat-wireless-3.3-rc1-2/drivers/net/wireless/rt2x00/rt61pci.o
CC [M] /home/alfonso/wifi/compat-wireless-3.3-rc1-2/drivers/net/wireless/rt2x00/rt2800pci.o
CC [M] /home/alfonso/wifi/compat-wireless-3.3-rc1-2/drivers/net/wireless/rt2x00/rt2500usb.o
CC [M] /home/alfonso/wifi/compat-wireless-3.3-rc1-2/drivers/net/wireless/rt2x00/rt73usb.o
CC [M] /home/alfonso/wifi/compat-wireless-3.3-rc1-2/drivers/net/wireless/rt2x00/rt2800usb.o
LD /home/alfonso/wifi/compat-wireless-3.3-rc1-2/net/mac80211/built-in.o
CC [M] /home/alfonso/wifi/compat-wireless-3.3-rc1-2/net/mac80211/main.o
CC [M] /home/alfonso/wifi/compat-wireless-3.3-rc1-2/net/mac80211/status.o
CC [M] /home/alfonso/wifi/compat-wireless-3.3-rc1-2/net/mac80211/sta_info.o
CC [M] /home/alfonso/wifi/compat-wireless-3.3-rc1-2/net/mac80211/wep.o
CC [M] /home/alfonso/wifi/compat-wireless-3.3-rc1-2/net/mac80211/wpa.o
CC [M] /home/alfonso/wifi/compat-wireless-3.3-rc1-2/net/mac80211/scan.o
CC [M] /home/alfonso/wifi/compat-wireless-3.3-rc1-2/net/mac80211/offchannel.o
CC [M] /home/alfonso/wifi/compat-wireless-3.3-rc1-2/net/mac80211/ht.o
CC [M] /home/alfonso/wifi/compat-wireless-3.3-rc1-2/net/mac80211/agg-tx.o
CC [M] /home/alfonso/wifi/compat-wireless-3.3-rc1-2/net/mac80211/agg-rx.o
CC [M] /home/alfonso/wifi/compat-wireless-3.3-rc1-2/net/mac80211/ibss.o
CC [M] /home/alfonso/wifi/compat-wireless-3.3-rc1-2/net/mac80211/mlme.o
CC [M] /home/alfonso/wifi/compat-wireless-3.3-rc1-2/net/mac80211/work.o
CC [M] /home/alfonso/wifi/compat-wireless-3.3-rc1-2/net/mac80211/iface.o
CC [M] /home/alfonso/wifi/compat-wireless-3.3-rc1-2/net/mac80211/rate.o
CC [M] /home/alfonso/wifi/compat-wireless-3.3-rc1-2/net/mac80211/michael.o
CC [M] /home/alfonso/wifi/compat-wireless-3.3-rc1-2/net/mac80211/tkip.o
CC [M] /home/alfonso/wifi/compat-wireless-3.3-rc1-2/net/mac80211/aes_ccm.o
CC [M] /home/alfonso/wifi/compat-wireless-3.3-rc1-2/net/mac80211/aes_cmac.o
CC [M] /home/alfonso/wifi/compat-wireless-3.3-rc1-2/net/mac80211/cfg.o
CC [M] /home/alfonso/wifi/compat-wireless-3.3-rc1-2/net/mac80211/rx.o
CC [M] /home/alfonso/wifi/compat-wireless-3.3-rc1-2/net/mac80211/spectmgmt.o
CC [M] /home/alfonso/wifi/compat-wireless-3.3-rc1-2/net/mac80211/tx.o
CC [M] /home/alfonso/wifi/compat-wireless-3.3-rc1-2/net/mac80211/key.o
CC [M] /home/alfonso/wifi/compat-wireless-3.3-rc1-2/net/mac80211/util.o
CC [M] /home/alfonso/wifi/compat-wireless-3.3-rc1-2/net/mac80211/wme.o
CC [M] /home/alfonso/wifi/compat-wireless-3.3-rc1-2/net/mac80211/event.o
CC [M] /home/alfonso/wifi/compat-wireless-3.3-rc1-2/net/mac80211/chan.o
CC [M] /home/alfonso/wifi/compat-wireless-3.3-rc1-2/net/mac80211/led.o
CC [M] /home/alfonso/wifi/compat-wireless-3.3-rc1-2/net/mac80211/debugfs.o
CC [M] /home/alfonso/wifi/compat-wireless-3.3-rc1-2/net/mac80211/debugfs_sta.o
CC [M] /home/alfonso/wifi/compat-wireless-3.3-rc1-2/net/mac80211/debugfs_netdev.o
CC [M] /home/alfonso/wifi/compat-wireless-3.3-rc1-2/net/mac80211/debugfs_key.o
CC [M] /home/alfonso/wifi/compat-wireless-3.3-rc1-2/net/mac80211/mesh.o
CC [M] /home/alfonso/wifi/compat-wireless-3.3-rc1-2/net/mac80211/mesh_pathtbl.o
CC [M] /home/alfonso/wifi/compat-wireless-3.3-rc1-2/net/mac80211/mesh_plink.o
CC [M] /home/alfonso/wifi/compat-wireless-3.3-rc1-2/net/mac80211/mesh_hwmp.o
CC [M] /home/alfonso/wifi/compat-wireless-3.3-rc1-2/net/mac80211/pm.o
CC [M] /home/alfonso/wifi/compat-wireless-3.3-rc1-2/net/mac80211/driver-trace.o
CC [M] /home/alfonso/wifi/compat-wireless-3.3-rc1-2/net/mac80211/rc80211_pid_algo.o
CC [M] /home/alfonso/wifi/compat-wireless-3.3-rc1-2/net/mac80211/rc80211_pid_debugfs.o
CC [M] /home/alfonso/wifi/compat-wireless-3.3-rc1-2/net/mac80211/rc80211_minstrel.o
CC [M] /home/alfonso/wifi/compat-wireless-3.3-rc1-2/net/mac80211/rc80211_minstrel_debugfs.o
CC [M] /home/alfonso/wifi/compat-wireless-3.3-rc1-2/net/mac80211/rc80211_minstrel_ht.o
CC [M] /home/alfonso/wifi/compat-wireless-3.3-rc1-2/net/mac80211/rc80211_minstrel_ht_debugfs.o
LD [M] /home/alfonso/wifi/compat-wireless-3.3-rc1-2/net/mac80211/mac80211.o
LD /home/alfonso/wifi/compat-wireless-3.3-rc1-2/net/rfkill/built-in.o
CC [M] /home/alfonso/wifi/compat-wireless-3.3-rc1-2/net/rfkill/rfkill-regulator.o
LD /home/alfonso/wifi/compat-wireless-3.3-rc1-2/net/wireless/built-in.o
CC [M] /home/alfonso/wifi/compat-wireless-3.3-rc1-2/net/wireless/core.o
/home/alfonso/wifi/compat-wireless-3.3-rc1-2/net/wireless/core.c:7:0: warning: "pr_fmt" redefined [enabled by default]
include/linux/printk.h:152:0: note: this is the location of the previous definition
/home/alfonso/wifi/compat-wireless-3.3-rc1-2/net/wireless/core.c:7:0: warning: "pr_fmt" redefined [enabled by default]
include/linux/printk.h:152:0: note: this is the location of the previous definition
CC [M] /home/alfonso/wifi/compat-wireless-3.3-rc1-2/net/wireless/sysfs.o
CC [M] /home/alfonso/wifi/compat-wireless-3.3-rc1-2/net/wireless/radiotap.o
CC [M] /home/alfonso/wifi/compat-wireless-3.3-rc1-2/net/wireless/util.o
CC [M] /home/alfonso/wifi/compat-wireless-3.3-rc1-2/net/wireless/reg.o
/home/alfonso/wifi/compat-wireless-3.3-rc1-2/net/wireless/reg.c:45:0: warning: "pr_fmt" redefined [enabled by default]
include/linux/printk.h:152:0: note: this is the location of the previous definition
/home/alfonso/wifi/compat-wireless-3.3-rc1-2/net/wireless/reg.c:45:0: warning: "pr_fmt" redefined [enabled by default]
include/linux/printk.h:152:0: note: this is the location of the previous definition
CC [M] /home/alfonso/wifi/compat-wireless-3.3-rc1-2/net/wireless/scan.o
CC [M] /home/alfonso/wifi/compat-wireless-3.3-rc1-2/net/wireless/nl80211.o
CC [M] /home/alfonso/wifi/compat-wireless-3.3-rc1-2/net/wireless/mlme.o
CC [M] /home/alfonso/wifi/compat-wireless-3.3-rc1-2/net/wireless/ibss.o
CC [M] /home/alfonso/wifi/compat-wireless-3.3-rc1-2/net/wireless/sme.o
CC [M] /home/alfonso/wifi/compat-wireless-3.3-rc1-2/net/wireless/chan.o
CC [M] /home/alfonso/wifi/compat-wireless-3.3-rc1-2/net/wireless/ethtool.o
CC [M] /home/alfonso/wifi/compat-wireless-3.3-rc1-2/net/wireless/mesh.o
CC [M] /home/alfonso/wifi/compat-wireless-3.3-rc1-2/net/wireless/debugfs.o
CC [M] /home/alfonso/wifi/compat-wireless-3.3-rc1-2/net/wireless/wext-compat.o
CC [M] /home/alfonso/wifi/compat-wireless-3.3-rc1-2/net/wireless/wext-sme.o
LD [M] /home/alfonso/wifi/compat-wireless-3.3-rc1-2/net/wireless/cfg80211.o
LD /home/alfonso/wifi/compat-wireless-3.3-rc1-2/built-in.o
Building modules, stage 2.
MODPOST 16 modules
CC /home/alfonso/wifi/compat-wireless-3.3-rc1-2/compat/compat.mod.o
LD [M] /home/alfonso/wifi/compat-wireless-3.3-rc1-2/compat/compat.ko
CC /home/alfonso/wifi/compat-wireless-3.3-rc1-2/drivers/misc/eeprom/eeprom_93cx6.mod.o
LD [M] /home/alfonso/wifi/compat-wireless-3.3-rc1-2/drivers/misc/eeprom/eeprom_93cx6.ko
CC /home/alfonso/wifi/compat-wireless-3.3-rc1-2/drivers/net/wireless/rt2x00/rt2400pci.mod.o
LD [M] /home/alfonso/wifi/compat-wireless-3.3-rc1-2/drivers/net/wireless/rt2x00/rt2400pci.ko
CC /home/alfonso/wifi/compat-wireless-3.3-rc1-2/drivers/net/wireless/rt2x00/rt2500pci.mod.o
LD [M] /home/alfonso/wifi/compat-wireless-3.3-rc1-2/drivers/net/wireless/rt2x00/rt2500pci.ko
CC /home/alfonso/wifi/compat-wireless-3.3-rc1-2/drivers/net/wireless/rt2x00/rt2500usb.mod.o
LD [M] /home/alfonso/wifi/compat-wireless-3.3-rc1-2/drivers/net/wireless/rt2x00/rt2500usb.ko
CC /home/alfonso/wifi/compat-wireless-3.3-rc1-2/drivers/net/wireless/rt2x00/rt2800lib.mod.o
LD [M] /home/alfonso/wifi/compat-wireless-3.3-rc1-2/drivers/net/wireless/rt2x00/rt2800lib.ko
CC /home/alfonso/wifi/compat-wireless-3.3-rc1-2/drivers/net/wireless/rt2x00/rt2800pci.mod.o
LD [M] /home/alfonso/wifi/compat-wireless-3.3-rc1-2/drivers/net/wireless/rt2x00/rt2800pci.ko
CC /home/alfonso/wifi/compat-wireless-3.3-rc1-2/drivers/net/wireless/rt2x00/rt2800usb.mod.o
LD [M] /home/alfonso/wifi/compat-wireless-3.3-rc1-2/drivers/net/wireless/rt2x00/rt2800usb.ko
CC /home/alfonso/wifi/compat-wireless-3.3-rc1-2/drivers/net/wireless/rt2x00/rt2x00lib.mod.o
LD [M] /home/alfonso/wifi/compat-wireless-3.3-rc1-2/drivers/net/wireless/rt2x00/rt2x00lib.ko
CC /home/alfonso/wifi/compat-wireless-3.3-rc1-2/drivers/net/wireless/rt2x00/rt2x00pci.mod.o
LD [M] /home/alfonso/wifi/compat-wireless-3.3-rc1-2/drivers/net/wireless/rt2x00/rt2x00pci.ko
CC /home/alfonso/wifi/compat-wireless-3.3-rc1-2/drivers/net/wireless/rt2x00/rt2x00usb.mod.o
LD [M] /home/alfonso/wifi/compat-wireless-3.3-rc1-2/drivers/net/wireless/rt2x00/rt2x00usb.ko
CC /home/alfonso/wifi/compat-wireless-3.3-rc1-2/drivers/net/wireless/rt2x00/rt61pci.mod.o
LD [M] /home/alfonso/wifi/compat-wireless-3.3-rc1-2/drivers/net/wireless/rt2x00/rt61pci.ko
CC /home/alfonso/wifi/compat-wireless-3.3-rc1-2/drivers/net/wireless/rt2x00/rt73usb.mod.o
LD [M] /home/alfonso/wifi/compat-wireless-3.3-rc1-2/drivers/net/wireless/rt2x00/rt73usb.ko
CC /home/alfonso/wifi/compat-wireless-3.3-rc1-2/net/mac80211/mac80211.mod.o
LD [M] /home/alfonso/wifi/compat-wireless-3.3-rc1-2/net/mac80211/mac80211.ko
CC /home/alfonso/wifi/compat-wireless-3.3-rc1-2/net/rfkill/rfkill-regulator.mod.o
LD [M] /home/alfonso/wifi/compat-wireless-3.3-rc1-2/net/rfkill/rfkill-regulator.ko
CC /home/alfonso/wifi/compat-wireless-3.3-rc1-2/net/wireless/cfg80211.mod.o
LD [M] /home/alfonso/wifi/compat-wireless-3.3-rc1-2/net/wireless/cfg80211.ko
make[1]: Leaving directory `/usr/src/linux-headers-3.0.0-15-generic-pae'
[/codebo8a01ph]

but I repeat my earlier point, I have doubts that having just compiled the kernel, compat-wireless is the answer to my problem...

thank you for your ideas anyway! any other?

alfonso78

31-01-2012 23:22:51


If it were me, I would at least try the latest stable compat-wireless-3.3-rc1-2[/url1ylatfxc]
[/quote1ylatfxc]

and very sadly, you were right! I installed compat-wireless-3.3-rc1-2 on the kernel 3.0.0 and the download is now as fast over wireless as over wired.

[b1ylatfxc][size=1501ylatfxc][color=#FF00001ylatfxc]So how can I compile compat-wireless per kernel 3.2.0??[/color1ylatfxc][/size1ylatfxc][/b1ylatfxc]

alfonso78

31-01-2012 23:36:23

- how come the bleeding edge version is 2.6 and the stable is 3.3?
[/quote2qs4c8hn]

so, to test all roads, I downloaded anyway the bleeding edge and I get the same error when I try to compile in kernel 3.2.0

[code2qs4c8hn]compat-wireless-2012-01-26$ make
./scripts/gen-compat-autoconf.sh config.mk > include/linux/compat_autoconf.h
make -C /lib/modules/3.2.0-interlaced2+/build M=/home/alfonso/wifi/compat-wireless-2012-01-26 modules
make[1]: Entering directory `/home/alfonso/tests/kernel/linux_keithp'
LD /home/alfonso/wifi/compat-wireless-2012-01-26/compat/built-in.o
CC [M] /home/alfonso/wifi/compat-wireless-2012-01-26/compat/main.o
In file included from include/net/net_namespace.h:13:0,
from /home/alfonso/wifi/compat-wireless-2012-01-26/include/net/net_namespace.h:7,
from include/linux/netdevice.h:49,
from /home/alfonso/wifi/compat-wireless-2012-01-26/include/linux/compat-2.6.29.h:5,
from /home/alfonso/wifi/compat-wireless-2012-01-26/include/linux/compat-2.6.h:24,
from <command-line>:0:
include/net/netns/mib.h:15:5: warning: "IS_ENABLED" is not defined [-Wundef]
include/net/netns/mib.h:15:15: error: missing binary operator before token "("
In file included from include/net/net_namespace.h:23:0,
from /home/alfonso/wifi/compat-wireless-2012-01-26/include/net/net_namespace.h:7,
from include/linux/netdevice.h:49,
from /home/alfonso/wifi/compat-wireless-2012-01-26/include/linux/compat-2.6.29.h:5,
from /home/alfonso/wifi/compat-wireless-2012-01-26/include/linux/compat-2.6.h:24,
from <command-line>:0:
include/net/netns/xfrm.h:59:5: warning: "IS_ENABLED" is not defined [-Wundef]
include/net/netns/xfrm.h:59:15: error: missing binary operator before token "("
In file included from /home/alfonso/wifi/compat-wireless-2012-01-26/include/net/net_namespace.h:7:0,
from include/linux/netdevice.h:49,
from /home/alfonso/wifi/compat-wireless-2012-01-26/include/linux/compat-2.6.29.h:5,
from /home/alfonso/wifi/compat-wireless-2012-01-26/include/linux/compat-2.6.h:24,
from <command-line>:0:
include/net/net_namespace.h:80:5: warning: "IS_ENABLED" is not defined [-Wundef]
include/net/net_namespace.h:80:15: error: missing binary operator before token "("
In file included from include/linux/netdevice.h:54:0,
from /home/alfonso/wifi/compat-wireless-2012-01-26/include/linux/compat-2.6.29.h:5,
from /home/alfonso/wifi/compat-wireless-2012-01-26/include/linux/compat-2.6.h:24,
from <command-line>:0:
include/net/netprio_cgroup.h: In function ātask_netprio_stateā:
include/net/netprio_cgroup.h:44:5: warning: "IS_ENABLED" is not defined [-Wundef]
include/net/netprio_cgroup.h:44:15: error: missing binary operator before token "("
In file included from /home/alfonso/wifi/compat-wireless-2012-01-26/include/linux/compat-2.6.29.h:5:0,
from /home/alfonso/wifi/compat-wireless-2012-01-26/include/linux/compat-2.6.h:24,
from <command-line>:0:
include/linux/netdevice.h: At top level:
include/linux/netdevice.h:147:39: error: missing binary operator before token "("
include/linux/netdevice.h:153:7: warning: "IS_ENABLED" is not defined [-Wundef]
include/linux/netdevice.h:153:17: error: missing binary operator before token "("
include/linux/netdevice.h:159:6: warning: "IS_ENABLED" is not defined [-Wundef]
include/linux/netdevice.h:159:16: error: missing binary operator before token "("
include/linux/netdevice.h:964:5: warning: "IS_ENABLED" is not defined [-Wundef]
include/linux/netdevice.h:964:15: error: missing binary operator before token "("
include/linux/netdevice.h:981:5: warning: "IS_ENABLED" is not defined [-Wundef]
include/linux/netdevice.h:981:15: error: missing binary operator before token "("
include/linux/netdevice.h:1123:5: warning: "IS_ENABLED" is not defined [-Wundef]
include/linux/netdevice.h:1123:15: error: missing binary operator before token "("
include/linux/netdevice.h:1126:5: warning: "IS_ENABLED" is not defined [-Wundef]
include/linux/netdevice.h:1126:15: error: missing binary operator before token "("
include/linux/netdevice.h:1289:5: warning: "IS_ENABLED" is not defined [-Wundef]
include/linux/netdevice.h:1289:15: error: missing binary operator before token "("
include/linux/netdevice.h:1293:5: warning: "IS_ENABLED" is not defined [-Wundef]
include/linux/netdevice.h:1293:15: error: missing binary operator before token "("
include/linux/netdevice.h: In function ānetdev_uses_dsa_tagsā:
include/linux/netdevice.h:1397:9: error: āstruct net_deviceā has no member named ādsa_ptrā
include/linux/netdevice.h:1398:31: error: āstruct net_deviceā has no member named ādsa_ptrā
include/linux/netdevice.h: In function ānetdev_uses_trailer_tagsā:
include/linux/netdevice.h:1416:9: error: āstruct net_deviceā has no member named ādsa_ptrā
include/linux/netdevice.h:1417:35: error: āstruct net_deviceā has no member named ādsa_ptrā
In file included from /home/alfonso/wifi/compat-wireless-2012-01-26/include/linux/compat-2.6.h:38:0,
from <command-line>:0:
/home/alfonso/wifi/compat-wireless-2012-01-26/include/linux/compat-3.3.h: At top level:
/home/alfonso/wifi/compat-wireless-2012-01-26/include/linux/compat-3.3.h:28:20: error: static declaration of āskb_complete_wifi_ackā follows non-static declaration
include/linux/skbuff.h:2260:6: note: previous declaration of āskb_complete_wifi_ackā was here
/home/alfonso/wifi/compat-wireless-2012-01-26/include/linux/compat-3.3.h:34:13: error: conflicting types for ānetdev_features_tā
include/linux/netdev_features.h:15:13: note: previous declaration of ānetdev_features_tā was here
make[3]: *** [/home/alfonso/wifi/compat-wireless-2012-01-26/compat/main.o] Error 1
make[2]: *** [/home/alfonso/wifi/compat-wireless-2012-01-26/compat] Error 2
make[1]: *** [_module_/home/alfonso/wifi/compat-wireless-2012-01-26] Error 2
make[1]: Leaving directory `/home/alfonso/tests/kernel/linux_keithp'
make: *** [modules] Error 2
[/code2qs4c8hn]

jawilljr

01-02-2012 00:45:28

Just to let you know, I am not a developer.. I am just a Ralink user. All of my Ralink devices are USB (RT2800USB) dongles.

[quote1q006k41]I put what you say it's the latest firmware in /lib/firmware/ . Can you please explain how can you be sure that is the latest version?[/quote1q006k41]

Look at the commit link I gave you...If you want you can ask the devs here[/url1q006k41]

Now about compat-wireless, at least the way I understand it is compat-wireless-2.6.tar.bz2 is the latest 'bleeding edge" version of linux wireless. Whereas the latest stable version of compat-wireless (compat-wireless-3.3-rc1-2) is 99% the same as the same kernel version.

Of course the latest bleeding edge might have some patches that are not in the stable version. In other words the 2.6 version and the stable are almost the same thing.

Just to let you know I have the stable version (compat-wireless-3.3-rc1-2) installed on my Lucid box running kernel version 2.6.32-38-generic. And it works fine using the firmware version I gave you.

Now how to get either version of compat-wireless to work in your customised kernel to compile is way above my pay grade...sorry.

[quote1q006k41]and very sadly, you were right! I installed compat-wireless-3.3-rc1-2 on the kernel 3.0.0 and the download is now as fast over wireless as over wired.[/quote1q006k41]

At least you know it will work...once you find the right parameters to compile for kernel 3.2.

Jerry

alfonso78

01-02-2012 00:55:27



[quote212eywiu]and very sadly, you were right! I installed compat-wireless-3.3-rc1-2 on the kernel 3.0.0 and the download is now as fast over wireless as over wired.[/quote212eywiu]

At least you know it will work...once you find the right parameters to compile for kernel 3.2.

Jerry[/quote212eywiu]

you are right! And I'm very grateful to you for putting me on the right track. It's only a matter of time now
http//marc.info/?t=132805509700002&r=1&w=2

thank you!
alfonso

alfonso78

02-02-2012 02:00:10

I was too quick to judge...

In fact maybe I did a big mess, but now even if I boot on my kernel 3.0.0 and recompile both compat-wireless-3.3-rc1-2 or the bleeding edge version (compat-wireless-2012-01-26) I can't get as fast as wired anymore. I'm stuck at 200-300KB/sec

I did see it once going fast, but to be honest I saw a fast speed also once with the original drivers (before I start playing with compat-wireless) but it was random, not due to some commands or not drivers.

So I guess I didn't test long enough.

Long story short, I feel I'm back at square one. I have a decent, stable connection, but really slow.