ethernet: Do not connect network on LOWER_UP
authorDaniel Wagner <daniel.wagner@bmw-carit.de>
Mon, 19 Mar 2012 12:50:35 +0000 (13:50 +0100)
committerPatrik Flykt <patrik.flykt@linux.intel.com>
Tue, 20 Mar 2012 10:01:42 +0000 (12:01 +0200)
commit44930407218d5e6c21392dadb8686f6c376aeb06
tree83943219235151678c4e52af953dfa3146e812a8
parent8a9d36de069ce0cd1a73ccbb1c1971ef42d8d1d8
ethernet: Do not connect network on LOWER_UP

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.
plugins/ethernet.c