A system I am working on was based on Debian Buster (via Raspberry Pi OS).
I could shut down Wi-Fi by stopping wpa_supplicant, and it worked fine.
I have now updated my system to be based on Debian Bullseye, and things aren't working right any more.
Specifically - when wpa_supplicant finishes closing down, dhcpcd is reporting "carrier acquired" (it would already have seen "carrier lost" at this point) and rebinds the lease for wlan0, essentially trying to start Wi-Fi up again.
As far as I can see, a message from the kernel (which wasn't there before) is stimulating dhcpcd into this course of action... Anyone have any ideas why the kernel is behaving differently to before, i.e. between Buster and Bullseye?
Thanks, Richard.