Clear SSID when network restore back to hidden
authorMartin Xu <martin.xu@intel.com>
Thu, 13 Aug 2009 02:18:50 +0000 (10:18 +0800)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 13 Aug 2009 02:29:43 +0000 (19:29 -0700)
plugins/supplicant.c

index a2cf1fc199a30ec77b51d2c8a5f452e461974edc..489fe886ae407266c05ff3f56547c15eb10e6bb1 100644 (file)
@@ -1337,10 +1337,8 @@ static void properties_reply(DBusPendingCall *call, void *user_data)
        if (result.name != NULL && result.name[0] != '\0')
                connman_network_set_name(network, result.name);
 
-       if (connman_network_get_blob(network, "WiFi.SSID", &ssid_len) == NULL) {
-               connman_network_set_blob(network, "WiFi.SSID",
-                                        result.ssid, result.ssid_len);
-       }
+       connman_network_set_blob(network, "WiFi.SSID",
+                                               result.ssid, result.ssid_len);
 
        connman_network_set_string(network, "WiFi.Mode", mode);