openwrt / mt76

mac80211 driver for MediaTek MT76x0e, MT76x2e, MT7603, MT7615, MT7628 and MT7688
741 stars 342 forks source link

MT7915e - Routerich-AX3000 - 5GHz WiFi Disassociate with broadcom-wl driver on macbookair6.2 #887

Closed NitroOxid closed 3 months ago

NitroOxid commented 3 months ago

Subject of the issue

I use Routerich-AX3000 with OpenWRT 23.05.3 as a Wi-Fi router. After some time after downloading files at high speed over 100mbps, 5GHz Wi-Fi freezes on the laptop side. After "Freeze", WiFi connection does not disappear, DNS is not responding, router address (192.168.1.1) does not respond via ping command, Internet traffic is no longer passing through. At the same time, everything works on other clients without any problems. Problem is only on the device where the connection is "lost" After restarting the WiFi module, it reconnects to the network and everything works. It is worth starting downloading large files (2.5 GB or more) with a 50% probability that the laptop will be Disassociate from the access point again. If don't download large files, use messengers\browsing the Internet (using Wi-Fi at speeds of less than 100 Mbps) there is no problem, everything works stably. There is also a low WiFi speed. Utility iperf3 under linux shows speed 260mbit, iperf3 under Windows shows speed 600mbit. Channel connection speed on both operating systems = 866mbit. There is no alternative WLAN driver instead of Broadcom-wl. There were no problems on other routers running OpenWRT. Including Xiaomi MI-R3G router on mt7621 processor with OpenWRT 23.05.3.

Environment

Router: Routerich-AX3000 CPU: MT7981, WLAN: MT7976C with OpenWRT 23.05.3 Notebook: MacBookAir6.2, WLAN Adaper BCM4360, NetworkManager, broadcom-wl driver (On windows driver no have any problem). OS: Archlinux, Gnome Shell, Nautilus. I also checked in Kubuntu 24.04 only iperf3. Same problem. WiFi: 5Ghz AC and AX, 80Mhz and 160Mhz (20Mhz and 40Mhz not tested)

Steps to reproduce

Run iperf3 run it several times (2-3, maybe and 20 times) or download via samba4 directory with video files mkv (each file is more than 2GB) The problem may not appear the first time, sometimes you need to reboot the system\wait a few hours to reproduce

Expected behaviour

5GHz running stable on Linux, more speed under broadcom adapters.

Actual behaviour

On OpenWRT 23.05.3, OpenWRT Master as described in Subject of the issue

Logs

Journald on MacBook: journald.txt OpenWRT journal: openwrt.txt

NitroOxid commented 3 months ago

Addition. Software offloading, or hardware offloading (WED) - they don't change anything. After returning to the router on mt7621 with openwrt 23.05.3, Image artifacts disappeared when watching videos in VLC via samba4, as well as the laptop processor is now cold. Previously, there was a strong heating, the processor loaded the kswapd0 process (My system dosn't have swap.)

My WiFi config:

config wifi-device 'radio1'
    option type 'mac80211'
    option path 'platform/18000000.wifi+1'
    option channel '36'
    option band '5g'
    option htmode 'HE160'
    option cell_density '0'
    option country 'RU'

config wifi-iface 'default_radio1'
    option device 'radio1'
    option network 'lan'
    option mode 'ap'
    option ssid 'My SSID name'
    option encryption 'psk2'
    option key 'There was a password here'
NitroOxid commented 3 months ago

Not relevant. The problem was with /dev/crypto build engines into libcrypto in the OpenSSL library. Because of it, there was unstable speed and high ping