Enabling MediaTek M7902 WiFi and Bluetooth drivers on Ubuntu 24.04 the easy way

Last month, we noted that Mediatek MT7902 WiFi 6E and Bluetooth 5.x chipset finally got drivers in mainline Linux, and should be part of the Linux 7.0 release.

MT7902 wireless modules are used in many Windows laptops, but users have been asking for the Linux drivers for almost two years now. One method is to wait for the drivers to find their way into your distribution, but “hmtheyboy154” didn’t feel like waiting and backported the drivers to Linux 6.6 to 6.19. Since I own one of those laptops, namely the ASUS Vivobook 16, I gave it a try on Ubuntu 24.04, but it should work on other Linux distributions as well.

Mediatek MT7902 Linux

Note that this method only works with the PCIe driver, so if you own an SDIO module, you’d need to work out another solution. My Ubuntu 24.04 laptop is indeed using an MT7902 PCIe module (AW-XB552NF):


I could install the driver in four steps:


You can optionally install the firmware, although it might already be part of your distribution:


After that, you could reboot your laptop,  but I used modprobe instead:


I could then enable WiFi on Ubuntu 24.04 and connect to my access point.

MediaTek MT7902 Ubuntu 24.04 WiFi

The kernel log should look something like that:


I still did a quick iperf3 test with 5 GHz WiFi, about 2 meters from a Xiaomi Mi Router AX6000.

  • Download
  • Upload

About 400-450 Mbps in either direction, which should be fine with a link speed of 600 Mbps, plus my ISP only supports 300 Mbps uploads/downloads.

MT7902 Linux Link Speed

I also tried Bluetooth, but it didn’t work for me at first, as I couldn’t enable it in the settings. I eventually noticed it just requires a different branch on the same GitHub repo:


I could then enable Bluetooth, pair my smartphone to the laptop, and transfer a file from my Android phone to the laptop.

MT7902 Linux Bluetooth

Note that the btusb and btmtk modules conflict with btusb_mt7902, so I had to remove them, or I would get the error:


To do that permanently, create the file /etc/modprobe.d/blacklist_btusb.conf with:


It took a long while to get WiFi and Bluetooth support on Linux for MT7902 modules, but it’s now easy enough to install on Ubuntu 24.04 without waiting for the official release.

Share this:

Support CNX Software! Donate via cryptocurrencies, become a Patron on Patreon, or purchase goods on Amazon or Aliexpress. We also use affiliate links in articles to earn commissions if you make a purchase after clicking on those links.

Radxa Orion O6 Armv9 mini-ITX motherboard
Subscribe
Notify of
guest
The comment form collects your name, email and content to allow us keep track of the comments placed on the website. Please read and accept our website Terms and Privacy Policy to post a comment.
10 Comments
oldest
newest
Boardcon MINI1126B-P AI vision system-on-module wit Rockchip RV1126B-P SoC