From: Marcel Holtmann Date: Tue, 14 Jul 2009 07:49:57 +0000 (+0200) Subject: If the SSID is not provided then declare it as hidden network X-Git-Tag: 0.24~52 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d52de88aff4771283b2ebee4f48a7af15862d0ae;p=platform%2Fupstream%2Fconnman.git If the SSID is not provided then declare it as hidden network --- diff --git a/plugins/supplicant.c b/plugins/supplicant.c index 8f7b759..4b906a6 100644 --- a/plugins/supplicant.c +++ b/plugins/supplicant.c @@ -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)