From be3aee8b32b448e61b87d1e050f6c1a9d6a61afc Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Mon, 19 Oct 2015 14:44:38 +0200 Subject: [PATCH] device: don't wait for carrier when activating static connection When the connection to be activated doesn't require carrier, don't queue it to wait for it. https://bugzilla.redhat.com/show_bug.cgi?id=1079353 Fixes: 0bfe635119facb8514e8f5824f599f4c4c3514e2 (cherry picked from commit 118de885eab0a161db291f1c2fb14690b891b00e) --- src/devices/nm-device.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/devices/nm-device.c b/src/devices/nm-device.c index 531e45f9ca..9106af8ac8 100644 --- a/src/devices/nm-device.c +++ b/src/devices/nm-device.c @@ -6376,6 +6376,8 @@ _carrier_wait_check_act_request_must_queue (NMDevice *self, NMActRequest *req) return FALSE; connection = nm_act_request_get_connection (req); + if (!connection_requires_carrier (connection)) + return FALSE; if (!nm_device_check_connection_available (self, connection, NM_DEVICE_CHECK_CON_AVAILABLE_ALL, NULL)) { /* We passed all @flags we have, and no @specific_object.