This is basically the mainline version of mt76 with patches to support MT7902 & firmware provided by Mediatek. I also stripped down all the unnecessary files & other hardware support to ensure only MT7902 card is supported.
Caution
Kernel 7.1 has added official support for MT7902 bluetooth and wifi, it's recommended to use their official driver instead and follow the instructions clearly on bugzilla.kernel.org's homepage when reporting problems.
Warning
This out-of-tree driver only support the PCIe version of MT7902, for SDIO support it's better if you just merge Mediatek patches on your own !
Tip
For Bluetooth support, check out this branch.
The driver supports kernel 6.6~6.19 (and might be 7.0 soon) and is usable according to users reported in this spreadsheet.
Important
Before building & installing this driver, remember to install essential packages to build a kernel driver like linux kernel's headers & toolchain. I will not cover it here.
- Get the source using
git
git clone https://github.com/hmtheboy154/mt7902
cd mt7902- To only build the driver, use this command
make -j$(nproc)- To build the driver & install it:
sudo make install -j$(nproc)Tip
As per the 20260309 release, the firmware should be already provided by your distribution, for Debian as of present, check in the unstable repo.
- To install the firmware required for the driver:
sudo make install_fw- To remove the driver:
sudo make uninstall- To remove the firmware:
sudo make uninstall_fwOnce you got the driver & firmware installed, reboot to see changes.
If you have any issue using this driver, please provide feedback in this Discord group.