Closed Lahvuun closed 3 years ago
Please try the latest revision of OpenWrt master or 19.07. I've fixed a critical issue in hostapd.
Still happening with OpenWrt SNAPSHOT r12104-071a637276, unfortunately.
edit: if it matters, I followed this guide: https://openwrt.org/docs/guide-developer/quickstart-build-images
I'm seeing this bug with Netgear AC1200 (R6220) and OpenWrt 19.07.2 and also with a master snapshot from March 18 (132ff90f1d).
The wlan client is a Squeezebox radio (802.11g device). Luci reports that the TX rate for the client is stuck at 1 Mbps (this causes audio stuttering for some high bitrate audio streams (flac)).
Manually setting transfer rates, as suggested above, helps bump the client to a higher transfer rate. Specifically, running iw dev wlan0 set bitrates legacy-2.4 24 36 48 54
bumps the TX rate of the client to the new lowest bit rate, 24 Mbps.
FYI, I just tested a snapshot build from today (2020-08-29, 42d14ace3e) and the problem is still there.
this explains why I am having connection problems with all of my esp8266 and pi devices. I too get the 1 Mbit... never noticed before. I am on OpenWrt 19.07.4 r11208-ce6496d796 on a Netgear R6220 with MediaTek MT7603E 802.11bgn. I have added support for WPA3.
I've tested 21.02-rc3 and it looks like this has been fixed. My Squeezebox radio and an ESP32 device both have more dynamic data rates which increase if needed.
Indeed, I tried 21.02.0-rc4 and this seems to have been fixed. The pi zero is now getting ~16Mbit/s on speedtest, which I guess is reasonable considering the wifi congestion in my apartment building and how small the antennae is.
Would've been nice to know which commit did it, but oh well.
Thank you!
LuCI shows RX Rate / TX Rate as: 54.0 Mbit/s, 20MHz 6.0 Mbit/s, 20MHz
If I set
legacy_rates
to1
, TX Rate drops further down to 1.0 Mbit/s.Speedtest on my phone seems to verify this, I get ~4Mbps download without legacy rates, <1Mbps with. Upload is a little better at around 10-15Mbps.
Happens with both WMM on and off.
With
htmode 'HT20'
orhtmode 'HT40'
, the speeds are: 72.2 Mbit/s, 20MHz, MCS 7, Short GI 72.2 Mbit/s, 20MHz, MCS 7, Short GIBut only if the device connects in N mode. If it has trouble doing so and drops down to G (such as with my raspberry pi zero wireless), I still get legacy speeds.
Config:
Scan from the raspberry pi zero wireless:
With legacy rates:
I can still set different speeds through
iw dev wlan0 set bitrates legacy-2.4 24
and it works, LuCI lists the connections at 24Mbit/s, speedtest also does better. However, I can only set the rates marked by the asterisks (6, 12, 24 and 1, 2, 5.5, 11 with legacy rates), doing something likeiw dev wlan0 set bitrates legacy-2.4 54
doesn't seem to work and I getcommand failed: Invalid argument (-22)
Tested this with a snapshot:
As well as snapshot built from source:
With the patch that (I hope) gives me the latest driver commit: