morrownr / USB-WiFi

USB WiFi Adapter Information for Linux
2.74k stars 179 forks source link

[Help]: Fenvi AX1800 slow on OpenWRT, Fast on Ubuntu. #462

Open austonpramodh opened 4 months ago

austonpramodh commented 4 months ago

Checklist

uname

Linux OpenWrt 5.15.150 #0 SMP Fri Mar 22 22:09:42 2024 mips GNU/Linux

lsusb

Bus 002 Device 003: ID 0e8d:7961 MediaTek Inc. Wireless_Device

rfkill

rfkill: not found

dkms

dkms: not found

iw

phy#3
    Interface phy3-sta0
        ifindex 19
        wdev 0x300000003
        addr 90:de:80:47:92:22
        type managed
        channel 40 (5200 MHz), width: 80 MHz, center1: 5210 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
phy#0
    Interface wlan0
        ifindex 6
        wdev 0x1
        addr 94:83:c4:11:96:c9
        type managed
        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 am using Fenvi AX1800(MT7921AU). It seems like its running slow on OpenWRT router, but runs fast on my PC(Ubuntu-24.04).

I tested the USB port if that was the issue, but it's not. Tested with USB3 SSD, got around 103MBps

image

Screenshot from 2024-06-26 00-58-03 Screenshot from 2024-06-26 00-58-14

Edit: Forgot to mention, The router I am using GL.INet MT1300

austonpramodh commented 4 months ago

Update: Got access to another router with OpenWRT. It gets the same 200mbps speed. I am assuming this could be a driver issue. image

But speeds are not going above 240mbps.

morrownr commented 4 months ago

Hi @austonpramodh

Sorry for the delay. Been busy.

A quick look and the first thing that comes to mind is that the USB port(s) are running in USB2 mode. Recommend you go to the OpenWRT command line and run:

lsusb -t

Things that I noticed:

wgetge commented 4 months ago

You should check the MT1300 CPU usuage. I don't think MT7621 support HWNAT for USB Device. So most likely CPU bottlenecked.

austonpramodh commented 4 months ago

Hi @morrownr,

Sorry for the delayed response. I did have disconnected this setup.

I have connected it again, Here:

image

It looks like it's running at 5000M

You are right, I was too close to the router. The one on which I got 600mbps+ was also at same distance. But I have fixed it now, kept them far away from eachother.


Hello @wgetge

Its possible, I will test out soon and get back to you.

austonpramodh commented 4 months ago

@wgetge

I tested it out, It could be the issue. Here

image

kissmorning commented 2 months ago

I have the same problem, did you find a solution? I tried about 5 openwrt usb3.0 supported routers, the speed does not exceed 200mbps

morrownr commented 2 months ago

@kissmorning

Remember that OpenWRT has to be able to support routers with very limited resources so drivers need to be installed if they are needed.

In other words, you may have required drivers installed for USB2 but do you have the drivers installed for USB3?

kissmorning commented 2 months ago

https://openwrt.org/toh/xiaomi/mir3g I am using this device, I have 1gb internet, I get internet in client mode with the internal wifi to avoid loss, I distribute internet in master mode with mt7612's usb wifi, but I cannot exceed 200mbps speed, could this be due to processor bottleneck?

morrownr commented 2 months ago

@kissmorning

I guess you did not understand my question:

...you may have required drivers installed for USB2 but do you have the drivers installed for USB3?

That question relates to OpenWRT. How do you install the drivers in OpenWRT? ssh or Luci?

What I am trying to get at is whether you installed the USB3 drivers and have you checked to see if the adapter is in USB3 mode. The USB port on your router may be a USB3 capable port but if only USB2 drivers are installed, it will operate in USB2 mode.

kissmorning commented 2 months ago

Thank you for your quick response. USB 3.0 drivers are enabled, I get high speeds when I connect an SSD to the USB output.@austonpramodh I have a similar problem with

austonpramodh commented 2 months ago

@kissmorning I am not 100% sure if mine was more of a CPU bottleneck problem. Technically when USB2 is used, I should get around 30-40 MBps(megabytes), I was getting may be around 20MBps(megabytes)

Have you checked the CPU load when read/writing heavily?

But yeah this USB 3.0 driver seems to be a new thing for me, ill have to check.

[update] I was able to achieve 300mbps with a good power source, CPU definitely seems to be maxing out. I tested this on GL-MT1300 with stock firmware.

image