Following this answer I added a 2nd WiFi network to wpa_supplicant on my bullseye installation.

There must be something wrong with the configuration as when I reboot the router I am unable to connect to the Raspberry Pi on either network, effectively leaving me no way to connect to the device via SSH.

The configuration I used is:

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev

    ssid="NETWORK1 NAME"
    psk=<secure version of psk added when configuring pi with imager software>

    ssid="NETWORK2 NAME"

Can anyone see what I've done wrong here?


2 Answers 2


You have two errors:

First error:


should look like this


And the same for network_2

And the second error:

If you read the first comment on https://raspberrypi.stackexchange.com/a/40144/149966

This does not appear to work if you specify id= but if you instead specify a priority= for each then it does work. –  Ian Mercer Oct 21, 2020 at 3:37

So add a priority=1 and priority=2 to network_1 and netwwork_2.


There is absolutely no point in attempting to use a 7 year old post for an obsolete OS!

There are OBVIOUS formatting errors in the strings you entered. Even if you corrected the id_str entry it is doubtful that these serve any useful purpose in modern networking.

You have NOT set a country=

See How to set up networking/WiFi

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.