I encounter wifi disonnection problem on a Dell XPS 13 9360. Here is the solution I used to fix this bad behavior.
lspci | grep -i net
3a:00.0 Network controller: Qualcomm Atheros QCA6174 802.11ac Wireless Network Adapter (rev 32)
Here, we have the QCA6174
model.
https://github.com/kvalo/ath10k-firmware
cd /lib/firmware/ath10k/QCA6174/hw3.0
sudo cp firmware-6.bin firmware-6.bin.backup
sudo cp <downloaded_file> firmware-6.bin
Update path using your wifi card model : /lib/firmware/ath10k/<wifi_card_model>/hw3.0
sudo modprobe -r ath10k_pci ath10k_core
sudo modprobe ath10k_pci
sudo modprobe ath10k_core