summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNiraj Kumar Goit <niraj.g@samsung.com>2019-06-26 13:32:17 +0530
committerNiraj Kumar Goit <niraj.g@samsung.com>2019-06-26 13:32:17 +0530
commitdd02c5acafe50c66d2ef3265d0aa796afba4d4f3 (patch)
treed264e17ed421439454b9c1418766da0e180c827b
parenta48fa9fdffe415e9a6f703776b5db795e242ac23 (diff)
downloadconnman-dd02c5acafe50c66d2ef3265d0aa796afba4d4f3.tar.gz
connman-dd02c5acafe50c66d2ef3265d0aa796afba4d4f3.tar.bz2
connman-dd02c5acafe50c66d2ef3265d0aa796afba4d4f3.zip
Append disconnect reason code in case of invalid key.
Change-Id: Ie95d9be974d685f0601b2a6592c5f2d45e88fdd7 Signed-off-by: Niraj Kumar Goit <niraj.g@samsung.com>
-rw-r--r--src/service.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/service.c b/src/service.c
index d1ada486..1b2ed23d 100644
--- a/src/service.c
+++ b/src/service.c
@@ -3489,6 +3489,7 @@ static void append_properties(DBusMessageIter *dict, dbus_bool_t limited,
connman_dbus_dict_append_dict(dict, "Ethernet",
append_ethernet, service);
+ service->disconnect_reason = connman_network_get_disconnect_reason(service->network);
connman_dbus_dict_append_basic(dict, "DisconnectReason",
DBUS_TYPE_INT32, &service->disconnect_reason);