diff options
author | Niraj Kumar Goit <niraj.g@samsung.com> | 2017-09-15 15:24:41 +0530 |
---|---|---|
committer | Niraj Kumar Goit <niraj.g@samsung.com> | 2017-09-26 12:30:52 +0530 |
commit | 1612cee1b8ab5f7e2582ec9ef5b92a72d05048d4 (patch) | |
tree | 46889592189ffb859a201cbac1ac58c78f0c92a6 | |
parent | 1141e83b5a00d11bada4e07e8203770b3d36939b (diff) | |
download | connman-1612cee1b8ab5f7e2582ec9ef5b92a72d05048d4.tar.gz connman-1612cee1b8ab5f7e2582ec9ef5b92a72d05048d4.tar.bz2 connman-1612cee1b8ab5f7e2582ec9ef5b92a72d05048d4.zip |
Append eap type property in "GetServices" Dbus method.submit/tizen/20170927.040141accepted/tizen/unified/20170927.181313
Change-Id: Ie9cdabbddba37fab987ec48402e7d7508949f040
Signed-off-by: Niraj Kumar Goit <niraj.g@samsung.com>
-rwxr-xr-x | src/service.c | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/src/service.c b/src/service.c index ee4ef82e..24a7b009 100755 --- a/src/service.c +++ b/src/service.c @@ -3166,6 +3166,7 @@ static void append_wifi_ext_info(DBusMessageIter *dict, unsigned int keymgmt; uint16_t frequency; const char *enc_mode; + const char *str; gboolean passpoint; ssid = connman_network_get_blob(network, "WiFi.SSID", &ssid_len); @@ -3194,6 +3195,41 @@ static void append_wifi_ext_info(DBusMessageIter *dict, DBUS_TYPE_BOOLEAN, &passpoint); connman_dbus_dict_append_basic(dict, "Keymgmt", DBUS_TYPE_UINT32, &keymgmt); + + str = connman_network_get_string(network, "WiFi.Security"); + if (str != NULL && g_str_equal(str, "ieee8021x") == TRUE) { + str = connman_network_get_string(network, "WiFi.EAP"); + if (str != NULL) + connman_dbus_dict_append_basic(dict, "EAP", + DBUS_TYPE_STRING, &str); + + str = connman_network_get_string(network, "WiFi.Phase2"); + if (str != NULL) + connman_dbus_dict_append_basic(dict, "Phase2", + DBUS_TYPE_STRING, &str); + + str = connman_network_get_string(network, "WiFi.Identity"); + if (str != NULL) + connman_dbus_dict_append_basic(dict, "Identity", + DBUS_TYPE_STRING, &str); + + str = connman_network_get_string(network, "WiFi.CACertFile"); + if (str != NULL) + connman_dbus_dict_append_basic(dict, "CACertFile", + DBUS_TYPE_STRING, &str); + + str = connman_network_get_string(network, + "WiFi.ClientCertFile"); + if (str != NULL) + connman_dbus_dict_append_basic(dict, "ClientCertFile", + DBUS_TYPE_STRING, &str); + + str = connman_network_get_string(network, + "WiFi.PrivateKeyFile"); + if (str != NULL) + connman_dbus_dict_append_basic(dict, "PrivateKeyFile", + DBUS_TYPE_STRING, &str); + } } #endif |