X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fdhcp.c;h=951836fd5e7807c8f8f0f555ec4411a88c7b51fc;hb=7ef7e96fc2f3eb620fffb6f277339214efe83747;hp=16f59b744febd3205116c9c5c5c2c56a62b8ea4b;hpb=26cc90dfaf2ad149b702626f9552c81abbb26862;p=platform%2Fupstream%2Fconnman.git diff --git a/src/dhcp.c b/src/dhcp.c index 16f59b7..951836f 100644 --- a/src/dhcp.c +++ b/src/dhcp.c @@ -284,6 +284,14 @@ static void no_lease_cb(GDHCPClient *dhcp_client, gpointer user_data) DBG("No lease available ipv4ll %d client %p", dhcp->ipv4ll_running, dhcp->ipv4ll_client); +#if defined TIZEN_EXT + if (connman_setting_get_bool("EnableAutoIp") == false) { + DBG("link-local address autoconfiguration is disabled."); + if (dhcp->network) + __connman_network_disconnect(dhcp->network); + return; + } +#endif if (dhcp->timeout > 0) g_source_remove(dhcp->timeout);