Fix issue with switching between hidden WiFi networks
authorMartin Xu <martin.xu@intel.com>
Thu, 10 Sep 2009 04:58:07 +0000 (12:58 +0800)
committerMarcel Holtmann <marcel@holtmann.org>
Sun, 13 Sep 2009 15:14:52 +0000 (17:14 +0200)
src/network.c

index 932e1f2..a32b5ef 100644 (file)
@@ -405,7 +405,8 @@ struct connman_network *connman_network_create(const char *identifier,
 
        //temp = connman_dbus_encode_string(identifier);
        if (identifier == NULL) {
-               temp = g_strdup("hidden");
+               static unsigned int hidden_counter;
+               temp = g_strdup_printf("hidden_%d", hidden_counter++);
                network->hidden = TRUE;
        } else
                temp = g_strdup(identifier);