Installing wifi drivers of Ubuntu Linux 22.04 for ASUS PRIME X670-P WIFI.png

1. Connect an ethernet cable to computer

2. sudo apt install build-essential

3. sudo apt install git

4. sudo apt-get update

5. sudo apt-get upgrade

6. Installled hardinfo (System Profiler and Benchmark) from Ubuntu Software.

7. Found network card under Devices -> PCI and got the chipset name from there.

8. git clone https://github.com/lwfinger/rtw89.git

9. cd rtw89

10. make

11. sudo make install

12. sudo modprobe rtw89pci