I'm having problems with network connectivity on my Ubuntu 22 install on my laptop. I have a dual boot system with Windows 10 and Ubuntu 22.04. The problem is that when I visit some websites, they keep loading for a long time and then error out saying that it took too long to load the page. The strange thing is that I am able to visit popular websites just fine, e.g., google.com, youtube.com, reddit.com, etc. When this problem happens, I can't visit stackoverflow.com, slack messages don't load on the web/browser version,etc. I don't know how to debug this or how to solve this. It seems like a very niche and strange problem.
Also, this problem doesn't happen when I'm on Windows on the same laptop. It also doesn't happen when I'm on another wifi network. Another thing is that if I disconnect and reconnect wifi on Ubuntu, then it starts to work. But after a while, the same problem happens again.
Does anyone have any useful information about how to fix this?
$ uname -a
Linux ???-XPS-15-9570 5.19.0-35-generic #36~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Fri Feb 17 15:17:25 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
$ lspci -k
...
3b:00.0 Network controller: Qualcomm Atheros QCA6174 802.11ac Wireless Network Adapter (rev 32)
Subsystem: Rivet Networks Killer Wireless-n/a/ac 1535 Wireless Network Adapter
Kernel driver in use: ath10k_pci
Kernel modules: ath10k_pci
...
Thanks