summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Xu <martin.xu@intel.com>2010-02-25 17:34:35 +0800
committerMarcel Holtmann <marcel@holtmann.org>2010-03-03 06:41:47 -0800
commiteb1bdb47c12aed54a805926a1eaea848b5f09bbc (patch)
tree32ac225c6abb1e5dd1f3f53e5f6fdede4bc6b441
parent217393be8bd708a9fcefa4e39a1c2f01014e770c (diff)
downloadconnman-eb1bdb47c12aed54a805926a1eaea848b5f09bbc.tar.gz
connman-eb1bdb47c12aed54a805926a1eaea848b5f09bbc.tar.bz2
connman-eb1bdb47c12aed54a805926a1eaea848b5f09bbc.zip
Remove DHCP method setting from ethernet plugin
The method has been set when creating service. And setting DHCP method after creating wired service causes the recorded method gotten from entry file be replaced by DHCP method, consequently, the static IP of wired service can not be remembered.
-rw-r--r--plugins/ethernet.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/plugins/ethernet.c b/plugins/ethernet.c
index c2a40b25..9a7b0578 100644
--- a/plugins/ethernet.c
+++ b/plugins/ethernet.c
@@ -106,8 +106,6 @@ static void add_network(struct connman_device *device)
connman_network_set_group(network, "cable");
- connman_network_set_method(network, CONNMAN_IPCONFIG_METHOD_DHCP);
-
connman_network_set_connected(network, TRUE);
}