Mt7601u usb wifi failure/issues

You can easily check out if driver is loaded, we have the name it seems (mt7601u)

lsmod | grep mt7601u # it should be listed out
# or also just in case
lsmod | grep -i Ralink # or just lsmod and check all out manually

Then use # modprobe to remove / load the module (and see how it goes)

sudo modprobe -r mt7601u 
sudo modprobe mt7601u

@Mirdarthos , I don’t understand. If your answer is mt7601u, this is the driver actually selected/used by the kernel, as clearly shown by the output in the first post:

[  107.736197] mt7601u 1-2:1.0: ASIC revision: 76010001 MAC revision: 76010500

and lsusb -t shows the driver loaded by the kernel. Which other driver what you was talking about?

@dragan ,

lsmod | grep mt7601u
mt7601u               155648  0
mac80211             1323008  1 mt7601u
cfg80211             1138688  2 mt7601u,mac80211

The command:

lsmod | grep -i Ralink

returns nothing.

Then use # modprobe to remove / load the module (and see how it goes)

Done. What should I do next? Waiting for a reply, thanks.

Did anything change once you reloaded the module (via modprobe), has wifi status changed in any way (working or otherwise), run inxi and all again to see.

Also (if things don’t work) run
journalctl -r # (or maybe `journalctl --dmesg -r`)
…and see if any messages there during the moudule loading (e.g. you can open that in one terminal, in another try to reload module again, see if it’s failing with some particular error).

lsmod output means driver module was there. But reloading might have helped.

This is for diagnostics mostly, if reloading module doesn’t help then try the other driver as @Mirdarthos suggested.

Windows can sometimes leave some of the devices (WiFi-s typically) in some funny state, sorry I can’t remember much more, happened to me once many yrs ago. Meaning try shuttind down the Win fully then going into Manjaro. Long shot, or read about it for more.

I can’t add much more to this I’m afraid.

@dragan , I didn’t notice better results reloading the module. The wifi adapter keeps going appearing and disappearing continuously, as shown by sudo dmesg -w command output.

Running journalctl --dmesg -r command gives the same results as explained above. Btw, the command output:

apr 08 08:05:52 cristian-corebook kernel: usb 1-2: reset high-speed USB device >
apr 08 08:05:52 cristian-corebook kernel: usb 1-2: SerialNumber: 1.0
apr 08 08:05:52 cristian-corebook kernel: usb 1-2: Manufacturer: MediaTek
apr 08 08:05:52 cristian-corebook kernel: usb 1-2: Product: 802.11 n WLAN
apr 08 08:05:52 cristian-corebook kernel: usb 1-2: New USB device strings: Mfr=>
apr 08 08:05:52 cristian-corebook kernel: usb 1-2: New USB device found, idVend>
apr 08 08:05:52 cristian-corebook kernel: usb 1-2: new high-speed USB device nu>
apr 08 08:05:51 cristian-corebook kernel: usb 1-2: USB disconnect, device numbe>
apr 08 08:05:51 cristian-corebook kernel: mt7601u: probe of 1-2:1.0 failed with>
apr 08 08:05:51 cristian-corebook kernel: mt7601u 1-2:1.0: Vendor request req:0>
apr 08 08:05:51 cristian-corebook kernel: mt7601u 1-2:1.0: Vendor request req:0>
apr 08 08:05:51 cristian-corebook kernel: mt7601u 1-2:1.0: Vendor request req:0>
apr 08 08:05:51 cristian-corebook kernel: mt7601u 1-2:1.0: Error: mt7601u_mcu_w>
apr 08 08:05:51 cristian-corebook kernel: mt7601u 1-2:1.0: Error: MCU resp evt:>
apr 08 08:05:51 cristian-corebook kernel: mt7601u 1-2:1.0: Error: MCU resp urb >
apr 08 08:05:51 cristian-corebook kernel: mt7601u 1-2:1.0: Error: MCU resp evt:>
apr 08 08:05:51 cristian-corebook kernel: mt7601u 1-2:1.0: Error: MCU resp urb >
lines 1-23

This is for diagnostics mostly, if reloading module doesn’t help then try the other driver as @Mirdarthos suggested.

I’ve asked which other driver he talked about (apart mt7601u, that I’m using) but he never answered.

Actually, I always boot manjaro, anyway I shut windows 10 down, so it doesn’t solve the issue.

Any other ideas? Waiting for a reply, thanks.

I did explain.

I don’t understand what you mean. The thread doesn’t show replies after that:

Edit: @Mirdarthos , do you display a following up reply which I’m not able to view in the thread?

This:

@Mirdarthos , I don’t understand what you mean. Your url shows the same messages I’m able to view in the thread. Why did you post that?

Because you said:

So I linked a screenshot showing my replies, including the ones with my suggestions that I understood you didn’t get, and highlighted my replies.

But in any case. This, I realize is the case:

…but it might have been updated or something in that line, in the driver I specified. In any case, according to this:

It seems it is quite the problematic device…

@Mirdarthos , When I wrote:

Edit: @Mirdarthos , do you display a following up reply which I’m not able to view in the thread?

you replied posting that url but I can display the same thread messages after Mt7601u usb wifi failure/issues - #16 by cristian_c included in your url. So there seem not to be messages I’m not able to view in the thread. It doesn’t make sense.

Looking at Ralink Technology MT7601U Wireless Adapter , the other driver mentioned there (apart mt7601u which I’m already using) is named as W311MI but that url points to an error page url.

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