By following a variation of Harry Mayrhofer's procedure, I've managed to
change my wireless firmware build times too! I'll watch my wireless
connection to see if it's behaving differently. Here's what I did.

For reproducibility, here are two ways that my system state differed
from the Ubuntu 22.04 defaults before I started.

* I had upgraded linux-firmware to version 20220329.git681281e4-0ubuntu3.28 
from the jammy-proposed repository
* I had upgraded the kernel to version 6.5.0-18-generic, as a side effect of 
upgrading my MESA graphics drivers from the kisak-mesa PPA

>From that starting point, here's how I changed my wireless firmware.

1) I removed these files from /lib/firmware/mediatek:
  WIFI_MT7922_patch_mcu_1_1_hdr.bin
  WIFI_RAM_CODE_MT7922_1.bin
2) I replaced them with the same files from commit 
0a18a7292a66532633d9586521f0b954c68a9fbc of linux-firmware. To be explicit, I 
got the new files from these URLS:
  
https://gitlab.com/kernel-firmware/linux-firmware/-/raw/0a18a7292a66532633d9586521f0b954c68a9fbc/mediatek/WIFI_MT7922_patch_mcu_1_1_hdr.bin
  
https://gitlab.com/kernel-firmware/linux-firmware/-/raw/0a18a7292a66532633d9586521f0b954c68a9fbc/mediatek/WIFI_RAM_CODE_MT7922_1.bin
3) I regenerated the initial RAM disk associated with the latest version of my 
kernel (which is the version that was running)
  sudo update-initramfs -u
4) I rebooted

After the reboot, dmesg showed new wireless firmware build times:

  [    3.125009] mt7921e 0000:01:00.0: enabling device (0000 -> 0002)
  [    3.131598] mt7921e 0000:01:00.0: ASIC revision: 79220010
  [    3.217634] mt7921e 0000:01:00.0: HW/SW Version: 0x8a108a10, Build Time: 
20230627143702a
  [    3.234290] mt7921e 0000:01:00.0: WM Firmware Version: ____000000, Build 
Time: 20230627143946
  [    4.362764] mt7921e 0000:01:00.0 wlp1s0: renamed from wlan0

Note that my build times are different from Harry's. I think that's
because I used the firmware files from the commit that Rudi Daemen
suggested, while Harry used the newest version of the files.

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux-firmware in Ubuntu.
https://bugs.launchpad.net/bugs/2049220

Title:
  Update firmware for MT7921 in order to fix Framework 13 AMD 7040

Status in linux-firmware package in Ubuntu:
  Fix Released
Status in linux-firmware source package in Jammy:
  Fix Committed
Status in linux-firmware source package in Mantic:
  Fix Committed
Status in linux-firmware source package in Noble:
  Fix Released

Bug description:
  [SRU Justification]

  BugLink: https://bugs.launchpad.net/bugs/2049220

  [Impact]

  MT7921 - IPv6 no longer working (Not receiving Multicast).

  [Fix]

  Update WiFi/Bluetooth firmware to upstream commits:
  * WiFI: commit 0a18a7292a66 ("linux-firmware: update firmware for MT7921 WiFi 
device")
  * Bluetooth: commit 1366b827c213 ("linux-firmware: update firmware for 
mediatek bluetooth chip (MT7921)")

  [Test Case]

  1. Have Ubuntu 22.04 LTS installed on a laptop with MT7921 Wifi
  adapter and connect it to a Dual-stack network leveraging Router
  Advertisements for IPv6.

  2. Run it with HWE Kernel image linux-image-6.2.0-39-generic and observe the 
following:
     - IPv6 stateless autoconfiguration works and a public/global address is 
assigned.
     - Inbound IPv6 Multicast packets are seen when using tcpdump/wireshark.

  3. Update the HWE Kernel to linux-image-6.5.0-14-generic and observe the 
following:
     - IPv6 only configures link-local address (fe80::) and no public/global 
address.
     - No inbound IPv6 multicast packets are seen when using tcpdump/wireshark.

  [Where problems could occur]

  Opaque binary. No known dependency to kernel version.

  [Other Info]

  Nominate Jammy for linux-oem-6.5/jammy and linux-hwe-6.5/jammy, and
  Mantic. All the commits are in upstream repository, so Noble should
  have them after rebased.

  ========== original bug report ==========

  The current firmware for MT7921 WiFi is giving me problems like dropping 
multicast packets (mDNS).
  I manually updated the firmware files and that fixed the issue.
  To be more specific, please include this commit:
  
https://gitlab.com/kernel-firmware/linux-firmware/-/commit/0a18a7292a66532633d9586521f0b954c68a9fbc
  And possibly also this:
  
https://gitlab.com/kernel-firmware/linux-firmware/-/commit/1366b827c21351b37665303397e161dd4158316e
  Thanks!

  We also need:

  1) The release of Ubuntu you are using, via 'lsb_release -rd' or System -> 
About Ubuntu
  Ubuntu 22.04.3 LTS

  2) The version of the package you are using, via 'apt-cache policy pkgname' 
or by checking in Software Center
  ii  linux-firmware 20220329.git681281e4-0ubuntu3.24 all          Firmware for 
Linux kernel drivers

  3) What you expected to happen
  WiFi working

  4) What happened instead
  Multicast packets dropped, mDNS not working

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux-firmware/+bug/2049220/+subscriptions


-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to     : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to