Ethernet networks should honor the AutoConnect feature as the rest
of the network types.
Just register the network object at the core when we get LOWER_UP.
Then the core can decide when to connect to the network.
There is no behavior change when AutoConnect is enabled, So if the
user plugs the cable the ethernet network will automatically connect
as it was before.
If AutoConnect is disabled, the core will not connect to the network
automatically.
{
DBG("network %p", network);
+ connman_network_set_connected(network, TRUE);
+
return 0;
}
{
DBG("network %p", network);
+ connman_network_set_connected(network, FALSE);
+
return 0;
}
connman_network_set_group(network, "cable");
- connman_network_set_connected(network, TRUE);
-
ethernet->network = network;
}