Jump to content

Recommended Posts

Guest theShire
Posted (edited)

Hi all,

just a quick question about setting the priority of wireless networks.

This is what my current wpa_supplicant.conf file looks like:

ctrl_interface=DIR=/data/system/wpa_supplicant GROUP=wifi

update_config=1


network={

	ssid="MyHomeNetwork"

	scan_ssid=1

	psk="{plaintext password}"

	key_mgmt=WPA-PSK

}


network={

	ssid="Alt.Net#1"

	psk="{plaintext password}"

	key_mgmt=WPA-PSK

	group=CCMP TKIP

	priority=40

	disabled=1

}


network={

	ssid="Alt.Net#2"

	psk="{plaintext password}"

	key_mgmt=WPA-PSK

	priority=40

	disabled=1

}
Would changing wpa_supplicant to the following achieve what I want?
ctrl_interface=DIR=/data/system/wpa_supplicant GROUP=wifi

update_config=1


network={

	ssid="[Alt.Net#1]"

	psk="[plaintext password]"

	key_mgmt=WPA-PSK

	group=CCMP TKIP

	priority=97

}


network={

	ssid="[Alt.Net#2]"

	psk="[plaintext password]"

	key_mgmt=WPA-PSK

	priority=98

}


network={

	ssid="[MyHomeNetwork]"

	scan_ssid=1

	psk="[plaintext password]}"

	key_mgmt=WPA-PSK

	priority=99

}

ie:

If [Alt.Net#2] is available then [MyHomeNetwork] is ignored, and the Phone connects to [Alt.Net#2]

If [Alt.Net#1] is available then [Alt.Net#2] is ignored, and the Phone connects to [Alt.Net#1]

in this way my home network has the lowest priority but as the alternative networks are nowhere near my home network then the Phone will connect to this.

I've tried searching for "wpa_supplicant priority" & "wpa supplicant priority" on the forum but haven't found anything definitive. I've also looked on google for info. Just trying to clarify my understanding of the wpa_supplicant setup before I make a mess of my settings :lol:

Edited by theShire
Posted (edited)

No, its the other way around, the bigger the priority the biggest change to be picked

http://www.unix.com/man-page/FreeBSD/5/wpa_supplicant.conf/

priority

The priority of a network when selecting among multiple networks;

a higher value means a network is more desirable. By default

networks have priority 0. When multiple networks with the same

priority are considered for selection, other information such as

security policy and signal strength are used to select one.

Edited by lpinho

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.