mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-06 19:00:16 +01:00
manager: don't reject all internal activations on non-autoconnectable devices
When there's a slave that allows autoconnection and an unrealized master this would cause the master activation to fail. For the actual auto-activations the proper check is already done in NMPolicy's auto_activate_device().
This commit is contained in:
parent
a6c8a45463
commit
8b18c613ab
1 changed files with 0 additions and 11 deletions
|
|
@ -2736,17 +2736,6 @@ _internal_activate_device (NMManager *self, NMActiveConnection *active, GError *
|
|||
return FALSE;
|
||||
}
|
||||
|
||||
/* If this is an autoconnect request, but the device isn't allowing autoconnect
|
||||
* right now, we reject it.
|
||||
*/
|
||||
if (!nm_active_connection_get_user_requested (active) &&
|
||||
!nm_device_autoconnect_allowed (device)) {
|
||||
g_set_error (error, NM_MANAGER_ERROR, NM_MANAGER_ERROR_CONNECTION_NOT_AVAILABLE,
|
||||
"%s does not allow automatic connections at this time",
|
||||
nm_device_get_iface (device));
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
/* Create any backing resources the device needs */
|
||||
if (!nm_device_is_real (device)) {
|
||||
NMDevice *parent;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue