Using Arch Linux on a Raspberry Pi and a USB Wi-Fi dongle, I can get Wi-Fi working by enabling the wpa_supplicant@wlan0 systemd service. This uses the /etc/wpa_supplicant/[email protected] file and specifies the wlan0 interface.
I understand the wpa_supplicant systemd service does the same thing, except it autodetects the wireless interface, but starting this service instead doesn't work, even when I have a valid /etc/wpa_supplicant/wpa_supplicant.conf file.
How would I use the wpa_supplicant systemd service to autodetect the wireless interface and setup my Wi-Fi?
If autodetection is not what the wpa_supplicant service does, what is the point of the wpa_supplicant service vs the wpa_supplicant@interface service?
