[SRU][Q][PATCH 1/1] UBUNTU: SAUCE: wifi: mt76: mt7925: add DMI quirk for HP Z2 Mini G1a Workstation

AceLan Kao acelan.kao at canonical.com
Mon Jan 5 07:18:04 UTC 2026


From: "Chia-Lin Kao (AceLan)" <acelan.kao at canonical.com>

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

The mt7925_rfkill_poll() function introduced in commit 085749115fd37
("wifi: mt76: mt7925: add rfkill_poll for hardware rfkill") causes
undefined behavior on HP Z2 Mini G1a Workstation Desktop PC.

Add a DMI quirk to skip rfkill polling on this specific hardware by
checking the system vendor and product name and returning early from
the function when matched.

This issue will be fixed by the new firmware in the near future, so we
don't need to carry this sauce patch to the next version of the kernel.

Signed-off-by: Chia-Lin Kao (AceLan) <acelan.kao at canonical.com>
---
 drivers/net/wireless/mediatek/mt76/mt7925/main.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/drivers/net/wireless/mediatek/mt76/mt7925/main.c b/drivers/net/wireless/mediatek/mt76/mt7925/main.c
index c7903972b1d5..14280ab5bc28 100644
--- a/drivers/net/wireless/mediatek/mt76/mt7925/main.c
+++ b/drivers/net/wireless/mediatek/mt76/mt7925/main.c
@@ -6,6 +6,7 @@
 #include <linux/pci.h>
 #include <linux/module.h>
 #include <linux/ctype.h>
+#include <linux/dmi.h>
 #include <net/ipv6.h>
 #include "mt7925.h"
 #include "mcu.h"
@@ -2227,6 +2228,11 @@ static void mt7925_rfkill_poll(struct ieee80211_hw *hw)
 	struct mt792x_phy *phy = mt792x_hw_phy(hw);
 	int ret;

+	/* Quirk for HP Z2 Mini G1a Workstation - rfkill_poll causes undefined behavior */
+	if (dmi_match(DMI_SYS_VENDOR, "HP") &&
+	    dmi_match(DMI_PRODUCT_NAME, "HP Z2 Mini G1a Workstation Desktop PC"))
+		return;
+
 	mt792x_mutex_acquire(phy->dev);
 	ret = mt7925_mcu_wf_rf_pin_ctrl(phy);
 	mt792x_mutex_release(phy->dev);
--
2.43.0




More information about the kernel-team mailing list