summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNiraj Kumar Goit <niraj.g@samsung.com>2021-09-09 15:04:10 +0530
committerNiraj Kumar Goit <niraj.g@samsung.com>2021-09-09 15:04:10 +0530
commit602168cfe92ab4eeadf13d03748e705e801faa58 (patch)
tree21f78e4ed4cc473e555921fb09f7b1ac9765324d
parent90bbc90465bb6c4b5a3d3dca0cca667d20d676b4 (diff)
downloadconnman-602168cfe92ab4eeadf13d03748e705e801faa58.tar.gz
connman-602168cfe92ab4eeadf13d03748e705e801faa58.tar.bz2
connman-602168cfe92ab4eeadf13d03748e705e801faa58.zip
Enable Downgrade dbus method.
When offline is detected in device, downgrade service state to ready and start online check in connman. Change-Id: Ic5abf9050c51b853ee36fa8067b221c3e9c63eec Signed-off-by: Niraj Kumar Goit <niraj.g@samsung.com>
-rwxr-xr-xsrc/service.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/service.c b/src/service.c
index c61963ee..36379b2a 100755
--- a/src/service.c
+++ b/src/service.c
@@ -7511,7 +7511,7 @@ static DBusMessage *is_eapol_enabled(DBusConnection *conn,
}
#endif /* defined TIZEN_EXT && defined TIZEN_EXT_EAP_ON_ETHERNET */
-#if defined TIZEN_MAINTAIN_ONLINE
+#if defined TIZEN_EXT
static DBusMessage *downgrade_service(DBusConnection *conn,
DBusMessage *msg, void *user_data)
{
@@ -7519,6 +7519,7 @@ static DBusMessage *downgrade_service(DBusConnection *conn,
downgrade_state(service);
__connman_connection_update_gateway();
+ start_online_check(service, CONNMAN_IPCONFIG_TYPE_IPV4);
return g_dbus_create_reply(msg, DBUS_TYPE_INVALID);
}
@@ -7591,7 +7592,7 @@ static const GDBusMethodTable service_methods[] = {
#if defined TIZEN_EXT && defined TIZEN_EXT_EAP_ON_ETHERNET
{ GDBUS_METHOD("IsEapolEnabled", NULL, GDBUS_ARGS({ "eapol", "b" }), is_eapol_enabled) },
#endif
-#if defined TIZEN_MAINTAIN_ONLINE
+#if defined TIZEN_EXT
{ GDBUS_METHOD("Downgrade", NULL, NULL, downgrade_service) },
#endif
{ },