From 3ba28d9b16383efe55245840d00a1e5debd73338 Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Thu, 16 Aug 2012 13:16:42 -0500 Subject: [PATCH] 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. --- src/nm-device-wifi.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/nm-device-wifi.c b/src/nm-device-wifi.c index 60512136cb..d90e6de679 100644 --- a/src/nm-device-wifi.c +++ b/src/nm-device-wifi.c @@ -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))