summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSaurav Babu <saurav.babu@samsung.com>2018-07-05 09:32:32 (GMT)
committerSaurav Babu <saurav.babu@samsung.com>2018-07-05 09:32:32 (GMT)
commitdd9f82dc313b24af1b539c4ec9501453d9c5b415 (patch)
treef417c89a20b65884f459ecef94bbd18ecda6004c
parent6e47b2abaddfaee87e7735ff8f31c51127c6cd82 (diff)
downloadconnman-dd9f82dc313b24af1b539c4ec9501453d9c5b415.zip
connman-dd9f82dc313b24af1b539c4ec9501453d9c5b415.tar.gz
connman-dd9f82dc313b24af1b539c4ec9501453d9c5b415.tar.bz2
When AP is connected using WPS without SSID then its password needs to be saved for future autoconnection Change-Id: I7d771c14867e19c379ff4bba262f10a2fb578c17 Signed-off-by: Saurav Babu <saurav.babu@samsung.com>
-rwxr-xr-xsrc/service.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/service.c b/src/service.c
index cf8ccaa..d157ec2 100755
--- a/src/service.c
+++ b/src/service.c
@@ -3361,7 +3361,6 @@ static void append_properties(DBusMessageIter *dict, dbus_bool_t limited,
vsie_list = (GSList *)connman_network_get_vsie_list(service->network);
if (vsie_list) {
- DBG("ConnMan, service->path=%s No.of elements in list: %d", service->path, g_slist_length(vsie_list));
GSList *list;
for (list = vsie_list; list; list = list->next) {
wifi_vsie = (unsigned char *)list->data;
@@ -4854,6 +4853,19 @@ static DBusMessage *set_property(DBusConnection *conn,
}
service_save(service);
+#if defined TIZEN_EXT
+ /* When AP is connected using WPS without SSID then its password needs
+ * to be saved for autoconnection */
+ } else if (g_str_equal(name, "Passphrase")) {
+ char *passphrase;
+
+ if (type != DBUS_TYPE_STRING)
+ return __connman_error_invalid_arguments(msg);
+
+ dbus_message_iter_get_basic(&value, &passphrase);
+
+ __connman_service_set_passphrase(service, passphrase);
+#endif
} else
return __connman_error_invalid_property(msg);