From: Marcel Holtmann Date: Mon, 22 Dec 2008 09:20:03 +0000 (+0100) Subject: Don't start DHCP again after handshake X-Git-Tag: 2.0_alpha~4365 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=703d0fbd2847af1b54313554e38c7a00fca64cf3;p=framework%2Fconnectivity%2Fconnman.git Don't start DHCP again after handshake --- diff --git a/plugins/wifi.c b/plugins/wifi.c index f72cdb8..f70f0b6 100644 --- a/plugins/wifi.c +++ b/plugins/wifi.c @@ -228,7 +228,7 @@ static void state_change(struct connman_element *device, if (element == NULL) goto reconnect; - if (state == STATE_COMPLETED) { + if (state == STATE_COMPLETED && data->connected == FALSE) { struct connman_element *dhcp; data->connected = TRUE;