The Wi-Fi adapter on my VivoBook 17 has been acting up under Ubuntu 18.04 LTS insofar that at a random point in time, possibly accelerated by power saving features, the Wi-Fi will stop working with suspicious syslog entries:
ath10k_pci 0000:03:00.0: failed to wake target for read32 at 0x0003a028: -110
The usual tricks (suspend/resume, reload driver, aeroplane mode) don’t help.
A bit of searching  and filling out blanks leads me to believe that the Atheros Wi-Fi adapter needs to undergo a hard-reset by removing it from the PCI bus and triggering a device scan.
The script can be found in my github repository . The driver name is configured with the “driver_name” variable and the device name in “device_name”. The script locates the PCI ID for the device, finds the corresponding entry in the Linux device tree and removes it. After that, a PCI device scan is triggered which re-adds the device. I’m not 100% sure whether the driver needs to be reloaded, the script does it anyway.
 Resetting PCI device in Linux