You will need to create two new files in the following directory: /etc/wpa_supplicant/
The new files should be named with the interface name i.e wpa_supplicant-wlan1.conf
You should end up with two files like so:
for interface wlan0:
- file /etc/wpa_supplicant/wpa_supplicant-wlan0.conf
for interface wlan1:
- file /etc/wpa_supplicant/wpa_supplicant-wlan1.conf
content of wpa_supplicant-wlan0.conf file
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
country=US
network={
ssid="ssid0"
psk="pass0"
}
content of wpa_supplicant-wlan1.conf file
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
country=US
network={
ssid="ssid1"
psk="pass1"
}
reboot PI and you should have SSID attached to an interface.
Thanks. This works in my
NixOS
– typelogic – 2019-09-20T02:15:36.623How would you use this if wpa_supplicant is being ls being run as a service e.g. via systemd? – alexpotato – 2020-02-25T12:25:35.257