summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorSamuel Ortiz <sameo@linux.intel.com>2009-07-11 00:32:02 +0200
committerMarcel Holtmann <marcel@holtmann.org>2009-07-11 12:47:03 -0700
commitc9dc2dafc32f56f080cf2934cc445f6306beefa3 (patch)
treefbba2a4cb45cf9862c76ed2b53a2fd0e726fd383 /plugins
parent63f8d42753e4550d6bdb5ca9ead6e071f70edecf (diff)
downloadconnman-c9dc2dafc32f56f080cf2934cc445f6306beefa3.tar.gz
connman-c9dc2dafc32f56f080cf2934cc445f6306beefa3.tar.bz2
connman-c9dc2dafc32f56f080cf2934cc445f6306beefa3.zip
Add support for storing SSID details of hidden services
When loading a hidden service from storage, we set the service and network name, along with the SSID. This way we can present a clean and usable service list to fetch connectable services from.
Diffstat (limited to 'plugins')
-rw-r--r--plugins/supplicant.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/plugins/supplicant.c b/plugins/supplicant.c
index 64396676..27ced441 100644
--- a/plugins/supplicant.c
+++ b/plugins/supplicant.c
@@ -1065,6 +1065,7 @@ static void properties_reply(DBusPendingCall *call, void *user_data)
unsigned short channel, frequency;
const char *mode, *security;
char *group;
+ unsigned int ssid_len;
DBG("task %p", task);
@@ -1202,8 +1203,10 @@ static void properties_reply(DBusPendingCall *call, void *user_data)
if (result.name != NULL && result.name[0] != '\0')
connman_network_set_name(network, result.name);
- connman_network_set_blob(network, "WiFi.SSID",
- result.ssid, result.ssid_len);
+ 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_string(network, "WiFi.Mode", mode);