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: 0bfe635119
(cherry picked from commit 118de885ea)
This commit is contained in:
Thomas Haller 2015-10-19 14:44:38 +02:00
parent 971a7611bd
commit be3aee8b32

View file

@ -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.