Laptop immediately wakes up after suspend

The simplest workaround until bug is fixed is to create systemd service that disabling module on suspend and enabling it on wakeup.

  1. Create file /etc/systemd/system/root-suspend-fix.service:

[Unit]
Description=Suspend fix for ath11k_pci
Before=sleep.target
StopWhenUnneeded=yes

[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=-modprobe -r ath11k_pci
ExecStop=-modprobe ath11k_pci

[Install]
WantedBy=sleep.target

  1. Enable service:
    sudo systemctl enable --now root-suspend-fix.service