Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Help]: High latency with Mediatek mt7921 and Model: COMFAST CF-952AX #501

Open
2 tasks done
HuaZ opened this issue Sep 5, 2024 · 6 comments
Open
2 tasks done

[Help]: High latency with Mediatek mt7921 and Model: COMFAST CF-952AX #501

HuaZ opened this issue Sep 5, 2024 · 6 comments

Comments

@HuaZ
Copy link

HuaZ commented Sep 5, 2024

Checklist

  • I acknowledge that support is provided on a best-effort basis.
  • I acknowledge that the authors and contributors to this repository cannot be held responsible for the results of my use of any information contained in or linked from this repository.

uname

Linux raspberrypi 5.19.17-v7l #1 SMP Wed Sep 20 12:06:15 CST 2023 armv7l GNU/Linux

lsusb

Bus 001 Device 003: ID 3574:6211

rfkill

0: phy0: Wireless LAN Soft blocked: no Hard blocked: no

dkms

null

iw

phy#0
        Interface wlan0
                ifindex 3
                wdev 0x1
                addr e0:e1:a9:36:26:df
                type managed
                channel 161 (5805 MHz), width: 80 MHz, center1: 5775 MHz
                txpower 3.00 dBm
                multicast TXQ:
                        qsz-byt qsz-pkt flows   drops   marks   overlmt hashcol tx-bytes        tx-packets
                        0       0       0       0       0       0       0       0               0

What happened?

I used COMFAST Model:CF-952AX with MT7921u driver on the Raspberry Pi 4B

ethtool -i wlan0
driver: mt7921u
version: 5.19.17-v7l
firmware-version: ____010000-20240826151030
expansion-rom-version:
bus-info: 1-1.3:1.0
supports-statistics: yes
supports-test: no
supports-eeprom-access: no
supports-register-dump: no
supports-priv-flags: no
modinfo mt7921u
filename:       /lib/modules/5.19.17-v7l/kernel/drivers/net/wireless/mediatek/mt76/mt7921/mt7921u.ko.xz
license:        Dual BSD/GPL
author:         Lorenzo Bianconi <lorenzo@kernel.org>
firmware:       mediatek/WIFI_MT7961_patch_mcu_1_2_hdr.bin
firmware:       mediatek/WIFI_RAM_CODE_MT7961_1.bin
srcversion:     78A8A76A4A305A2938754ED
alias:          usb:v0E8Dp7961d*dc*dsc*dp*icFFiscFFipFFin*
depends:        mt76-connac-lib,mt76-usb,mt7921-common,mt76
intree:         Y
name:           mt7921u
vermagic:       5.19.17-v7l SMP mod_unload modversions ARMv7 p2v8
sudo dmesg |grep 'mt'
[    7.897372] usbcore: registered new interface driver mt7921u
[    8.306440] mt7921u 1-1.3:1.0: HW/SW Version: 0x8a108a10, Build Time: 20240826150948a
[    8.594406] mt7921u 1-1.3:1.0: WM Firmware Version: ____010000, Build Time: 20240826151030

which works, but with really high latencies。 I have also tried some older firmware versions, and the situation is the same.

pi@raspberrypi:~ $ ping 192.168.50.1
PING 192.168.50.1 (192.168.50.1) 56(84) bytes of data.
64 bytes from 192.168.50.1: icmp_seq=1 ttl=64 time=2.50 ms
64 bytes from 192.168.50.1: icmp_seq=2 ttl=64 time=328 ms
64 bytes from 192.168.50.1: icmp_seq=3 ttl=64 time=2.43 ms
64 bytes from 192.168.50.1: icmp_seq=4 ttl=64 time=375 ms
64 bytes from 192.168.50.1: icmp_seq=5 ttl=64 time=5.05 ms
64 bytes from 192.168.50.1: icmp_seq=6 ttl=64 time=319 ms
64 bytes from 192.168.50.1: icmp_seq=7 ttl=64 time=2.39 ms
64 bytes from 192.168.50.1: icmp_seq=8 ttl=64 time=365 ms
64 bytes from 192.168.50.1: icmp_seq=9 ttl=64 time=2.94 ms
64 bytes from 192.168.50.1: icmp_seq=10 ttl=64 time=311 ms
64 bytes from 192.168.50.1: icmp_seq=11 ttl=64 time=2.05 ms
64 bytes from 192.168.50.1: icmp_seq=12 ttl=64 time=357 ms

Any suggestions? thanks a lot.

@gdluca
Copy link

gdluca commented Sep 5, 2024

What about a different channel? Is it the same with 40Mhz?

@morrownr
Copy link
Owner

morrownr commented Sep 5, 2024

Hi @HuaZ

Some questions:

What numbers are you seeing for latency and how are you testing latency?

You do realize that you are using the most modern version of the firmware with a version of the driver that is basically the very oldest version?

What RasPi hardware are you using?

I see you are using a 32 bit version of the RasPi OS (Raspian at that time possibly) which may indicate a very old RasPi device. I have seen cases with very modern usb wifi adapters where the RasPi simply could not keep up with the adapter... CPU limitation.

@HuaZ
Copy link
Author

HuaZ commented Sep 6, 2024

What about a different channel? Is it the same with 40Mhz?

thanks, "192.168.50.1 is the gateway IP address which base on the Route Netgear RX80.

@HuaZ
Copy link
Author

HuaZ commented Sep 6, 2024

Hi @morrownr thanks

Hi @HuaZ

Some questions:

What numbers are you seeing for latency and how are you testing latency?

To ping the gateway ip address 192.168.50.1, the below is the result , one is 2.5ms, the next is 328 ms.
I use my laptop(windows11 and intel AX211) to ping the same IP address. the times are <3ms.

pi@raspberrypi:~ $ ping 192.168.50.1
PING 192.168.50.1 (192.168.50.1) 56(84) bytes of data.
64 bytes from 192.168.50.1: icmp_seq=1 ttl=64 time=2.50 ms
64 bytes from 192.168.50.1: icmp_seq=2 ttl=64 time=328 ms
64 bytes from 192.168.50.1: icmp_seq=3 ttl=64 time=2.43 ms
64 bytes from 192.168.50.1: icmp_seq=4 ttl=64 time=375 ms
64 bytes from 192.168.50.1: icmp_seq=5 ttl=64 time=5.05 ms
64 bytes from 192.168.50.1: icmp_seq=6 ttl=64 time=319 ms
64 bytes from 192.168.50.1: icmp_seq=7 ttl=64 time=2.39 ms
64 bytes from 192.168.50.1: icmp_seq=8 ttl=64 time=365 ms
64 bytes from 192.168.50.1: icmp_seq=9 ttl=64 time=2.94 ms
64 bytes from 192.168.50.1: icmp_seq=10 ttl=64 time=311 ms
64 bytes from 192.168.50.1: icmp_seq=11 ttl=64 time=2.05 ms
64 bytes from 192.168.50.1: icmp_seq=12 ttl=64 time=357 ms

You do realize that you are using the most modern version of the firmware with a version of the driver that is basically the very oldest version?

Yes, I followed the solution for a similar issue as described in the following link to upgrade the firmware, but it doesn't seem to have achieved the desired effect.
https://forums.debian.net/viewtopic.php?t=153490

What RasPi hardware are you using?
RasPI4 model B

I see you are using a 32 bit version of the RasPi OS (Raspian at that time possibly) which may indicate a very old RasPi device. I have seen cases with very modern usb wifi adapters where the RasPi simply could not keep up with the adapter... CPU limitation.

yes, it is armhf version.
dpkg --print-architecture
armhf

I also tried to disable the power-saving mode of the chip, but it doesn't seem to have any effect.
Are there any other troubleshooting methods you can suggest, or any recommended versions of the driver and firmware?
thanks

@HuaZ
Copy link
Author

HuaZ commented Sep 19, 2024

Update:
Although the ping time is unstable, there doesn't seem to be any issues with the actual traffic.

@morrownr
Copy link
Owner

@HuaZ

If this becomes a problem, check back in with a report. Keep in mind that various things beyond the control of the driver can cause ping issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants