** Summary changed: - MediaTek MT7922 WiFi regulatory domain not self-managed, firmware too old + MediaTek MT7922 and MT7925 WiFi cards do not use firmware regulatory data
** Description changed: [Impact] - MediaTek is dropping the wireless-regdb dependency on new platforms. The mt76 driver has the code for it (regulatory wiphy self-managed mode, 802.11d). The MT7922 firmware in the archive does not carry the regulatory (CLC) data that code needs, so the mode never turns on. + MediaTek is dropping the wireless-regdb dependency on new platforms. The mt76 driver already has the code for it (self-managed regulatory mode, 802.11d). The MT7922 firmware in the archive has no regulatory (CLC) data for that code, so the mode never turns on. On Dell systems with MediaTek MT7922 modules, country channel and power - limits then only come from wireless-regdb. This blocks the feature for - the new platforms. + limits come only from wireless-regdb. This blocks the feature on the new + platforms. - The kernel side is already in the 7.3 kernel. Only the firmware is - missing. + The kernel side is already in v7.3. Only the firmware is missing. Firmware in the archive today: - mediatek/WIFI_MT7922_patch_mcu_1_1_hdr.bin Version: 20260224103145a - mediatek/WIFI_RAM_CODE_MT7922_1.bin Version: 20260224103233 - The RAM code only has CLC records with index 0. No index 3 (regulatory) record. + mediatek/WIFI_MT7922_patch_mcu_1_1_hdr.bin Version: 20260224103145a + mediatek/WIFI_RAM_CODE_MT7922_1.bin Version: 20260224103233 + mediatek/mt7925/WIFI_MT7925_PATCH_MCU_1_1_hdr.bin Version: 20260605184651a + mediatek/mt7925/WIFI_RAM_CODE_MT7925_1_1.bin Version: 20260605184805 + + The MT7922 RAM code only has CLC records with index 0. It has no index 3 + (regulatory) record. [Fix] - Update the two MT7922 firmware files to the latest MediaTek release: + Update the MT7922 and MT7925 firmware files to the latest MediaTek releases. - mediatek/WIFI_MT7922_patch_mcu_1_1_hdr.bin Version: 20261027203145a - mediatek/WIFI_RAM_CODE_MT7922_1.bin Version: 20261027203227 + MT7922: + mediatek/WIFI_MT7922_patch_mcu_1_1_hdr.bin Version: 20261027203145a + mediatek/WIFI_RAM_CODE_MT7922_1.bin Version: 20261027203227 - The new RAM code adds CLC records with index 3. The driver uses them as - MT792x_CLC_REGD. + MT7925: + mediatek/mt7925/WIFI_MT7925_PATCH_MCU_1_1_hdr.bin Version: 20261016232915a + mediatek/mt7925/WIFI_RAM_CODE_MT7925_1_1.bin Version: 20261016233029 - Upstream linux-firmware commit, merged in main, not in a release tag yet: - 2452612955cd linux-firmware: update firmware for MT7922 WiFi device + The new MT7922 RAM code adds CLC records with index 3. The driver uses + them as MT792x_CLC_REGD. - Earlier MediaTek updates to the same files: - 1a2f6aca3c9c (20260605, tag 20260622) - 3ea09d09e (20260724, tag 20260810, first with index 3 records) + Upstream linux-firmware commits, all in main (tag in parentheses): + MT7922, in order: + 1a2f6aca3c9c linux-firmware: update firmware for MT7922 WiFi device (20260622) + 3ea09d09ebc5 linux-firmware: update firmware for MT7922 WiFi device (20260810, first with index 3 records) + 2452612955cd linux-firmware: update firmware for MT7922 WiFi device (20261124) + MT7925, in order: + 3c11e660d3a8 linux-firmware: update firmware for MT7925 WiFi device (20260910) + 5a3f625f2e9d linux-firmware: update firmware for MT7925 WiFi device (20261124) + + All five are cherry-picked in this order. The file sizes change from one + update to the next, so the intermediate ones are taken too. That keeps + the history the same as upstream. Driver patches (already in v7.3): - 9b80bd9cab40 wifi: mt76: mt7921: add regulatory wiphy self manager support - 1f83a8378eb2 wifi: mt76: mt7921: refactor regd update to fix recursive mutex deadlock - 1a296bfd3e77 wifi: mt76: mt7921: skip unknown CLC firmware records (v7.3-rc3) + 9b80bd9cab40 wifi: mt76: mt7921: add regulatory wiphy self manager support + 1f83a8378eb2 wifi: mt76: mt7921: refactor regd update to fix recursive mutex deadlock + 1a296bfd3e77 wifi: mt76: mt7921: skip unknown CLC firmware records (v7.3-rc3) Patch series: - https://patchwork.kernel.org/project/linux-wireless/patch/[email protected]/ - (Fill in the other patchwork URLs from MediaTek's list.) + https://patchwork.kernel.org/project/linux-wireless/patch/[email protected]/ [Test Plan] - Install the updated linux-firmware on a system with an MT7922 card. Boot the oem-7.3 kernel. + Install the updated linux-firmware-mediatek on a system with an MT7922 card (and one with an MT7925 card). Boot the oem-7.3 kernel. 1. Check the firmware loaded: - $ sudo dmesg | grep -i mt7921e - Without patch: build time of the 2026-02-24 firmware. - With patch: patch build 20261027203145a, ram build 20261027203227. + $ sudo dmesg | grep -iE 'mt7921e|mt7925e' + Without patch: build time of the old firmware (MT7922: 2026-02-24). + With patch: MT7922 patch build 20261027203145a, RAM build 20261027203227. MT7925 patch build 20261016232915a, RAM build 20261016233029. - 2. Check the regulatory mode: + 2. Check the regulatory mode (MT7922): $ iw reg get Without patch: country and rules come from wireless-regdb. With patch: the phy is listed as "self-managed" with rules from the firmware. - 3. Check the card still works: + 3. Check the card still works (both cards): $ nmcli device wifi connect <ssid> password <pw> $ ping -c 10 <gateway> With patch: it connects and there are no firmware errors in dmesg. [Where problems could occur] - Could break the mt7921e WiFi driver on MT7922 (MediaTek MCU and RAM firmware). + Could break the mt7921e and mt7925e WiFi drivers (MediaTek MCU and RAM firmware). If the new firmware is bad, the card could fail to load it. The wlan - interface would then be missing and dmesg would show "Failed to start + interface would then be missing. dmesg would show "Failed to start patch" or a firmware init error. Self-managed mode changes where the country rules come from. If the new - data is wrong, valid 5 GHz or 6 GHz channels could be hidden, or - channels the country does not allow could show up. + data is wrong, valid 5 GHz or 6 GHz channels could be hidden. Channels + the country does not allow could also show up. Kernels without the CLC record check can break with this firmware. The new RAM code has index 3 records. Drivers without the bounds check write past the end of phy->clc[] (3 entries) or fail to probe. 7.0 stable kernels need d98cfccb739c "skip unknown CLC firmware records". Our 7.0.14 tree has it. Older flavors (6.17 and older) have not been checked. - The same two files are used by other MT7921/MT7922 cards, so all of them - get the new firmware. + The same files are used by other MT7921/MT7922 and MT7925 cards, so all + of them get the new firmware. + + [Other Info] + SRU for resolute (linux-firmware-mediatek 20260319.git217ca6e4-0ubuntu1.3). Stonking already has the fix (Fix Committed). + The MT7922 commit 2452612955cd was not in a release tag when this bug was filed. It is now in tag 20261124. ** Changed in: linux-firmware-mediatek (Ubuntu Stonking) Status: Fix Committed => In Progress ** Description changed: [Impact] MediaTek is dropping the wireless-regdb dependency on new platforms. The mt76 driver already has the code for it (self-managed regulatory mode, 802.11d). The MT7922 firmware in the archive has no regulatory (CLC) data for that code, so the mode never turns on. On Dell systems with MediaTek MT7922 modules, country channel and power limits come only from wireless-regdb. This blocks the feature on the new platforms. The kernel side is already in v7.3. Only the firmware is missing. Firmware in the archive today: - mediatek/WIFI_MT7922_patch_mcu_1_1_hdr.bin Version: 20260224103145a - mediatek/WIFI_RAM_CODE_MT7922_1.bin Version: 20260224103233 - mediatek/mt7925/WIFI_MT7925_PATCH_MCU_1_1_hdr.bin Version: 20260605184651a - mediatek/mt7925/WIFI_RAM_CODE_MT7925_1_1.bin Version: 20260605184805 + mediatek/WIFI_MT7922_patch_mcu_1_1_hdr.bin Version: 20260224103145a + mediatek/WIFI_RAM_CODE_MT7922_1.bin Version: 20260224103233 + mediatek/mt7925/WIFI_MT7925_PATCH_MCU_1_1_hdr.bin Version: 20260605184651a + mediatek/mt7925/WIFI_RAM_CODE_MT7925_1_1.bin Version: 20260605184805 The MT7922 RAM code only has CLC records with index 0. It has no index 3 (regulatory) record. [Fix] Update the MT7922 and MT7925 firmware files to the latest MediaTek releases. MT7922: - mediatek/WIFI_MT7922_patch_mcu_1_1_hdr.bin Version: 20261027203145a - mediatek/WIFI_RAM_CODE_MT7922_1.bin Version: 20261027203227 + mediatek/WIFI_MT7922_patch_mcu_1_1_hdr.bin Version: 20261027203145a + mediatek/WIFI_RAM_CODE_MT7922_1.bin Version: 20261027203227 MT7925: - mediatek/mt7925/WIFI_MT7925_PATCH_MCU_1_1_hdr.bin Version: 20261016232915a - mediatek/mt7925/WIFI_RAM_CODE_MT7925_1_1.bin Version: 20261016233029 + mediatek/mt7925/WIFI_MT7925_PATCH_MCU_1_1_hdr.bin Version: 20261016232915a + mediatek/mt7925/WIFI_RAM_CODE_MT7925_1_1.bin Version: 20261016233029 The new MT7922 RAM code adds CLC records with index 3. The driver uses them as MT792x_CLC_REGD. Upstream linux-firmware commits, all in main (tag in parentheses): MT7922, in order: - 1a2f6aca3c9c linux-firmware: update firmware for MT7922 WiFi device (20260622) - 3ea09d09ebc5 linux-firmware: update firmware for MT7922 WiFi device (20260810, first with index 3 records) - 2452612955cd linux-firmware: update firmware for MT7922 WiFi device (20261124) + 1a2f6aca3c9c linux-firmware: update firmware for MT7922 WiFi device (20260622) + 3ea09d09ebc5 linux-firmware: update firmware for MT7922 WiFi device (20260810, first with index 3 records) + 2452612955cd linux-firmware: update firmware for MT7922 WiFi device (20261124) MT7925, in order: - 3c11e660d3a8 linux-firmware: update firmware for MT7925 WiFi device (20260910) - 5a3f625f2e9d linux-firmware: update firmware for MT7925 WiFi device (20261124) + 3c11e660d3a8 linux-firmware: update firmware for MT7925 WiFi device (20260910) + 5a3f625f2e9d linux-firmware: update firmware for MT7925 WiFi device (20261124) All five are cherry-picked in this order. The file sizes change from one update to the next, so the intermediate ones are taken too. That keeps the history the same as upstream. Driver patches (already in v7.3): - 9b80bd9cab40 wifi: mt76: mt7921: add regulatory wiphy self manager support - 1f83a8378eb2 wifi: mt76: mt7921: refactor regd update to fix recursive mutex deadlock - 1a296bfd3e77 wifi: mt76: mt7921: skip unknown CLC firmware records (v7.3-rc3) + 9b80bd9cab40 wifi: mt76: mt7921: add regulatory wiphy self manager support + 1f83a8378eb2 wifi: mt76: mt7921: refactor regd update to fix recursive mutex deadlock + 1a296bfd3e77 wifi: mt76: mt7921: skip unknown CLC firmware records (v7.3-rc3) Patch series: - https://patchwork.kernel.org/project/linux-wireless/patch/[email protected]/ + https://patchwork.kernel.org/project/linux-wireless/patch/[email protected]/ [Test Plan] Install the updated linux-firmware-mediatek on a system with an MT7922 card (and one with an MT7925 card). Boot the oem-7.3 kernel. 1. Check the firmware loaded: $ sudo dmesg | grep -iE 'mt7921e|mt7925e' Without patch: build time of the old firmware (MT7922: 2026-02-24). With patch: MT7922 patch build 20261027203145a, RAM build 20261027203227. MT7925 patch build 20261016232915a, RAM build 20261016233029. 2. Check the regulatory mode (MT7922): $ iw reg get Without patch: country and rules come from wireless-regdb. With patch: the phy is listed as "self-managed" with rules from the firmware. 3. Check the card still works (both cards): $ nmcli device wifi connect <ssid> password <pw> $ ping -c 10 <gateway> With patch: it connects and there are no firmware errors in dmesg. [Where problems could occur] Could break the mt7921e and mt7925e WiFi drivers (MediaTek MCU and RAM firmware). If the new firmware is bad, the card could fail to load it. The wlan interface would then be missing. dmesg would show "Failed to start patch" or a firmware init error. Self-managed mode changes where the country rules come from. If the new data is wrong, valid 5 GHz or 6 GHz channels could be hidden. Channels the country does not allow could also show up. Kernels without the CLC record check can break with this firmware. The new RAM code has index 3 records. Drivers without the bounds check write past the end of phy->clc[] (3 entries) or fail to probe. 7.0 stable kernels need d98cfccb739c "skip unknown CLC firmware records". Our 7.0.14 tree has it. Older flavors (6.17 and older) have not been checked. The same files are used by other MT7921/MT7922 and MT7925 cards, so all of them get the new firmware. - - [Other Info] - SRU for resolute (linux-firmware-mediatek 20260319.git217ca6e4-0ubuntu1.3). Stonking already has the fix (Fix Committed). - The MT7922 commit 2452612955cd was not in a release tag when this bug was filed. It is now in tag 20261124. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2174563 Title: MediaTek MT7922 and MT7925 WiFi cards do not use firmware regulatory data To manage notifications about this bug go to: https://bugs.launchpad.net/hwe-next/+bug/2174563/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
