I have installed the drivers for the WIFI dongle following this guide: https://community.tp-link.com/en/home/forum/topic/547276
After installing the driver I VERY rarely can actually connect to the WIFI. feels like once every thousand reboots I get to connect to my WIFI.
The WIFI dongle works on windows perfectly.
I use Ubuntu 22.04.
uname -r results in 5.17.5-051705-generic
here are some of my dmesg logs:
[ 909.493104] RTW: nolinked power save leave
[ 921.740749] RTW: nolinked power save enter
[ 922.381491] RTW: [HALMAC][ALWAYS]shall R reg twice!!
[ 935.287354] start_addr=(0x20000), end_addr=(0x40000), buffer_size=(0x20000), smp_number_max=(16384)
[ 936.076548] RTW: nolinked power save leave
[ 942.607367] RTW: nolinked power save enter
[ 943.440423] RTW: [HALMAC][ALWAYS]shall R reg twice!!
[ 956.356112] start_addr=(0x20000), end_addr=(0x40000), buffer_size=(0x20000), smp_number_max=(16384)
[ 957.145217] RTW: nolinked power save leave
[ 963.583909] RTW: nolinked power save enter
[ 965.346346] RTW: [HALMAC][ALWAYS]shall R reg twice!!
[ 978.255996] start_addr=(0x20000), end_addr=(0x40000), buffer_size=(0x20000), smp_number_max=(16384)
[ 979.045159] RTW: nolinked power save leave
[ 985.340343] audit: type=1326 audit(1663788617.261:138): auid=1000 uid=1000 gid=1000 ses=2 subj==snap.chromium.chromium (enforce) pid=3991 comm="chrome" exe="/snap/chromium/2064/usr/lib/chromium-browser/chrome" sig=0 arch=c000003e syscall=330 compat=0 ip=0x7ff1e109300b code=0x50000
[ 985.436308] audit: type=1326 audit(1663788617.357:139): auid=1000 uid=1000 gid=1000 ses=2 subj==snap.chromium.chromium (enforce) pid=4012 comm="chrome" exe="/snap/chromium/2064/usr/lib/chromium-browser/chrome" sig=0 arch=c000003e syscall=330 compat=0 ip=0x7ff1e109300b code=0x50000
[ 985.575732] RTW: nolinked power save enter
[ 986.226840] RTW: [HALMAC][ALWAYS]shall R reg twice!!
[ 986.588853] audit: type=1326 audit(1663788618.509:140): auid=1000 uid=1000 gid=1000 ses=2 subj==snap.chromium.chromium (enforce) pid=4035 comm="chrome" exe="/snap/chromium/2064/usr/lib/chromium-browser/chrome" sig=0 arch=c000003e syscall=330 compat=0 ip=0x7ff1e109300b code=0x50000
[ 999.147526] start_addr=(0x20000), end_addr=(0x40000), buffer_size=(0x20000), smp_number_max=(16384)
[ 999.936628] RTW: nolinked power save leave
[ 1006.479491] RTW: nolinked power save enter
[ 1007.118560] RTW: [HALMAC][ALWAYS]shall R reg twice!!
[ 1020.035283] start_addr=(0x20000), end_addr=(0x40000), buffer_size=(0x20000), smp_number_max=(16384)
[ 1020.824384] RTW: nolinked power save leave
[ 1032.555940] RTW: nolinked power save enter
[ 1033.195004] RTW: [HALMAC][ALWAYS]shall R reg twice!!
[ 1046.102724] start_addr=(0x20000), end_addr=(0x40000), buffer_size=(0x20000), smp_number_max=(16384)
[ 1046.891839] RTW: nolinked power save leave
[ 1053.447695] RTW: nolinked power save enter
[ 1059.288449] RTW: [HALMAC][ALWAYS]shall R reg twice!!
[ 1063.586664] audit: type=1326 audit(1663788695.502:141): auid=1000 uid=1000 gid=1000 ses=2 subj==snap.chromium.chromium (enforce) pid=4146 comm="chrome" exe="/snap/chromium/2064/usr/lib/chromium-browser/chrome" sig=0 arch=c000003e syscall=330 compat=0 ip=0x7ff1e109300b code=0x50000
[ 1063.716100] audit: type=1326 audit(1663788695.634:142): auid=1000 uid=1000 gid=1000 ses=2 subj==snap.chromium.chromium (enforce) pid=4164 comm="chrome" exe="/snap/chromium/2064/usr/lib/chromium-browser/chrome" sig=0 arch=c000003e syscall=330 compat=0 ip=0x7ff1e109300b code=0x50000
[ 1072.215168] start_addr=(0x20000), end_addr=(0x40000), buffer_size=(0x20000), smp_number_max=(16384)
[ 1073.004293] RTW: nolinked power save leave
[ 1079.555136] RTW: nolinked power save enter
[ 1081.345359] RTW: [HALMAC][ALWAYS]shall R reg twice!!