mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-06 06:10:14 +01:00
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:
parent
e962f06253
commit
3ba28d9b16
1 changed files with 4 additions and 0 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue