From 9b61bf42029ca36c2f61724eefd0e7e72079ca9d Mon Sep 17 00:00:00 2001 From: Martin Xu Date: Thu, 13 Aug 2009 10:18:50 +0800 Subject: [PATCH] Clear SSID when network restore back to hidden --- plugins/supplicant.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/plugins/supplicant.c b/plugins/supplicant.c index a2cf1fc..489fe88 100644 --- a/plugins/supplicant.c +++ b/plugins/supplicant.c @@ -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); -- 2.7.4