On Sun, Sep 08, 2024 at 02:03:15PM +0200, Stefan Sperling wrote: > On Sun, Sep 08, 2024 at 12:49:28PM +0100, Zé Loff wrote: > > FWIW, I have a couple of utrwn0 devices, and never managed to get > > average speeds above 500-600 Kbps out of any of them, even when on > > OFDM54 and signal strengths above -50dBm. > > > > urtwn0: MAC/BB RTL8188CUS, RF 6052 1T1R > > The reason for low speed on 8188CUS devices is a firmware limitation. > The firmware handles Tx speed selection and somehow does it poorly. > There is no way for the driver to override Tx speed selection. > This would need a firmware-side fix. > > > urtwn0: MAC/BB RTL8192EU, RF 6052 2T2R > > With this particular chip, the driver had a bug causing the device to > send all frames at 1 Mbit/s. This bug was fixed in March 2022: > https://github.com/openbsd/src/commit/b5162d813ce25a3984cf6cc9f58fcdb16b00f657 > > tcpbench before: > Conn: 1 Mbps: 0.808 Peak Mbps: 1.108 Avg Mbps: 0.808 > > tcpbench with fix: > Conn: 1 Mbps: 21.078 Peak Mbps: 21.078 Avg Mbps: 21.078 >
(First and foremost, I wasn't complaining. Considering what I paid for the 8188CUS, I'm surprised it actually works at all. And the 8192EU was pretty cheap too.) I tested things a bit more adequately, and I can confirm the 8192EU performs better that I originally stated (although still far from 21 Mbps). The values below were obtained with two different access points: - A re-purposed Thomson TG784n v3 router (Broadcom stuff, 802.11n 2x2), doing no routing or filtering, bridging ethernet and wireless. - A Futro S720 running 7.5-stable, with a Compex WLE200NX (Atheros AR982X) in host AP mode, veb between wireless and ethernet. Values are average/peak Mbps, over 20 seconds of tcpbench. Each test was preceded by a first run of tcpbench, to allow for the modulation (and data rate) to be adjusted between the interface and the AP. The Futro is closer that the Thomson, so comes in with a stronger signal. Interface Thomson Futro RTL8188CUS 0.616/1.768 0.793/1.117 RTL8192EU 0.528/0.823 8.224/10.890 I don't care about the values themselves, just their comparison. 8188CUS performs as expected (badly), so does the 8192EU with the Futro (more or less). The surprising thing is the poor performance of the 8192EU when connecting to the Thomson router. It doesn't get past DS1 mode 11g, even with -52 dBm. *shrug* Maybe someday I'll find the time to tweak the Thomson's config to see if it makes a difference. --