i own a framework 13 laptop with the AMD 7040 series cpu and the mediatek wireless card, which randomly panics when the system wakes up from suspension. The bug occurs on Parrot Security 7 with linux kernel 6.12, 6.18 and 6.19, but i believe Debian 13 could be affected as well. the following fix doesn't try to patch the driver, but rather to disable it before suspension and re-enable it on wake up.
sudo nano /lib/systemd/system-sleep/framework-wifi-toggle
#!/bin/bash