Autoconnect-priority doesn't work


#1

Hello guys! I have this problem:

I have two wifi connections, and want assign higher priority to one of them. So I created two files in the system-connections folder, and put a bigger autoconnect-priority value to one of them.

The problem is: when both networks are available, it always connects to the same one.
I want my device to connect to the one with ssid=secondnetwork if both available

What can I do?

Here is the content of the files:

File #1:

[connection]
id=randomid
type=wifi
autoconnect-priority=0

[wifi]
hidden=true
mode=infrastructure
ssid=random

[ipv4]
method=auto

[ipv6]
addr-gen-mode=stable-privacy
method=auto

[wifi-security]
auth-alg=open
key-mgmt=wpa-psk
psk=randompassword

File #2:

[connection]
id=secondnetwork
type=wifi
autoconnect-priority=1

[wifi]
hidden=true
mode=infrastructure
ssid=Hackers

[ipv4]
method=auto

[ipv6]
addr-gen-mode=stable-privacy
method=auto

[wifi-security]
auth-alg=open
key-mgmt=wpa-psk
psk=42424242

#2

Hello Friends! Any help here? I have not been able to set my wifi priority yet


#3

Same here. Autoconnect-priority does not work, despite having a great number in it.

EDIT: Tested here inverting the numbers. It worked! Weird… Perhaps it’s because of me not being a native english speaker. For me, highest priority means a great number. But it looks like it’s the oposite.

So: autoconnect-priority=100 executes BEFORE autoconnect-priority=1000.


#4

@hecontreraso were you able to set priorities with the hint from @arthurmoises?