diff options
-rw-r--r-- | chrome/browser/chromeos/cros/network_library.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/chrome/browser/chromeos/cros/network_library.cc b/chrome/browser/chromeos/cros/network_library.cc index 162d9d3..f1541e8 100644 --- a/chrome/browser/chromeos/cros/network_library.cc +++ b/chrome/browser/chromeos/cros/network_library.cc @@ -715,8 +715,9 @@ class NetworkLibraryImpl : public NetworkLibrary { return; // First create a service from hidden network. - ServiceInfo* service = GetWifiService(ssid.c_str(), - SECURITY_UNKNOWN); + ConnectionSecurity security = password.empty() ? + SECURITY_NONE : SECURITY_UNKNOWN; + ServiceInfo* service = GetWifiService(ssid.c_str(), security); if (service) { // Set auto-connect. SetAutoConnect(service->service_path, auto_connect); |