summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNiraj Kumar Goit <niraj.g@samsung.com>2016-06-14 08:51:20 (GMT)
committerNiraj Kumar Goit <niraj.g@samsung.com>2016-06-14 10:22:42 (GMT)
commitec1a6e217ee11c79dc5618bc685abe60f4bcf127 (patch)
tree6a95da103f9c4d36e500e5c9fedfc81be719ec42
parent6f5ffa18c1f8cf226313d9a8c9accb8781bf4a8c (diff)
downloadconnman-ec1a6e217ee11c79dc5618bc685abe60f4bcf127.zip
connman-ec1a6e217ee11c79dc5618bc685abe60f4bcf127.tar.gz
connman-ec1a6e217ee11c79dc5618bc685abe60f4bcf127.tar.bz2
service: clean up network for EAP in __connman_service_remove.refs/changes/65/74365/1
Change-Id: I7fb2f7f0c2bf8cea04a8aecf7b1da69b47698132 Signed-off-by: Niraj Kumar Goit <niraj.g@samsung.com>
-rwxr-xr-xsrc/service.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/service.c b/src/service.c
index b424bd5..71e2c09 100755
--- a/src/service.c
+++ b/src/service.c
@@ -4721,6 +4721,24 @@ static DBusMessage *disconnect_service(DBusConnection *conn,
return g_dbus_create_reply(msg, DBUS_TYPE_INVALID);
}
+#if defined TIZEN_EXT
+static void __connman_service_cleanup_network_8021x(struct connman_service *service)
+{
+ if (service == NULL)
+ return;
+
+ DBG("service %p ", service);
+
+ connman_network_set_string(service->network, "WiFi.EAP", NULL);
+ connman_network_set_string(service->network, "WiFi.Identity", NULL);
+ connman_network_set_string(service->network, "WiFi.CACertFile", NULL);
+ connman_network_set_string(service->network, "WiFi.ClientCertFile", NULL);
+ connman_network_set_string(service->network, "WiFi.PrivateKeyFile", NULL);
+ connman_network_set_string(service->network, "WiFi.PrivateKeyPassphrase", NULL);
+ connman_network_set_string(service->network, "WiFi.Phase2", NULL);
+}
+#endif
+
bool __connman_service_remove(struct connman_service *service)
{
if (service->type == CONNMAN_SERVICE_TYPE_ETHERNET ||
@@ -4765,6 +4783,8 @@ bool __connman_service_remove(struct connman_service *service)
g_free(service->phase2);
service->phase2 = NULL;
+ __connman_service_cleanup_network_8021x(service);
+
__connman_ipconfig_set_method(service->ipconfig_ipv4, CONNMAN_IPCONFIG_METHOD_DHCP);
__connman_ipconfig_set_method(service->ipconfig_ipv6, CONNMAN_IPCONFIG_METHOD_AUTO);
connman_service_set_proxy(service, NULL, false);