jojo_angelov
Posts: 38
Joined: Mon Jan 06, 2014 1:59 am

How does wpa_supplicant handle open networks with SSID ?

Wed Oct 22, 2014 5:04 pm

If I specify a network with an SSID and key_mgmt=NONE, and if I have several open networks, would the PI connect to the one that matches the SSID or just pick one that has no key? I am wanting the pi to only connect to MY open network and no other network.

mikerr
Posts: 2789
Joined: Thu Jan 12, 2012 12:46 pm
Location: UK
Contact: Website

Re: How does wpa_supplicant handle open networks with SSID ?

Wed Oct 22, 2014 5:38 pm

It'll connect to the one that matches the SSID.

By default it will never connect to any unspecified SSID network, even open unsecured ones unless you add this:

Code: Select all

network={
        key_mgmt=NONE
        priority=-999
}
The low priority just makes sure it connects to any of your known networks in preference
Android app - Raspi Card Imager - download and image SD cards - No PC required !

jojo_angelov
Posts: 38
Joined: Mon Jan 06, 2014 1:59 am

Re: How does wpa_supplicant handle open networks with SSID ?

Wed Oct 22, 2014 6:19 pm

Thank you. That is all I wanted to know. Appreciate the help.

drew-kun
Posts: 1
Joined: Tue Apr 10, 2018 7:01 pm

Re: How does wpa_supplicant handle open networks with SSID ?

Tue Apr 10, 2018 7:08 pm

Do I understand it right, that for connecting to open unsecured network I may not specify the network SSID and just have the following code:

Code: Select all

network={
        key_mgmt=NONE
        priority=-999
}
Because from what I have read in wpa_supplicant.conf man pages, the `ssid=` statement is required

Return to “General discussion”