Moved dbus method IsEapSupported to connman. 29/249929/1
authorNiraj Kumar Goit <niraj.g@samsung.com>
Thu, 17 Dec 2020 11:00:11 +0000 (16:30 +0530)
committerNiraj Kumar Goit <niraj.g@samsung.com>
Thu, 17 Dec 2020 11:02:14 +0000 (16:32 +0530)
Dbus method IsEapSupported to check EAPoL enabled status is moved to
connman and renamed as IsEapolEnabled.

Change-Id: I77e5f76d89af722cadad8373d5bc8025379a54e4
Signed-off-by: Niraj Kumar Goit <niraj.g@samsung.com>
interfaces/netconfig-iface-ethernet.xml
resources/etc/dbus-1/system.d/net-config.conf
src/ethernet.c

index 11d4d45..9eba437 100755 (executable)
@@ -5,9 +5,6 @@
                        <arg type="s" name="service" direction="in"/>
                        <arg type="b" name="enable" direction="in"/>
                </method>
-               <method name="IsEapSupported">
-                       <arg type="b" name="supported" direction="out"/>
-               </method>
                <method name="SetEapConfig">
                        <arg type="o" name="Service" direction="in"/>
                        <arg type="a{ss}" name="Fields" direction="in"/>
index 04c3945..2c8fd42 100755 (executable)
                <allow send_destination="net.netconfig" send_interface="net.netconfig.battery" send_member="GetBatteryDnList" />
                <allow send_destination="net.netconfig" send_interface="net.netconfig.battery" send_member="GetBatteryWifiList" />
 
-               <check send_destination="net.netconfig" send_interface="net.netconfig.ethernet" send_member="IsEapSupported" privilege="http://tizen.org/privilege/network.get" />
                <check send_destination="net.netconfig" send_interface="net.netconfig.ethernet" send_member="EnableEap" privilege="http://tizen.org/privilege/network.set" />
                <check send_destination="net.netconfig" send_interface="net.netconfig.ethernet" send_member="SetEapConfig" privilege="http://tizen.org/privilege/network.profile" />
        </policy>
index d055ece..89da94c 100644 (file)
@@ -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_enabled;
-
-       ethernet_complete_is_eap_supported(object, invocation, value);
-       return TRUE;
-}
-
 gboolean handle_set_eap_config(Ethernet *object, GDBusMethodInvocation *invocation,
                        const gchar *service, GVariant *fields)
 {
@@ -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);