From: Larry Finger <Larry.Finger@lwfinger.net>
To: Hendrik-Jan Heins <hjheins@gmail.com>
Cc: linux-wireless@vger.kernel.org
Subject: Re: Forcing Realtek based usb device into wireless G mode
Date: Wed, 13 Feb 2013 19:51:50 -0600 [thread overview]
Message-ID: <511C4336.6060508@lwfinger.net> (raw)
In-Reply-To: <CAAU0D9d-uESonqoz11Dpd9K7gyRXf9ASsKtX3xtXZHYyO_Jwig@mail.gmail.com>
On 02/13/2013 06:06 PM, Hendrik-Jan Heins wrote:
> Dear list,
>
> Currently I have an issue with a USB wireless device that does not
> work in n-mode. It does however work in g-mode.
> So far I have found out that setting my access point to g-mode will
> force the whole network into g-mode, and thus the card works.
> However, I would like to keep my network running in n-mode and just
> force the card into g-mode.
>
> I tried: "iwconfig wlan1 rate 54M"
> but this does not work, according to iwconfig the card stays on 300M.
>
> Does anyone know how I can force this either in userland or maybe by
> modifying the driver source?
>
> The device:
> USB ID 0bda:8172 Realtek Semiconductor Corp. RTL8191SU 802.11n WLAN Adapter
>
> the driver in kernel 2.6.32:
> r8192s_usb
> though I would also like to use this device on a kernel 3.0.63, and I
> am not sure the same driver is in use there.
That is not the best driver for your device. You should be using driver r8712u,
which has been in the staging tree of the kernel since 2.6.37. It works with
802.11n. Using my standard tests with netperf, I get the following:
finger@larrylap:~/wireless-testing-new> ~/netperf_stats.pl sonylap 3
Pass 1
TCP_MAERTS Test: 56.08 53.95 59.70 59.05 56.02 66.14 59.44 64.85 56.92 65.15
RX Results: max 66.14, min 53.95. Mean 59.73(4.07)
TCP_STREAM Test: 35.84 38.22 37.47 38.14 38.66 38.89 37.27 39.74 38.08 37.43
TX Results: max 39.74, min 35.84. Mean 37.97(1.01)
Each of those speeds is in Mbps, and comes from a 3 second test against my
netperf server, which runs on a host that is connected by a 100 Mbps wire to my
AP - a Netgear WNDR3400V2 running standard firmware. The MAERTS is the RX test -
STREAM is TX.
Note: If these tests had been run at 802.11g rates, the maximum would be less
than half of the maximum rate on the link, or 27 Mbps for a 54 Mbps link.
As I am not familiar with the code in the driver you are using, I have no idea
what you might do to lock out HT mode; however, when you switch to the correct
driver, you should be able to operate under 802.11n.
Larry
prev parent reply other threads:[~2013-02-14 1:51 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CAAU0D9f54W7L=kwTYEC4o8n4nr5hnSSOSNzQxEBDWLkPUFM6mQ@mail.gmail.com>
2013-02-14 0:06 ` Forcing Realtek based usb device into wireless G mode Hendrik-Jan Heins
2013-02-14 1:51 ` Larry Finger [this message]
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=511C4336.6060508@lwfinger.net \
--to=larry.finger@lwfinger.net \
--cc=hjheins@gmail.com \
--cc=linux-wireless@vger.kernel.org \
/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).