WiFi randomly (or under load) disconnects on Ubuntu 18.04 with Qualcomm Atheros QCA6174

I had the same issue, I solved it, at least it seems it works so far, by applying this workaround based on this solution.

Here the workaround:

  1. Replace the folder /lib/firmware/ath10k/QCA6174/hw3.0 with the corresponding from https://github.com/kvalo/ath10k-firmware/tree/master/QCA6174/hw3.0

  2. Rename firmware-4.bin_WLAN.RM.2.0-00180-QCARMSWPZ-1 to firmware-6.bin

  3. Restart Ubuntu

Hope it helps.