Using TP-Link AC600 on Ubuntu 22.04

Apparently the TP-Link AC600 wireless usb adapter does not run out of the box on Ubuntu 22.04, and the drivers on the internet used to work but have apparently stopped working. The solution is to compile an older version of the drivers. The solution is written in this GitHub comment by user echo-lalia. I m copying [ ]