Release DHCP lease when carrier off
authorMarcel Holtmann <marcel@holtmann.org>
Mon, 14 Jan 2008 05:25:40 +0000 (06:25 +0100)
committerMarcel Holtmann <marcel@holtmann.org>
Mon, 14 Jan 2008 05:25:40 +0000 (06:25 +0100)
src/iface.c

index 2e6386636849813492547e8528aa9ef2fd541c10..ec790ade98b9c6bd1b789cdbe4a9ab74b2c62e59 100644 (file)
@@ -112,6 +112,7 @@ static void state_changed(struct connman_iface *iface)
                break;
 
        case CONNMAN_IFACE_STATE_ENABLED:
+               __connman_dhcp_release(iface);
                if (iface->type == CONNMAN_IFACE_TYPE_80211) {
                        state = CONNMAN_IFACE_STATE_SCANNING;
                        if (iface->driver->connect) {