DA: Remove all files in connman profile directory
[platform/core/connectivity/net-config.git] / src / ethernet.c
index 51ed97a..89da94c 100644 (file)
@@ -29,7 +29,7 @@
 #include "wifi-power.h"
 #include "netsupplicant.h"
 
-#define EAPOL_STORAGEDIR       "/opt/usr/data/network/"
+#define EAPOL_STORAGEDIR       "/var/lib/connman/"
 #define ETH_IFNAME             "eth0"
 
 #define CONNMAN_CONFIG_FIELD_EAP_METHOD                "EAP"
@@ -45,7 +45,7 @@
 #define CONNMAN_CONFIG_FIELD_PHASE1            "Phase1"
 
 static Ethernet *ethernet_object = NULL;
-static gboolean g_eap_supported = FALSE;
+static gboolean g_eap_enabled = FALSE;
 netconfig_eapol_s eapol;
 
 Ethernet *get_ethernet_object(void)
@@ -263,7 +263,7 @@ gboolean handle_enable_eap(Ethernet *object, GDBusMethodInvocation *invocation,
        /* TODO: Make below variable interface specific and set
        connMan profile associated with this interface as EAP enabled.
        */
-       g_eap_supported = enable;
+       g_eap_enabled = enable;
 
        if (enable == false) {
                int err = __netconfig_set_eapol_property(service, false);
@@ -278,19 +278,6 @@ gboolean handle_enable_eap(Ethernet *object, GDBusMethodInvocation *invocation,
        return TRUE;
 }
 
-gboolean handle_is_eap_supported(Ethernet *object, GDBusMethodInvocation *invocation)
-{
-       g_return_val_if_fail(object != NULL, TRUE);
-
-       DBG("handle_is_eap_supported");
-       gboolean value = FALSE;
-
-       value = g_eap_supported;
-
-       ethernet_complete_is_eap_supported(object, invocation, value);
-       return TRUE;
-}
-
 gboolean handle_set_eap_config(Ethernet *object, GDBusMethodInvocation *invocation,
                        const gchar *service, GVariant *fields)
 {
@@ -303,7 +290,7 @@ gboolean handle_set_eap_config(Ethernet *object, GDBusMethodInvocation *invocati
                return TRUE;
        }
 
-       if (g_eap_supported == FALSE) {
+       if (g_eap_enabled == FALSE) {
                netconfig_error_dbus_method_return(invocation,
                                                   NETCONFIG_ERROR_INTERNAL,
                                                   "EapNotEnabled");
@@ -351,8 +338,6 @@ void ethernet_object_create_and_init(void)
        /* EAP over Ethernet Service */
        g_signal_connect(ethernet_object, "handle-enable-eap",
                        G_CALLBACK(handle_enable_eap), NULL);
-       g_signal_connect(ethernet_object, "handle-is-eap-supported",
-                       G_CALLBACK(handle_is_eap_supported), NULL);
        g_signal_connect(ethernet_object, "handle-set-eap-config",
                        G_CALLBACK(handle_set_eap_config), NULL);