Admirable goal, and thanks for the summary.

Hopefully this can be achieved in time for the 20.x release (or by now, 21.x)
I have 7621/7603 devices and the issues with WiFi have been endless, 19.07.4 was better, but still buggy and unstable.

I have been trying to test latest snapshots, but they just bootloop on my device (ZBT-WE3526).
Happy to test once you have a build that allows the Mediatek drivers to load and be configured.

1 Like

Bootloop is very likely because the kernel is getting to big. Instead of selecting ZBT-WE3526, use the -16M or -32M variant (which ever applies to your device). Or add the line " $(Device/uimage-lzma-loader) " to the generic ZBT-WE3526 in the target/linux/ramips/image/mt7621.mk file.

1 Like

I am one step further. I compiled mt7615 driver with cfg80211 support for OpenWRT 19.07.5 with correct headers - now iw phy reports some data.

Unfortunatelly hostapd is not able to bring interface up (AP stops working immediately with error message ExtEventBeaconLostHandler::FW LOG, Beacon lost (34:ce:00:XX:XX:XX) Reason 0x10) so it crashes.

1 Like

Hi, I am new to this forum and I have a couple of questions about the mtk driver and how to compile it.
I am trying to find the mtk driver source codes for the mt7628 device, but so far I have not found them, if someone could give me a hint or a link I would be very grateful.
another question would be if anyone has any guide or know how to compile. thanks.
@lukasz92

how to build https://openwrt.org/docs/start
OpenWRT code https://github.com/openwrt/openwrt
mt76 code https://github.com/openwrt/mt76

there is a wealth of information that people have prepared
for just these questions :slight_smile:

1 Like

he is talking about mtk

1 Like

I could add this folder https://github.com/openwrt/openwrt/tree/master/target/linux/ramips/dts
but he is going to get no where with out https://openwrt.org/docs/start
and starting in https://github.com/openwrt/openwrt

I am asking about mtk wifi driver

1 Like

Hi, I have not one, but two Netgear R6260s with MT7603/MT7615, and after a few hours of sheer enthusiasm, I am thinking of going back to the OEM firmware (which I hate).

I can get decent (by that I mean only 70% of OEM) Wi-Fi speeds only in a single Wi-Fi mode which is not supported by all my clients (VHT80). Everything else, notably every single 2.4GHz mode/band/etc., is complete and unalloyed trash. Stack traces are constantly dumped on syslog warning of terrible things happening in the kernel. My router just rebooted spontaneously because I dared use the 2.4GHz network with more than one client.

I mean... it's a massive shit show. :grinning:

But that's not to criticise, it's just the way things are. I know it's hard stuff, and I am willing to help anyone who's spending their free time working on mt76 by acting as a tester. I am a dev but I have never done any kernel programming, otherwise I'd tackle this shit myself.

In the meantime, can anyone tell me where to start (I'll figure the rest by myself) to install the proprietary driver so I can use it on one of my R6260s and add a data point to my benchmarks? Thanks.

1 Like

that' s the mt device i have, a that is really a joke,that it's not good for real openwrt, the most powerfull linux distro for router, and also it's a joke for simple ap.

1 Like

IKR, the "performance" of mt76 with my R6260 is honestly way below the minimum level of quality for it to be pushed on any public branch, let alone master. It's actually damaging to use as the router randomly reboots.

1 Like

i'm still wait for an ath9k version2 for openwrt, untill that i will use ath9k devices

Count me in! How can I help? mt76 is trash on my R6260 and I'd like to try something else.

just to make a note here I'm not sure what version you are playing with but
last time I looked the driver in V19 was very old
& the one in the snapshots is much much better at lest for the MT7615
so please try a snapshot of 21.02 or master

someone need to add an accessible link somewhere for this
https://downloads.openwrt.org/releases/21.02-SNAPSHOT/targets/ramips/mt7621/

1 Like

Thanks for your reply. I'm on SNAPSHOT r15880-8d8125a43b. It's fairly bleeding edge!

The breadth and depth of the Wi-Fi issues I am experiencing is indicative, in my educated guess as a developer (albeit not a kernel driver developer specifically), of serious quality issues with that driver (at least on this hardware) most likely requiring months of testing, debugging, sifting through intricate stack traces, etc. It's bad. Real bad. If this thing gets released now-ish as "21.02" (which I assume stands for February 2021) for R6260 specifically, we would be releasing trash.

Again, I offer my help and I have not one, but two R6260s. :innocent:

What kind of CPU usage do you see with the 2.4GHz radio? When I tested it looked like my r6220 was saturated.

Yes, very intense CPU action on 2.4GHz wifi.

Anny news on that? Would you mind sharing your patches?

I'm working on the same problem, but in a different approach.... OpenWRT wireless configuration is actually modular.... It can work with different drivers... The one that is implemented in Openwrt and that uses the mac80211 from linux kernel (and interfaces with hostapd) is called, well, mac80211.... this is set in the "type" of wifi-device in /etc/config/wireless...

The API for this and different drivers are set in:
/lib/wifi/mac80211.sh. (functions that can detect the interface and different supports)
/lib/netifd/wireless/mac80211.sh (functions to bring interface up and down, etc)

I'm writing a "mtk.sh" equivalent for those, so we don't need to change Openwrt configuration schema, and can work with the vendor drivers.... This won't need hostapd or even cfg80211, it is just scripts in openwrt....

1 Like

since mt76 still not support MT7603 with USB interface , just did some work based on old mt7603u from hardkernel.

hope it can helps with mainline kernel support

mt7603u driver