summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2016-01-20 17:59:26 +0100
committerThomas Haller <thaller@redhat.com>2016-02-15 21:33:32 +0100
commit02dbe670ca0a05480ad0bd0757dcdd9526db21d5 (patch)
tree2c410f994ece2a079c587dc05ed50f396bca34ca
parent30ce8c305bc65543a5a53f2d492c3d32335d2b89 (diff)
downloadNetworkManager-02dbe670ca0a05480ad0bd0757dcdd9526db21d5.tar.gz
device: for available connections check whether they are available for user-request
But not with ignoring-carrier and ignoring-ap.
-rw-r--r--src/devices/nm-device.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/devices/nm-device.c b/src/devices/nm-device.c
index ef67230641..35130cfd95 100644
--- a/src/devices/nm-device.c
+++ b/src/devices/nm-device.c
@@ -9412,7 +9412,7 @@ nm_device_get_available_connections (NMDevice *self, const char *specific_object
* compatible with it.
*/
if ( !specific_object /* << Optimization: we know that the connection is available without @specific_object. */
- || nm_device_check_connection_available (self, connection, NM_DEVICE_CHECK_CON_AVAILABLE_NONE, specific_object))
+ || nm_device_check_connection_available (self, connection, _NM_DEVICE_CHECK_CON_AVAILABLE_FOR_USER_REQUEST, specific_object))
g_ptr_array_add (array, connection);
}
}
@@ -9430,7 +9430,7 @@ cp_connection_added_or_updated (NMConnectionProvider *cp, NMConnection *connecti
if (nm_device_check_connection_available (self,
connection,
- NM_DEVICE_CHECK_CON_AVAILABLE_NONE,
+ _NM_DEVICE_CHECK_CON_AVAILABLE_FOR_USER_REQUEST,
NULL))
changed = available_connections_add (self, connection);
else