This is for diagnostic purposes, but if a working set of commands is found they will require scripting as a systemd service to have a fix that works.
Modified version:
Run the following commands before suspending:
su
enter the systems root password.
Then paste in the following commands and execute them:
sudo nmcli networking off
sleep 2
sudo systemctl stop NetworkManager
sleep 2
sudo ip link set wlp7s0 down
sleep 2
sudo modprobe -r ath10k_pci
sleep 2
sudo modprobe -r ath10k_core
sleep 2
sudo rfkill unblock all
exit
Run the following commands after resuming:
su
enter the systems root password.
Then paste in the following commands and execute them:
sudo modprobe ath10k_pci
sleep 2
sudo rfkill unblock all
sleep 2
sudo ip link set wlp7s0 up
sleep 2
sudo systemctl start NetworkManager
sleep 2
sudo rfkill unblock wifi
sleep 2
sudo nmcli networking on
sleep 2
exit
Please post the inputs and outputs of all commands.
I think you are somewhat misunderstanding how this works. You do not issue a set of commands that fixes the problem permanently. To suspend resume suspend again the full set of commands must be issued repetitively each time. That is why a systemd service is the preferred method as it is executed automatically pre and post suspend.