I can't connect to Wi-Fi

Hi,
I installed Qubes 4.2.2 with kernel latest the other day.I tried to connect to Wi-Fi, but there was no Wi-Fi item in the settings.

sudo apt install firmware-libertas
I tried to run it, but the Wi-Fi settings did not appear.
Also,the result of running lspci -v is as follows.

00:06.0 Network controller: Intel Corporation Meteor Lake PCH CNVi Wifi (rev 20)
Subsystem: Intel Corporation Meteor Lake PCH CNVi WiFi (Wi-Fi 6E AX211 160MHz)
Physical Slot: 6
Flags: fast devsel, IRQ 42
Memory at f2080000 (64-bit, non-prefetchable) [size=16K]
Capabilities: <access denied>
Kernel modules: iwlwifi

Does anyone know a solution?

Make sure the network device shows up inside sys-net.

You’d do that by opening “Settings” and checking the “Devices” page.

If the controller is already selected, I don’t know how to help beyond that.

Hopefully someone with more knowledge can help past that.

Maybe your wifi device isn’t compatible with qubes, if you really can’t get it working. I have a laptop where sys-net won’t launch if I’ve attached the wifi controller to it.

Assuming that you have your Wireless network controller AX211 attached to sys-net qube, check the output of this command in sys-net qube’s terminal to see if you have the network interface associated with this controller available:

ip a

You can also check the logs in sys-net using journalctl command to search for any errors related to this network controller.
Is your sys-net qube based on a debian or fedora template?
If it’s debian then try to use fedora template because the firmware in debian is quite old and may miss the support for your network controller.

Can I change the sys-net template after installing Qubes?

If you installed both debian and fedora templates during initial setup then yes, you can change the qube’s template in its Settings → Basic tab if the qube is stopped.

I could connect to Wi-Fi !
Thank you very much.