Wifi not working on ASUS rog zephyrus g14 2021

This is my first post on here, so hopefully, someone will be able to help me. I'm also fairly new to Linux so need some guidance as well.

I have recently bought an Asus rog Zephyrus g14(latest one) and installed ubuntu 21.04 on there and the wifi is not working. I am also dual booting with windows 10

It doesn't display under settings in the GUI, it does show up in lspci as Network Controller: MEDIATEK Corp Device 7961.

I tried looking almost everywhere for drivers but had no luck.

Secure boot is disabled and there is no power management tab under device manager for the wireless in windows

I am really hoping someone can help me

See below output of lswh -C network and lspci

*-network UNCLAIMED       
       description: Network controller
       product: MEDIATEK Corp.
       vendor: MEDIATEK Corp.
       physical id: 0
       bus info: pci@0000:02:00.0
       version: 00
       width: 64 bits
       clock: 33MHz
       capabilities: pciexpress msi pm cap_list
       configuration: latency=0
       resources: iomemory:fe0-fdf iomemory:fe0-fdf iomemory:fe0-fdf memory:fe20300000-fe203fffff memory:fe20400000-fe20403fff memory:fe20404000-fe20404fff


02:00.0 Network controller: MEDIATEK Corp. Device 7961


Solution 1:

The problem is fixed by upgrading linux kernel to 5.12

As mentioned by Maciej, linux kernel 5.12+ has support MEDIATEK 7961. But since Ubuntu 20.04 has libc6 v2.32, I ran into issues while trying to upgrade linux kernel to 5.12.

Ubuntu 21.10 runs on kernel version 5.13, so on this and all newer versions of Ubuntu, the driver works without any changes. To use an older version of Ubuntu, you'll have to upgrade the kernel manually (see here for a good tutorial).


Edit: After a while it stopped working again even with mt7921e driver. Following this suggestion, I powered off the laptop (instead of rebooting it) and unplugged the power cable for a few minutes. Then the Wi-Fi adapter magically appeared. Related issue in the mt76 repo: click.

Solution 2:

I won with this issue. Driver for linux for this adapter is available in linux kerner 5.12+. I downloaded mainline, download and switch kernel to 5.12+ and that's all. I lost whole weekend for that but now i have device with wifii :D

  1. sudo add-apt-repository ppa:cappelikan/ppa
  2. sudo apt update
  3. sudo apt install mainline

Run mainline (not from command, click windows button and write mainline, then click on it) Select on 5.12.8 and click install. After that reboot and you'll be surprised :)