Remove DHCP method setting from ethernet plugin
authorMartin Xu <martin.xu@intel.com>
Thu, 25 Feb 2010 09:34:35 +0000 (17:34 +0800)
committerMarcel Holtmann <marcel@holtmann.org>
Wed, 3 Mar 2010 14:41:47 +0000 (06:41 -0800)
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.

plugins/ethernet.c

index c2a40b2..9a7b057 100644 (file)
@@ -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);
 }