wifi: ensure hidden SSIDs get added to AvailableConnections

Hidden SSIDs won't always show up in the scan list, so they need
to be present in AvailableConnections even if we don't see them
int he scan list.
This commit is contained in:
Dan Williams 2012-08-16 13:16:42 -05:00
parent e962f06253
commit 3ba28d9b16

View file

@ -1086,6 +1086,10 @@ real_check_connection_available (NMDevice *device, NMConnection *connection)
if (g_strcmp0 (mode, "adhoc") == 0)
return TRUE;
/* Hidden SSIDs obviously don't always appear in the scan list either */
if (nm_setting_wireless_get_hidden (s_wifi))
return TRUE;
/* check if its visible */
for (ap_iter = priv->ap_list; ap_iter; ap_iter = g_slist_next (ap_iter)) {
if (nm_ap_check_compatible (NM_AP (ap_iter->data), connection))