Hardware & OS Details
Laptop: Acer Aspire A315-59
Wi-Fi Chip: MediaTek MT7902 (14c3:7902, Subsystem: 1a3b:5524)
Ethernet Controller: Realtek RTL8111/8168/8211/8411 (10ec:8168)
OS: Manjaro KDE (Latest Updates Installed)
Kernel: 6.12.12-2-MANJARO
Wi-Fi Driver (mt7921e): Installed via linux-firmware package
Issue Summary
I have no Wi-Fi on my laptop, even though the hardware is detected.
What Works:
lspci -nnk shows my Wi-Fi chip (14c3:7902)
The mt7921e driver is installed (modinfo mt7921e shows other MT79XX devices)
dkms module for mt7902 was built successfully
What Doesn’t Work:
ip a does not show wlan0 (only Ethernet and Loopback).
nmcli device status does not list a Wi-Fi adapter.
Manually binding the driver fails with “No such device”:
echo “0000:2a:00.0” | sudo tee /sys/bus/pci/drivers/mt7921e/bind
tee: /sys/bus/pci/drivers/mt7921e/bind: No such device
Attempting to force the PCI device ID into the driver (new_id) fails:
echo “14c3 7902” | sudo tee /sys/bus/pci/drivers/mt7921e/new_id
tee: /sys/bus/pci/drivers/mt7921e/new_id: Invalid argument
What I Have Tried So Far
Checking Hardware & Kernel Driver
lspci -nnk | grep -A3 -i network
OUTPUT:
0000:2a:00.0 Network controller [0280]: MEDIATEK Corp. Device [14c3:7902]
Subsystem: AzureWave Device [1a3b:5524]
Kernel modules: mt7902
0000:2b:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8211/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 15)
Observation: The kernel module is detected, but there is no Kernel driver in use line.
also ran: modinfo mt7921e | grep alias
Observation: 14c3:7902 is missing from the supported aliases.
I installed the latest kernel and firmware but gave no improvement:
sudo pacman -Syu linux-firm ware
sudo mhwd-kernel -i linux66
sudo reboot
I tried rescanning PCI devices
echo 1 | sudo tee /sys/bus/pci/rescan
But no change and wifi adapter is still unclaimed.
I also tried manually unbinding/binding:
echo “0000:2a:00.0” | sudo tee /sys/bus/pci/drivers/mt7921e/bind
OUTPUT: Error: “No such device”.
Since modinfo mt7921e does not include 14c3:7902, I tried modifying the driver source:
1. Located the PCI device table inside the driver source:
grep -r “pci_device_id” drivers/net/wireless/mediatek/mt76/
Found drivers/net/wireless/mediatek/mt76/mt7921/pci.c containing:
static const struct pci_device_id mt7921_pci_device_table = {
{ PCI_DEVICE(PCI_VENDOR_ID_MEDIATEK,
.driver_data = (kernel_ulong_t)MT7921_FIRMWARE_WM },
{ PCI_DEVICE(PCI_VENDOR_ID_MEDIATEK, 0x7922),
.driver_data = (kernel_ulong_t)MT7922_FIRMWARE_WM },
{ PCI_DEVICE(PCI_VENDOR_ID_MEDIATEK, 0x7920),
.driver_data = (kernel_ulong_t)MT7920_FIRMWARE_WM },
{ },
};
Manually added 14c3:7902:
{ PCI_DEVICE(PCI_VENDOR_ID_MEDIATEK, 0x7902),
.driver_data = (kernel_ulong_t)MT7921_FIRMWARE_WM },
Tried recompiling the driver:
make M=drivers/net/wireless/mediatek/mt76
error:
/home/isaac/linux-source/Makefile:778: /home/isaac/linux-source/include/config/auto.conf: No such file or directory
make[1]: *** [/home/isaac/linux-source/Makefile:251: __sub-make] Error 2
make: *** [Makefile:251: __sub-make] Error 2
Issue: The kernel source is missing the necessary build configuration files.
What Help I Need
- How can I properly add support for MediaTek MT7902 (14c3:7902) in the mt7921e driver?
Did I modify the right section (drivers/net/wireless/mediatek/mt76/mt7921/pci.c)?
Should I be using MT7921_FIRMWARE_WM or a different firmware?
- How do I fix the kernel source missing build configuration files?
make is failing due to missing /include/config/auto.conf.
What steps should I follow to properly compile a modified driver in Manjaro?
- Are there any alternative drivers or community patches for MT7902?
I tried samveen/mt7902-dkms.git, but it lacks a Makefile and didn’t work.
- Is there a way to manually load a firmware file for my card?
linux-firmware doesn’t seem to contain a WIFI_MT7902_*.bin file.
Can I manually place a firmware file in /lib/firmware/mediatek/?
Any help would be massively appreciated!
I’m comfortable editing files and compiling drivers, but I just need proper steps to make this work.
Notes for Anyone Trying to Help
Wi-Fi chip: MediaTek MT7902 (14c3:7902)
Kernel: 6.12.12-2-MANJARO
Ethernet works, but Wi-Fi is unclaimed.
Attempted driver patching but can’t compile.