Don't try to activate out-of-range connections

It is not going to work...
https://bugzilla.gnome.org/show_bug.cgi?id=684824
This commit is contained in:
Matthias Clasen 2012-09-29 19:35:23 -04:00 committed by Bastien Nocera
parent 446f7cf027
commit 6264fea2fe

View file

@ -1645,12 +1645,9 @@ connect_wifi_network (NetDeviceWifi *device_wifi,
COLUMN_AP_IN_RANGE, &ap_in_range,
COLUMN_MODE, &mode,
-1);
if (g_strcmp0 (connection_id, "ap-other...") == 0)
connect_to_hidden_network (device_wifi);
else if (connection_id)
activate_connection (device_wifi, connection_id);
else if (ap_in_range || mode == NM_802_11_MODE_UNKNOWN)
else if (ap_in_range)
wireless_try_to_connect (device_wifi, ssid, ap_object_path);
else
g_warning ("can't connect");