2

I'd like to know if it's possible -- I hope and guess it is -- to switch between different networks in wpa_cli without using select_network, as this disables all other networks.

Thing is, say I have n networks to connect to and stored in my wpa_supplicant.conf. For whatever reason, I want to switch from network 1 to 2. Right now I'm using select_network, which disables all the other networks 1, 3, ..., n. This means that if network 2 crashes for some reason, wpa_supplicant won't automatically connect to a different available network. I'd like to avoid that by finding a method to switch between networks without using select_network. Any idea how to do that?

  • "select_network any" isn't quite what you want - but this is a good question. – Bruce Ediger May 6 at 16:31
  • First thing I'd try is to write a script using wpa_cli that changes the priorities of the configured networks, and gives the one you want to connect to the highest priority, and see if this already gets wpa_supplicant to switch. – dirkt May 7 at 6:10
  • changing priorities followed by a reassociate seems to do what i want. thanks @dirkt – plazmakeks May 7 at 7:13
  • For the next person with the same problem, please write an answer with details about what you did. You can accept your own answer. – dirkt May 7 at 7:15
1

One can change the priorities of each network with set_network <networdId> priority <priority> and perform a reassociate afterwards.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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