0

RPi 3B+ PRETTY_NAME="Raspbian GNU/Linux 11 (bullseye)"
At /etc/wpa_supplicant/wpa_supplicant.conf I have some network definitions like:

network={
        ssid="SID 1"
        psk="###"
        key_mgmt=WPA-PSK
        priority=1
}

network={
        ssid="SID 0"
        psk="###"
        key_mgmt=WPA-PSK
        priority=0
}

network={
        ssid="SID 2"
        psk="###"
        key_mgmt=WPA-PSK
        priority=2

Turning on the RPi it uses "SID 2" because its priority=2.
When "SID 2" loses internet I want connection switch to other network with internet.
It doesn't happen automatically. It still keeps connected to SID 2 without internet connection. How to perform that?

1 Answer 1

1

wpa_supplicant knows nothing about internet.

It will only select the highest priority or strongest WiFi signal.

You will have to write some code to detect internet loss and to switch networks.

2
  • wpa_supplicant.conf was mentioned as a reference. I understand it has nothing to do with internet connection. Commented Jul 16, 2022 at 15:50
  • Milliways, can you expand your answer on the side of "write some code"? I am curious on what could be done on that front.
    – user146487
    Commented Apr 12, 2023 at 11:13

Your Answer

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

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