N/A Mediatek MTK7921K WiFi card driver - Ubuntu 21.10

Hi,
I've just restarted my PC (not for the first time since the WiFi started working) and all the old symptoms are back

Code:
sam@sam-work:~$ inxi -Fxxz
System:
  Kernel: 5.15.0-051500-generic x86_64 bits: 64 compiler: gcc v: 11.2.0
  Desktop: GNOME 40.5 tk: GTK 3.24.30 wm: gnome-shell dm: GDM3
  Distro: Ubuntu 21.10 (Impish Indri)
Machine:
  Type: Desktop System: Gigabyte product: X570S AORUS PRO AX v: -CF
  serial: <filter>
  Mobo: Gigabyte model: X570S AORUS PRO AX serial: <filter>
  UEFI: American Megatrends LLC. v: F3d PI date: 10/15/2021
Network:
  Device-1: MEDIATEK driver: N/A port: f000 bus-ID: 05:00.0
  chip-ID: 14c3:0608
  Device-2: Intel Ethernet I225-V vendor: Gigabyte driver: igc v: kernel
  port: f000 bus-ID: 06:00.0 chip-ID: 8086:15f3
  IF: enp6s0 state: up speed: 100 Mbps duplex: full mac: <filter>
  IF-ID-1: docker0 state: down mac: <filter>
  IF-ID-2: usb0 state: unknown speed: -1 duplex: half mac: <filter>

Code:
sam@sam-work:~$ lspci -nnk | grep -iA3 net; mokutil --sb-state
05:00.0 Network controller [0280]: MEDIATEK Corp. Device [14c3:0608]
    Subsystem: MEDIATEK Corp. Device [14c3:0608]
    Kernel modules: mt7921e
06:00.0 Ethernet controller [0200]: Intel Corporation Ethernet Controller I225-V [8086:15f3] (rev 01)
    Subsystem: Gigabyte Technology Co., Ltd Ethernet Controller I225-V [1458:e000]
    Kernel driver in use: igc
    Kernel modules: igc
07:00.0 Non-Essential Instrumentation [1300]: Advanced Micro Devices, Inc. [AMD] Starship/Matisse Reserved SPP [1022:1485]
SecureBoot disabled
Platform is in Setup Mode

This is very frustrating!
 


I don't have much (any) experience with patching files, but does this not suggest that there should be a pci.c file in drivers/net/wireless/mediatek/mt76/mt7921/ ?
Code:
sam@sam-work:/usr/src/linux-headers-5.15.0-051500/drivers/net/wireless/mediatek/mt76/mt7921$ ls -a
.  ..  Kconfig  Makefile

I don't have anything there

Patch code:
Code:
diff --git a/drivers/net/wireless/mediatek/mt76/mt7921/pci.c b/drivers/net/wireless/mediatek/mt76/mt7921/pci.c
index 305b63fa1a8a..0cff7c079b5f 100644
--- a/drivers/net/wireless/mediatek/mt76/mt7921/pci.c
+++ b/drivers/net/wireless/mediatek/mt76/mt7921/pci.c
@@ -15,6 +15,8 @@
 static const struct pci_device_id mt7921_pci_device_table[] = {
     { PCI_DEVICE(PCI_VENDOR_ID_MEDIATEK, 0x7961) },
     { PCI_DEVICE(PCI_VENDOR_ID_MEDIATEK, 0x7922) },
+    { PCI_DEVICE(PCI_VENDOR_ID_MEDIATEK, 0x0608) },
+    { PCI_DEVICE(PCI_VENDOR_ID_MEDIATEK, 0x0616) },
     { },
 };
 

Members online

No members online now.

Latest posts

Top