summaryrefslogtreecommitdiff
path: root/plugins/bluetooth.c
diff options
context:
space:
mode:
authorMartin Xu <martin.xu@intel.com>2009-12-30 16:24:09 +0800
committerMarcel Holtmann <marcel@holtmann.org>2009-12-30 00:52:30 -0800
commit4373a96829d0ed1153b5c72f8ef7c9522e3b7a07 (patch)
tree8240b0d83d388172cdaf0be9e94b4e36ca67867c /plugins/bluetooth.c
parentffb30866441664a7c2adcc3147ae4c8f34097692 (diff)
downloadconnman-4373a96829d0ed1153b5c72f8ef7c9522e3b7a07.tar.gz
connman-4373a96829d0ed1153b5c72f8ef7c9522e3b7a07.tar.bz2
connman-4373a96829d0ed1153b5c72f8ef7c9522e3b7a07.zip
Set network method as CONNMAN_IPCONFIG_METHOD_DHCP
Before calling connman_network_set_connected(true), the method should be set to CONNMAN_IPCONFIG_METHOD_DHCP.
Diffstat (limited to 'plugins/bluetooth.c')
-rw-r--r--plugins/bluetooth.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/bluetooth.c b/plugins/bluetooth.c
index 9955f842..0647cc48 100644
--- a/plugins/bluetooth.c
+++ b/plugins/bluetooth.c
@@ -110,6 +110,9 @@ static void connect_reply(DBusPendingCall *call, void *user_data)
index = connman_inet_ifindex(interface);
connman_network_set_index(network, index);
+
+ connman_network_set_method(network, CONNMAN_IPCONFIG_METHOD_DHCP);
+
connman_network_set_connected(network, TRUE);
done: