Mt76 driver - replacement [for test]

nl80211 not found

Hi I have a Wavlink WL-WN570HA1 which has a MT7610E I wouldn't mind to test on it. However im really newbie and all im good to do is flash it through TFTP and post you the log. Now the 5ghz radio is fully useless in Openwrt 19.07.2 master this is the log:

Thu Feb 27 21:12:21 2020 user.notice mac80211: Failed command: iw phy phy1 set antenna 0xffffffff 0xffffffff
Thu Feb 27 21:12:22 2020 daemon.err hostapd: Configuration file: /var/run/hostapd-phy1.conf
Thu Feb 27 21:12:22 2020 kern.info kernel: [  439.902903] IPv6: ADDRCONF(NETDEV_UP): wlan1: link is not ready
Thu Feb 27 21:12:22 2020 kern.info kernel: [  439.919586] br-lan: port 2(wlan1) entered blocking state
Thu Feb 27 21:12:22 2020 kern.info kernel: [  439.930215] br-lan: port 2(wlan1) entered disabled state
Thu Feb 27 21:12:22 2020 kern.info kernel: [  439.941134] device wlan1 entered promiscuous mode
Thu Feb 27 21:12:22 2020 daemon.notice hostapd: Channel 100 (primary) not allowed for AP mode, flags: 0x10095b NO-IR RADAR
Thu Feb 27 21:12:22 2020 daemon.warn hostapd: wlan1: IEEE 802.11 Configured channel (100) not found from the channel list of current mode (2) IEEE 802.11a
Thu Feb 27 21:12:22 2020 daemon.warn hostapd: wlan1: IEEE 802.11 Hardware does not support configured channel
Thu Feb 27 21:12:22 2020 daemon.err hostapd: Could not select hw_mode and channel. (-3)
Thu Feb 27 21:12:22 2020 daemon.notice hostapd: wlan1: interface state UNINITIALIZED->DISABLED
Thu Feb 27 21:12:22 2020 daemon.notice hostapd: wlan1: AP-DISABLED
Thu Feb 27 21:12:22 2020 daemon.err hostapd: wlan1: Unable to setup interface.
Thu Feb 27 21:12:22 2020 daemon.notice hostapd: wlan1: interface state DISABLED->DISABLED
Thu Feb 27 21:12:22 2020 daemon.notice hostapd: wlan1: AP-DISABLED
Thu Feb 27 21:12:22 2020 daemon.notice hostapd: wlan1: CTRL-EVENT-TERMINATING
Thu Feb 27 21:12:22 2020 daemon.err hostapd: hostapd_free_hapd_data: Interface wlan1 wasn't started
Thu Feb 27 21:12:22 2020 daemon.notice hostapd: nl80211: deinit ifname=wlan1 disabled_11b_rates=0
Thu Feb 27 21:12:22 2020 kern.info kernel: [  439.957085] device wlan1 left promiscuous mode
Thu Feb 27 21:12:22 2020 kern.info kernel: [  439.966103] br-lan: port 2(wlan1) entered disabled state
Thu Feb 27 21:12:22 2020 daemon.notice netifd: radio1 (2059): cat: can't open '/var/run/wifi-phy1.pid': No such file or directory
Thu Feb 27 21:12:22 2020 daemon.notice netifd: radio1 (2059): WARNING (wireless_add_process): executable path /usr/sbin/wpad does not match process  path (/proc/exe)
Thu Feb 27 21:12:22 2020 daemon.notice netifd: radio1 (2059): Command failed: Invalid argument
Thu Feb 27 21:12:22 2020 daemon.notice netifd: radio1 (2059): Device setup failed: HOSTAPD_START_FAILED
Thu Feb 27 21:12:35 2020 kern.info kernel: [  452.919482] rt3050-esw 10110000.esw: link changed 0x00
Thu Feb 27 21:12:39 2020 kern.info kernel: [  457.703818] rt3050-esw 10110000.esw: link changed 0x01
Thu Feb 27 21:12:40 2020 daemon.info dnsmasq-dhcp[1436]: DHCPREQUEST(br-lan) 192.168.1.210 40:8d:5c:b6:97:78
Thu Feb 27 21:12:40 2020 daemon.info dnsmasq-dhcp[1436]: DHCPACK(br-lan) 192.168.1.210 40:8d:5c:b6:97:78 Xeon-1220VE3
Thu Feb 27 21:12:40 2020 daemon.info dnsmasq[1436]: read /etc/hosts - 4 addresses
Thu Feb 27 21:12:40 2020 daemon.info dnsmasq[1436]: read /tmp/hosts/odhcpd - 0 addresses
Thu Feb 27 21:12:40 2020 daemon.info dnsmasq[1436]: read /tmp/hosts/dhcp.cfg01411c - 2 addresses
Thu Feb 27 21:12:40 2020 daemon.info dnsmasq-dhcp[1436]: read /etc/ethers - 0 addresses
Thu Feb 27 21:12:41 2020 daemon.info dnsmasq[1436]: read /etc/hosts - 4 addresses
Thu Feb 27 21:12:41 2020 daemon.info dnsmasq[1436]: read /tmp/hosts/odhcpd - 1 addresses
Thu Feb 27 21:12:41 2020 daemon.info dnsmasq[1436]: read /tmp/hosts/dhcp.cfg01411c - 2 addresses
Thu Feb 27 21:12:41 2020 daemon.info dnsmasq-dhcp[1436]: read /etc/ethers - 0 addresses

try to install libnl , libnl-tiny , kmod-cfg80211

kmod-cfg80211 already installed
i have installed libnl and so i don't think i need libnl-tiny , now i don't get the nl80211 not found warning, but still not working.

ifconfig -a 
ra0       Link encap:Ethernet  HWaddr 00:00:00:00:00:00  
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Interrupt:23 

root@OpenWrt:~# iw phy
root@OpenWrt:~# 

also only ra0 is present

Sad news, I wish it prints something.

At this point nothing more to test :frowning:

Thanks!

any news on that?

managed to port the driver to linux-5.4.
So far it works with its own incorporated ap-solution. Maybe we could give it another try to get it working with cfg8021. I guess that after kernel 3.x a lot has changed in the cfg8021 related stuff and that's why its not working out of the box. If you are interested I am happy to share the patches ...

yes if you can share it will be great

works on my Xiaomi R3P, there is a short instructions file included.

https://filebin.net/wj4q2m1ruwzjn7g1/mtk_wifi_mt7615.zip?t=gpw1r7on

The fastest way to start is use mt7615 driver, it needs a little modification to compile with cfg80211. Anyway I didn't checked why is the crash

May I ask did you tested it with MT7603? Mt7603 is basically not working on 5.x kernel :slight_smile: you must know in AC2100.

nope only mt7615. I sold my AC2100, therefore no need for mt7603 any longer ...

I think the mt7615 is more stable than older generations.

After a couple of days of trying the driver I have to say that it works just so much better than the mt76. Higher speeds, better reach and smooth roaming between the 5 and 2.4 ghz bands when using the same SSID for both cards.

@thorsten97
wait...the proprietary drivers have proper roaming support :slight_smile: ?
I know you've only tested with the 7615 driver, but in theory could we have mt7603, mt7612, mt7615 proprietary drivers with working 802.11r ?
I guess I can stop thinking about selling my mtk routers then...

Did you use the latest version from master? I think the peak throughput should be better than proprietary driver.

For me the Roaming works quite reliable between 5ghz and 2.4 on the same machine. No idea if roaming between multiple routers works and how to set it up ...
Regarding the peak throughput: on current master I get max 35 MB/s from my synology with mt76, but >40 MB/s with the proprietary driver. On linux-4.14 the speeds were better with mt76 compared to the proprietary driver, but only slightly.

I think it’s fantastic what the mt76 people achieved, but I had constant trouble with disconnected devices, unreachable WiFi printers and sound devices (which still persists in the most recent mt76 version). The proprietary driver simply just works in my set up. As soon as the mt76 works reliable for my needs I will happily switch back.

3 Likes

We've fixed that connection problem for mt7615. Maybe you can upgrade to the latest version and give it a try.

3 Likes

I just compile a new master linux-5.4.46 with the most recent mt76. Wifi speed is still lower than with the proprietary driver (most of the time in the range of 25-30 MB/s sometimes it hits 40 MB/s).

I will test it for a couple of days to see whether the disconnect issue is fixed for my network setup.

there is still a lot of interrupt errors:

root@OpenWrt:~# cat /proc/interrupts 
           CPU0       CPU1       CPU2       CPU3       
  8:     140342     140304     140287     140252  MIPS GIC Local   1  timer
  9:      21070          0          0          0  MIPS GIC  63  IPI call
 10:          0      35755          0          0  MIPS GIC  64  IPI call
 11:          0          0      38544          0  MIPS GIC  65  IPI call
 12:          0          0          0      45419  MIPS GIC  66  IPI call
 13:       5363          0          0          0  MIPS GIC  67  IPI resched
 14:          0      41900          0          0  MIPS GIC  68  IPI resched
 15:          0          0      26500          0  MIPS GIC  69  IPI resched
 16:          0          0          0      24704  MIPS GIC  70  IPI resched
 17:          0          0          0          0  MIPS GIC  19  1e000600.gpio-bank0, 1e000600.gpio-bank1, 1e000600.gpio-bank2
 19:         12          0          0          0  MIPS GIC  33  ttyS0
 21:     313662          0          0          0  MIPS GIC  10  1e100000.ethernet
 23:     106765          0          0          0  MIPS GIC  11  mt7615e
 24:     248869          0          0          0  MIPS GIC  31  mt7615e
 26:          0          0          0          0  1e000600.gpio  18  keys
ERR:       58591

while the proprietary drivers shows no errors at all, even after a week of heavy usage ..

Are these errors of any relevance for us, or just a cometic issue?

Which platform are you using? I did not see this error on my MT7622.

BTW can you revert these two patches to check if interrupt errors happen again?https://github.com/openwrt/mt76/commit/05b23d7478feb4e96072c1cb3ef457c6d2e7d737
https://github.com/openwrt/mt76/commit/5f2f676b1f0131e007b19775a2e0378ac6cbf73c