network: Re-enable the hidden network functionality
This commit is contained in:
parent
f7af831ff6
commit
5b35fb719c
1 changed files with 3 additions and 1 deletions
|
@ -1532,6 +1532,7 @@ connect_wifi_network (NetDeviceWifi *device_wifi,
|
||||||
gchar *ssid;
|
gchar *ssid;
|
||||||
GtkTreeIter iter;
|
GtkTreeIter iter;
|
||||||
GtkTreeModel *model;
|
GtkTreeModel *model;
|
||||||
|
NM80211Mode mode;
|
||||||
|
|
||||||
model = gtk_tree_view_get_model (tv);
|
model = gtk_tree_view_get_model (tv);
|
||||||
gtk_tree_model_get_iter (model, &iter, path);
|
gtk_tree_model_get_iter (model, &iter, path);
|
||||||
|
@ -1540,9 +1541,10 @@ connect_wifi_network (NetDeviceWifi *device_wifi,
|
||||||
COLUMN_ID, &object_path,
|
COLUMN_ID, &object_path,
|
||||||
COLUMN_TITLE, &ssid,
|
COLUMN_TITLE, &ssid,
|
||||||
COLUMN_AP_IN_RANGE, &ap_in_range,
|
COLUMN_AP_IN_RANGE, &ap_in_range,
|
||||||
|
COLUMN_MODE, &mode,
|
||||||
-1);
|
-1);
|
||||||
|
|
||||||
if (ap_in_range)
|
if (ap_in_range || mode == NM_802_11_MODE_UNKNOWN)
|
||||||
wireless_try_to_connect (device_wifi, ssid, object_path);
|
wireless_try_to_connect (device_wifi, ssid, object_path);
|
||||||
|
|
||||||
g_free (object_path);
|
g_free (object_path);
|
||||||
|
|
Loading…
Add table
Reference in a new issue