After some time of playing around with different things, the following steps helped:
For
uname -v
#1 SMP PREEMPT_DYNAMIC Kali 6.8.11-1kali2 (2024-05-30)
First, check the dongle is available
This sequence of commands worked for me:
sudo apt install build-essential git dkms
sudo apt-get install linux-headers-$(uname -r)
cd Downloads
git clone https://github.com/aircrack-ng/rtl8812au.git
cd rtl8812au/
sudo make dkms_install
dkms status
reboot# sudo modprobe 8812au
sudo apt install realtek-rtl88xxau-dkms reboot # Check the driver: dkms status 8812au/5.6.4.2_35491.20191025, 6.8.11-amd64, x86_64: built
realtek-rtl8814au/5.8.5.1~git20240527.d8208c8, 6.8.11-amd64, x86_64: installed realtek-rtl88xxau/5.6.4.2~git20240726.63cf0b4, 6.8.11-amd64, x86_64: installed
# check available wifi
nmcli dev wifi