huaweimodem: Increase NDIS setup time to 20 seconds
authorMarcel Holtmann <marcel@holtmann.org>
Sun, 24 Oct 2010 13:35:45 +0000 (15:35 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Sun, 24 Oct 2010 13:35:45 +0000 (15:35 +0200)
drivers/huaweimodem/gprs-context.c

index b6c001b..5fc6af0 100644 (file)
@@ -65,7 +65,7 @@ static gboolean dhcp_poll(gpointer user_data)
        struct ofono_gprs_context *gc = user_data;
        struct gprs_context_data *gcd = ofono_gprs_context_get_data(gc);
 
-       if (gcd->dhcp_count > 10)
+       if (gcd->dhcp_count > 20)
                CALLBACK_WITH_FAILURE(gcd->up_cb, NULL, 0, NULL, NULL,
                                                NULL, NULL, gcd->cb_data);
        else
@@ -88,7 +88,7 @@ static gboolean get_next_addr(GAtResultIter *iter, char **addr)
        val = strtol(str, NULL, 16);
 
        if (addr)
-               *addr = g_strdup_printf("%u.%u.%u.%u",
+               *addr = g_strdup_printf("%u.%u.%u.%u",
                                        (val & 0x000000ff),
                                        (val & 0x0000ff00) >> 8,
                                        (val & 0x00ff0000) >> 16,