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
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html