diff options
author | Saurav Babu <saurav.babu@samsung.com> | 2018-07-05 15:02:32 +0530 |
---|---|---|
committer | Saurav Babu <saurav.babu@samsung.com> | 2018-07-05 15:02:32 +0530 |
commit | dd9f82dc313b24af1b539c4ec9501453d9c5b415 (patch) | |
tree | f417c89a20b65884f459ecef94bbd18ecda6004c | |
parent | 6e47b2abaddfaee87e7735ff8f31c51127c6cd82 (diff) | |
download | connman-accepted/tizen/unified/20180709.064830.tar.gz connman-accepted/tizen/unified/20180709.064830.tar.bz2 connman-accepted/tizen/unified/20180709.064830.zip |
service: Add new property to set passphrase of servicesubmit/tizen/20180706.050915accepted/tizen/unified/20180709.064830
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-x | src/service.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/service.c b/src/service.c index cf8ccaac..d157ec2d 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); |