You could also simply replace wpa_supplicant with iwd if you were so inclined. I prefer iwd myself, and it is slated to replace wpa_supplicant just like wayland is intended to replace X11.
It just so happens that I made a post yesterday with directions on how to replace wpa_supplicant with iwd.