From 5.19.11 to 5.19.14 wireless doesn't work | MEDIATEK MT7921 driver

So i updated the system and a few minutes after installation i reboot, my wireless doesn’t work anymore but ethernet cable still works, sorry for the lack of info.

lspci shows that my network adapter is MEDIATEK Corp. MT7921 802.11ax PCI Express Wireless Network Adapter

here’s dmesg

[    6.411399] mt7921e 0000:2d:00.0: enabling device (0000 -> 0002)
[    6.411704] mt7921e 0000:2d:00.0: ASIC revision: 79610010
[    6.487023] mt7921e 0000:2d:00.0: Direct firmware load for mediatek/WIFI_MT7961_patch_mcu_1_2_hdr.bin failed with error -2
[    6.563165] mt7921e 0000:2d:00.0: Direct firmware load for mediatek/WIFI_MT7961_patch_mcu_1_2_hdr.bin failed with error -2
[    6.639366] mt7921e 0000:2d:00.0: Direct firmware load for mediatek/WIFI_MT7961_patch_mcu_1_2_hdr.bin failed with error -2
[    6.717834] mt7921e 0000:2d:00.0: Direct firmware load for mediatek/WIFI_MT7961_patch_mcu_1_2_hdr.bin failed with error -2
[    6.797044] mt7921e 0000:2d:00.0: Direct firmware load for mediatek/WIFI_MT7961_patch_mcu_1_2_hdr.bin failed with error -2
[    6.874432] mt7921e 0000:2d:00.0: Direct firmware load for mediatek/WIFI_MT7961_patch_mcu_1_2_hdr.bin failed with error -2
[    6.950910] mt7921e 0000:2d:00.0: Direct firmware load for mediatek/WIFI_MT7961_patch_mcu_1_2_hdr.bin failed with error -2
[    7.026730] mt7921e 0000:2d:00.0: Direct firmware load for mediatek/WIFI_MT7961_patch_mcu_1_2_hdr.bin failed with error -2
[    7.102795] mt7921e 0000:2d:00.0: Direct firmware load for mediatek/WIFI_MT7961_patch_mcu_1_2_hdr.bin failed with error -2
[    7.180085] mt7921e 0000:2d:00.0: Direct firmware load for mediatek/WIFI_MT7961_patch_mcu_1_2_hdr.bin failed with error -2
[    7.254015] mt7921e 0000:2d:00.0: hardware init failed

Wireless still doesn’t work by booting to older kernels.
i have tried updating to 5.19.15 but it still doesn’ work.

1.Open nautilus
2. Ctrl + L
3. in the box that opened type admin:///usr/lib/firmware/mediatek/
4.find file WIFI_MT7961_patch_mcu_1_2_hdr.bin.xz
5.right click and extract
6.ready bin file is extracted :slight_smile:

If devs read this
Mediatek driver was in archive and it shouldn’t be there it should be unpacked
Cause linux wants to read .BIN file

1 Like

There is no mediatek folder in admin:///usr/lib/firmware/

really?
i will send you copy then
please wait

download 7.23 MB file on MEGA
and extract it into admin:/usr/lib/firmware
then try rebooting your OS
it should work

1 Like

Thank you so much! that works instantly.
I wonder how a required directory is deleted or not included in an update though. A bug?

No one knows ,why you haven’t god mediatek directory
it should be like for me
maybe cause of upgrade from previous version that didn’t contain mediatek directory

Can you check,
sudo dnf info linux-firmware
sudo dnf history linux-firmware

that’s what provides that folder

sudo dnf info linux-firmware

Last metadata expiration check: 2:49:04 ago on Sat 15 Oct 2022 03:56:37 PM WIB.
Available Packages
Name         : linux-firmware
Version      : 20220913
Release      : 140.fc36
Architecture : noarch
Size         : 177 M
Source       : linux-firmware-20220913-140.fc36.src.rpm
Repository   : updates
Summary      : Firmware files used by the Linux kernel
URL          : http://www.kernel.org/
License      : GPL+ and GPLv2+ and MIT and Redistributable, no modification
             : permitted
Description  : This package includes firmware files required for some devices to
             : operate.

sudo dnf history linux-firmware

ID     | Command line              | Date and time    | Action(s)      | Altered
--------------------------------------------------------------------------------
    44 | remove *nvidia*           | 2022-10-14 15:45 | Removed        |   16 E<
    30 |                           | 2022-10-01 08:14 | E, I, U        |  290 ><
     4 |                           | 2022-08-17 14:10 | I, U           |  732 ><
     1 |                           | 2022-05-05 04:26 | Install        | 1758 >E

ah right, i was trying to fix my nvidia issue the other day (not solved yet until now) and that when the wireless stops working.

@rebok232 nice that you could help. Do you have an official link from Mediatek where people can download the drivers?

I find it a bad idea with an anonymous alias link to an anonymous mega account.

If You got -2 error code on hardware drivers They are missing you can download them on:
https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git

Note:
Be aware of similar file names ex: board.bin | Board-2.bin

And To Make drivers working put them in right catalogs
ex:if error contains: mediatek/something.bin
Then something.bin Needs to be in mediatek directory

Tags:
-2 wifi hardware stopped working

If files missing in official linux-firmware you can extract them from
packages(recommended) in: linux-firmware | Package Info | koji

or download on my mega: