[SRU][P][PATCH 0/4] Add rfkill feature on mt7925

En-Wei Wu en-wei.wu at canonical.com
Wed Jul 16 08:02:28 UTC 2025


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

[ Impact ]

The rfkill_poll callback for mt7925 is currently no implemented. This
may in some cases lead to a confusing situation where its status (e.g.
in the GUI) not consistent with actual hardware state.

[ Fix ]

To support the rfKill feature on mt7925, both driver and linux-firmware
updates are required.

Cherry-pick from the following commit:

- [PATCH v2] wifi: mt76: mt7925: add rfkill_poll for hardware
rfkill [1]

And its dependent patches:

- [PATCH 00/10] Add MT7990 support [2] (Only first 3 patches are
needed.)

[ Test cases ]

1. Boot the system and go to BIOS
2. Eable the "WiFi Radio Control" in BIOS
3. Continue the boot to Ubuntu
4. Connect the system to a WiFi access point
5. Once connected to WiFi, hot-plug the Ethernet cable into the machine
6. Confirm that wireless function is toggled off by running the
   following command:
   $ rfkill list
   One should see the "blocked" in the row with type "wlan"

[ Where the problem could occur ]

To avoid conflicts, some of the dependent patches include rework for the mt799x 
series, which are preliminaries for properly support MT7990. Currently there's 
no platform having those chips, so this rework is less likely to impact existing
platforms.

However, this may make the MT7990 partially functional (instead of not functioning 
at all), which might be confusing in the future enablement work.

[ Additional information ]

[1] https://lore.kernel.org/all/20250507053131.4173691-1-allan.wang@mediatek.com/
[2] https://lore.kernel.org/all/20250328055058.1648755-1-shayne.chen@mediatek.com/

Signed-off-by: En-Wei Wu <en-wei.wu at canonical.com>
---
Allan Wang (1):
      wifi: mt76: mt7925: add rfkill_poll for hardware rfkill

Peter Chiu (1):
      wifi: mt76: mt7996: rework WA mcu command for mt7990

Shayne Chen (1):
      wifi: mt76: mt7996: add macros for pci device ids

StanleyYP Wang (1):
      wifi: mt76: connac: add support to load firmware for mt7990

 drivers/net/wireless/mediatek/mt76/mt76_connac.h   |  7 +-
 .../net/wireless/mediatek/mt76/mt76_connac_mcu.c   |  3 +-
 .../net/wireless/mediatek/mt76/mt76_connac_mcu.h   |  3 +
 drivers/net/wireless/mediatek/mt76/mt7925/main.c   | 16 +++++
 drivers/net/wireless/mediatek/mt76/mt7925/mcu.c    | 37 +++++++++++
 drivers/net/wireless/mediatek/mt76/mt7925/mt7925.h |  1 +
 drivers/net/wireless/mediatek/mt76/mt7925/pci.c    |  4 ++
 .../net/wireless/mediatek/mt76/mt7996/coredump.c   |  4 +-
 drivers/net/wireless/mediatek/mt76/mt7996/eeprom.c |  8 +--
 drivers/net/wireless/mediatek/mt76/mt7996/init.c   |  4 +-
 drivers/net/wireless/mediatek/mt76/mt7996/mcu.c    | 77 +++++++++++++++++-----
 drivers/net/wireless/mediatek/mt76/mt7996/mcu.h    |  6 ++
 drivers/net/wireless/mediatek/mt76/mt7996/mmio.c   |  6 +-
 drivers/net/wireless/mediatek/mt76/mt7996/mt7996.h | 21 +++++-
 drivers/net/wireless/mediatek/mt76/mt7996/pci.c    | 17 +++--
 15 files changed, 173 insertions(+), 41 deletions(-)
---
base-commit: e9eb2b731a00d367fb497e944f0947d7a408370e
change-id: 20250716-dwtn-13-8a437c0088db

Best regards,
-- 
En-Wei Wu <en-wei.wu at canonical.com>




More information about the kernel-team mailing list