From: Ivo van Doorn <ivdoorn@gmail.com>
To: "Thomas Bächler" <thomas@archlinux.org>
Cc: Johannes Berg <johannes@sipsolutions.net>,
linux-wireless@vger.kernel.org,
"John W. Linville" <linville@tuxdriver.com>,
Vladimir Koutny <vlado@ksp.sk>
Subject: Re: RaLink RT2500 802.11g Cardbus/mini-PCI
Date: Mon, 14 Apr 2008 13:39:45 +0200 [thread overview]
Message-ID: <200804141339.45645.IvDoorn@gmail.com> (raw)
In-Reply-To: <4801C4FF.5060606@archlinux.org>
On Sunday 13 April 2008, Thomas B=C3=A4chler wrote:
> Johannes Berg schrieb:
> >>> I compiled half a dozen kernels and now figured it out. This is t=
he=20
> >>> patch that causes rt2500pci to be slow. If I revert it, it is fas=
t again:
> >>> http://git.kernel.org/?p=3Dlinux/kernel/git/torvalds/linux-2.6.gi=
t;a=3Dcommitdiff;h=3Dd43c7b37ad787173d08683f05eadeea0398fefdf
> >=20
> >> That's odd. But that patch looks a bit fishy now that I look at it=
, care
> >> to try below change (manually, this isn't a patch)?
> >>
> >> johannes
> >>
> >> bool use_protection =3D (erp_value & WLAN_ERP_USE_PROTECTI=
ON) !=3D 0;
> >> - bool use_short_preamble =3D (erp_value & WLAN_ERP_BARKER_P=
REAMBLE) =3D=3D 0;
> >> =EF=BB=BF=EF=BB=BF+ bool use_short_preamble =3D (erp_value &=
WLAN_ERP_BARKER_PREAMBLE) !=3D 0;
> >> DECLARE_MAC_BUF(mac);
> >=20
> > No, wait, I'm confused, the original patch is correct. As far as I =
can
> > tell, the code there is correct. The bug in that code was actually
> > introduced by me based on the wrong thinking I just did again.
>=20
> I figured as much from the original commit message. So rt2500pci work=
s=20
> properly when the use_short_preamble has the wrong value, and breaks=20
> when it has the right one.
> By the way, 2.6.25-rc8 was the first time that rt2500pci was ever fas=
t=20
> enough to be usable at all for me, so the bug you introduced seemed t=
o=20
> be the fix for my speed problems (which is odd). My guess is that=20
> rt2500pci treats use_short_preamble wrong.
Could you test this with the below patch?
This enables short_preamble for all rt2x00 drivers regardless of what m=
ac80211 issues.
---
diff --git a/drivers/net/wireless/rt2x00/rt2x00config.c b/drivers/net/w=
ireless/rt2x00/rt2x00config.c
index a9930a0..1c24f5a 100644
--- a/drivers/net/wireless/rt2x00/rt2x00config.c
+++ b/drivers/net/wireless/rt2x00/rt2x00config.c
@@ -83,7 +83,7 @@ void rt2x00lib_config_erp(struct rt2x00_dev *rt2x00de=
v,
=20
memset(&erp, 0, sizeof(erp));
=20
- erp.short_preamble =3D bss_conf->use_short_preamble;
+ erp.short_preamble =3D 1;
erp.ack_timeout =3D PLCP + get_duration(ACK_SIZE, 10);
erp.ack_consume_time =3D SIFS + PLCP + get_duration(ACK_SIZE, 10);
=20
@@ -92,7 +92,7 @@ void rt2x00lib_config_erp(struct rt2x00_dev *rt2x00de=
v,
else
erp.ack_timeout +=3D DIFS;
=20
- if (bss_conf->use_short_preamble) {
+ if (1) {
erp.ack_timeout +=3D SHORT_PREAMBLE;
erp.ack_consume_time +=3D SHORT_PREAMBLE;
} else {
--
To unsubscribe from this list: send the line "unsubscribe linux-wireles=
s" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2008-04-14 11:37 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-31 21:41 RaLink RT2500 802.11g Cardbus/mini-PCI Felipe Maya
2008-03-31 22:10 ` Ivo van Doorn
2008-03-31 22:28 ` Felipe Maya
2008-04-01 8:51 ` Ivo Van Doorn
2008-04-01 22:11 ` TK
2008-04-02 11:19 ` Felipe Maya
2008-04-01 18:01 ` Thomas Bächler
2008-04-01 18:09 ` Ivo van Doorn
2008-04-02 9:13 ` Thomas Bächler
2008-04-02 10:21 ` Thomas Bächler
2008-04-02 17:32 ` Ivo van Doorn
2008-04-10 22:07 ` Thomas Bächler
2008-04-12 10:46 ` Ivo van Doorn
2008-04-12 17:54 ` Thomas Bächler
2008-04-13 7:41 ` Johannes Berg
2008-04-13 8:07 ` Johannes Berg
2008-04-13 8:31 ` Thomas Bächler
2008-04-13 10:11 ` Johannes Berg
2008-04-13 10:20 ` Thomas Bächler
[not found] ` <1ba2fa240804130936o21f08b50jd35658a495a66eb4@mail.gmail.com>
2008-04-13 17:42 ` Johannes Berg
2008-04-14 11:39 ` Ivo van Doorn [this message]
2008-04-14 17:37 ` Thomas Bächler
2008-04-14 17:47 ` Ivo van Doorn
[not found] <20080402001213.7b879a73@localhost>
[not found] ` <36899.201.36.161.238.1207134354.squirrel@mamao.cetuc.puc-rio.br>
2008-04-02 11:54 ` TK
2008-04-02 12:47 ` Ivo Van Doorn
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200804141339.45645.IvDoorn@gmail.com \
--to=ivdoorn@gmail.com \
--cc=johannes@sipsolutions.net \
--cc=linux-wireless@vger.kernel.org \
--cc=linville@tuxdriver.com \
--cc=thomas@archlinux.org \
--cc=vlado@ksp.sk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).