If the SSID is not provided then declare it as hidden network
authorMarcel Holtmann <marcel@holtmann.org>
Tue, 14 Jul 2009 07:49:57 +0000 (09:49 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Tue, 14 Jul 2009 07:49:57 +0000 (09:49 +0200)
plugins/supplicant.c

index 8f7b759..4b906a6 100644 (file)
@@ -948,6 +948,11 @@ static char *build_group(const char *addr, const char *name,
        if (str == NULL)
                return NULL;
 
+       if (ssid == NULL) {
+               g_string_append_printf(str, "hidden_%s", addr);
+               goto done;
+       }
+
        for (i = 0; special_ssid[i].name; i++) {
                if (g_strcmp0(special_ssid[i].name, name) == 0) {
                        if (special_ssid[i].value == NULL)