Mt7601u usb wifi failure/issues

It might be a different version of the same driver, ya know. We don’t know. On the website, it also specifies it as an alternative driver, yet it has the same name…

So, really, the only way of knowing would be to test and try

@Mirdarthos , from: GitHub - kuba-moo/mt7601u: Linux mac80211-based driver for Mediatek MT7601U USB bgn WiFi dongle

This is a placeholder repo for the Linux driver for MediaTek MT7601U USB dongle. The driver was written from scratch based on the vendor GPL-driver. Unlike the vendor driver it uses modern Linux WiFi infrastructure and should work flawlessly with NetworkManager, wicd, wpa_supplicant and such. This driver was merged into mainline and is part of official Linux kernel since version v4.2 (August 2015).

Please report any issues upstream to the Linux Wireless community. This repo is no longer used…

Unfortunately, it should mean this is not an alternative driver.

Has anyone any other ideas?

:man_shrugging:

Make sure you don’t have fast-boot enabled on Win (as it’s similar to hibernate).
No other ideas.

@dragan , I confirm fast boot is already disabled in Windows 10, looking at Control panel → System settings

There is a problem with some devices and the mt7601u kernel module. The fix is to patch the kernel source code. Find drivers/net/wireless/mediatek/mt7601u/mcu.c
Under static int mt7601u_load_firmware(struct mt7601u_dev *dev) find the lines with

	mt7601u_vendor_reset(dev);
	msleep(5);

and comment out the mt7601u_vendor_reset(dev) like

	//mt7601u_vendor_reset(dev);
	msleep(5);

I am not sure how kernel patches are done in Manjaro

@JeremyB , thanks for the reply,

I’ve patched mcu.c as you’ve explained and rebuilt the kernel module but I still get the same error lines shown above in dmesg output (see the first post in this thread).

So, a question: how did you figure out which lines need to be commented? Have you found this patch somewhere or is that a result of your findings? Have you tested the patch on your hardware or what else?

Waiting for a reply, thanks.

P.S. I’ve patched the kernel following this thread: [HowTo] Build a (patched) kernel module

I found it somewhere online a while back and it fixed a cheap dongle I have, you might want to check

modinfo mt7601u 

See if it shows intree: Y(or yes)

Without the patch I see

[ 2187.900216] usb 1-2: new high-speed USB device number 8 using xhci_hcd
[ 2188.181908] usb 1-2: New USB device found, idVendor=148f, idProduct=7601, bcdDevice= 0.00
[ 2188.181924] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 2188.181930] usb 1-2: Product: 802.11 n WLAN
[ 2188.181936] usb 1-2: SerialNumber: 1.0
[ 2188.336140] usb 1-2: reset high-speed USB device number 8 using xhci_hcd
[ 2188.487903] mt7601u 1-2:1.0: ASIC revision: 76010001 MAC revision: 76010500
[ 2188.491489] mt7601u 1-2:1.0: Firmware Version: 0.1.00 Build: 7640 Build time: 201302052146____
[ 2192.085138] mt7601u 1-2:1.0: Vendor request req:07 off:09a8 failed:-110
[ 2195.285843] mt7601u 1-2:1.0: Vendor request req:02 off:09a8 failed:-110
[ 2198.486463] mt7601u 1-2:1.0: Vendor request req:07 off:0734 failed:-110
[ 2201.687181] mt7601u 1-2:1.0: Vendor request req:42 off:0230 failed:-110
[ 2204.887851] mt7601u 1-2:1.0: Vendor request req:07 off:0080 failed:-110
[ 2208.088024] mt7601u 1-2:1.0: Vendor request req:02 off:0080 failed:-110

I did cut the results short

With a patched module, I get

[   40.747135] usb 1-2: New USB device found, idVendor=148f, idProduct=7601, bcdDevice= 0.00
[   40.747151] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[   40.747158] usb 1-2: Product: 802.11 n WLAN
[   40.747163] usb 1-2: SerialNumber: 1.0
[   40.786399] mt7601u: loading out-of-tree module taints kernel.
[   40.787065] mt7601u: module verification failed: signature and/or required key missing - tainting kernel
[   40.920227] usb 1-2: reset high-speed USB device number 10 using xhci_hcd
[   41.074762] mt7601u 1-2:1.0: ASIC revision: 76010001 MAC revision: 76010500
[   41.077795] mt7601u 1-2:1.0: Firmware Version: 0.1.00 Build: 7640 Build time: 201302052146____
[   41.493248] mt7601u 1-2:1.0: EEPROM ver:0c fae:00
[   41.701285] ieee80211 phy1: Selected rate control algorithm 'minstrel_ht'
[   41.702091] usbcore: registered new interface driver mt7601u
[   41.717075] mt7601u 1-2:1.0 wlxe84e064c7812: renamed from wlan1

@JeremyB , as you can see in the output, it doesn’t show that line:

modinfo mt7601u
filename:       /lib/modules/6.1.25-1-MANJARO/kernel/drivers/net/wireless/mediatek/mt7601u/mt7601u.ko
license:        GPL
firmware:       mt7601u.bin
srcversion:     7DC333F197C5E355451D579
alias:          usb:v7392p7710d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v2A5Fp1000d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v2955p1003d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v2955p1001d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v2955p0001d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v2717p4106d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v2001p3D04d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v148Fp760Dd*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v148Fp760Cd*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v148Fp760Bd*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v148Fp760Ad*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v148Fp7601d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v13D3p3434d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v13D3p3431d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0E8Dp760Bd*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0E8Dp760Ad*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0B05p17D3d*dc*dsc*dp*ic*isc*ip*in*
depends:        mac80211,cfg80211
retpoline:      Y
name:           mt7601u
vermagic:       6.1.25-1-MANJARO SMP preempt mod_unload

Even using the patched module, I get:

[  200.521707] usb 1-2: new high-speed USB device number 6 using xhci_hcd
[  200.678123] usb 1-2: New USB device found, idVendor=148f, idProduct=7601, bcdDevice= 0.00
[  200.678129] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  200.678132] usb 1-2: Product: 802.11 n WLAN
[  200.678134] usb 1-2: Manufacturer: MediaTek
[  200.678136] usb 1-2: SerialNumber: 1.0
[  200.808577] usb 1-2: reset high-speed USB device number 6 using xhci_hcd
[  200.953246] mt7601u 1-2:1.0: ASIC revision: 76010001 MAC revision: 76010500
[  200.956698] mt7601u 1-2:1.0: Firmware Version: 0.1.00 Build: 7640 Build time: 201302052146____
[  201.396493] mt7601u 1-2:1.0: EEPROM ver:0d fae:00
[  201.581343] mt7601u 1-2:1.0: Error: MCU resp urb failed:-71
[  201.581363] mt7601u 1-2:1.0: Error: MCU resp evt:0 seq:5-4!
[  201.581423] mt7601u 1-2:1.0: Error: MCU resp urb failed:-71
[  201.581430] mt7601u 1-2:1.0: Error: MCU resp evt:0 seq:5-4!
[  201.581539] mt7601u 1-2:1.0: Error: MCU resp urb failed:-71
[  201.581544] mt7601u 1-2:1.0: Error: MCU resp evt:0 seq:5-4!
[  201.581649] mt7601u 1-2:1.0: Error: MCU resp urb failed:-71
[  201.581654] mt7601u 1-2:1.0: Error: MCU resp evt:0 seq:5-4!
[  201.581819] mt7601u 1-2:1.0: Error: MCU resp urb failed:-71
[  201.581826] mt7601u 1-2:1.0: Error: MCU resp evt:0 seq:5-4!
[  201.581845] mt7601u 1-2:1.0: Error: mt7601u_mcu_wait_resp timed out
[  201.728350] mt7601u 1-2:1.0: Vendor request req:07 off:0080 failed:-71
[  201.865064] mt7601u 1-2:1.0: Vendor request req:02 off:0080 failed:-71
[  202.015046] mt7601u 1-2:1.0: Vendor request req:02 off:0080 failed:-71
[  202.015128] mt7601u: probe of 1-2:1.0 failed with error -110
[  202.015410] usb 1-2: USB disconnect, device number 6

repeated continuosly.

Though the output appears like yours, there are several differences, as you can see.

Do you have any other ideas? Waiting for a reply, thanks.

Do you have a USB hard drive connected or a lot of USB devices connected?

There was another patch but I can’t find it now

Do you have a USB hard drive connected or a lot of USB devices connected?

No, why?

What is it about?

[RFC PATCH] mt7601u: make the driver work again (Linux Wireless) is the other part of the patch that is needed for some newer kernels

@JeremyB ,

[RFC PATCH] mt7601u: make the driver work again (Linux Wireless) is the other part of the patch that is needed for some newer kernels

Disabling mcu calibration brings to wifi adapter overheating and system/machine freezing. Is there another way to solve wifi failure without making the system unstable/unusable?

Waiting for a reply, thanks.

I haven’t seen any other fixes that might work