summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNiraj Kumar Goit <niraj.g@samsung.com>2017-06-30 07:49:14 (GMT)
committerNiraj Kumar Goit <niraj.g@samsung.com>2017-07-04 11:42:01 (GMT)
commitd37b9e357b50a161cbb7d78916a1b1b61c055c55 (patch)
tree414354d234f0ad057009eea61467883179fa18ba
parent2cc28fa0b1818eef6e7d001decfc1aa37c966019 (diff)
downloadconnman-d37b9e357b50a161cbb7d78916a1b1b61c055c55.zip
connman-d37b9e357b50a161cbb7d78916a1b1b61c055c55.tar.gz
connman-d37b9e357b50a161cbb7d78916a1b1b61c055c55.tar.bz2
Added support of EAP-AKA, EAP-SIM.refs/changes/57/136557/6
Change-Id: I5e1b30061271baace51e31da973dbc5298a5341f Signed-off-by: Niraj Kumar Goit <niraj.g@samsung.com>
-rwxr-xr-xgsupplicant/supplicant.c14
-rwxr-xr-xsrc/service.c1
2 files changed, 15 insertions, 0 deletions
diff --git a/gsupplicant/supplicant.c b/gsupplicant/supplicant.c
index 50b0e67..062bcd3 100755
--- a/gsupplicant/supplicant.c
+++ b/gsupplicant/supplicant.c
@@ -4720,6 +4720,19 @@ static void add_network_security_peap(DBusMessageIter *dict,
g_free(phase2_auth);
}
+#if defined TIZEN_EXT
+static void add_network_security_aka_sim(DBusMessageIter *dict,
+ GSupplicantSSID *ssid)
+{
+ if (!ssid->passphrase)
+ return;
+
+ supplicant_dbus_dict_append_basic(dict, "password",
+ DBUS_TYPE_STRING,
+ &ssid->passphrase);
+}
+#endif
+
static void add_network_security_eap(DBusMessageIter *dict,
GSupplicantSSID *ssid)
{
@@ -4745,6 +4758,7 @@ static void add_network_security_eap(DBusMessageIter *dict,
#if defined TIZEN_EXT
} else if (g_strcmp0(ssid->eap, "sim") == 0 ||
g_strcmp0(ssid->eap, "aka") == 0) {
+ add_network_security_aka_sim(dict, ssid);
#endif
} else
return;
diff --git a/src/service.c b/src/service.c
index b4390b7..a5a7f39 100755
--- a/src/service.c
+++ b/src/service.c
@@ -7658,6 +7658,7 @@ static int service_connect(struct connman_service *service)
* or EAP-AKA (EAP-TLS, EAP-SIM and EAP-AKA networks
* need to be fully provisioned)
*/
+ DBG("service eap: %s", service->eap);
if (g_str_equal(service->eap, "tls") ||
g_str_equal(service->eap, "sim") ||
g_str_equal(service->eap, "aka"))