summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortaesub kim <taesub.kim@samsung.com>2017-11-08 07:06:17 (GMT)
committerGerrit Code Review <gerrit@review.ap-northeast-2.compute.internal>2017-11-08 07:06:17 (GMT)
commitd6de65e9d7772234f04080180afac889b0c8b4ca (patch)
treeece83b3a70fe7d2ca8c26113017bbc3f11407cc2
parent0781e38143aee18ae14627f47105c1c44120f1dd (diff)
parentae0985f269f8a9f0967fb9839aa0cec81ed3144f (diff)
downloadconnman-d6de65e9d7772234f04080180afac889b0c8b4ca.zip
connman-d6de65e9d7772234f04080180afac889b0c8b4ca.tar.gz
connman-d6de65e9d7772234f04080180afac889b0c8b4ca.tar.bz2
Merge "Append AssocStatusCode Property for Wi-Fi Manager Layer" into tizensubmit/tizen/20171108.071810
-rwxr-xr-xsrc/service.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/service.c b/src/service.c
index a678e0d..003b629 100755
--- a/src/service.c
+++ b/src/service.c
@@ -3333,6 +3333,9 @@ static void append_properties(DBusMessageIter *dict, dbus_bool_t limited,
connman_dbus_dict_append_basic(dict, "DisconnectReason",
DBUS_TYPE_INT32, &service->disconnect_reason);
+ connman_dbus_dict_append_basic(dict, "AssocStatusCode",
+ DBUS_TYPE_INT32, &service->assoc_status_code);
+
break;
#endif
case CONNMAN_SERVICE_TYPE_ETHERNET:
@@ -5220,6 +5223,9 @@ static DBusMessage *connect_service(DBusConnection *conn,
/*Reset the Disconnect Reason while issue connect request*/
service->disconnect_reason = 0;
+
+ /*Reset the association status code while issue connect request*/
+ service->assoc_status_code = 0;
#endif
if (service->pending)
@@ -7094,6 +7100,7 @@ static int service_indicate_state(struct connman_service *service)
def_service = __connman_service_get_default();
service->disconnect_reason = connman_network_get_disconnect_reason(service->network);
+ service->assoc_status_code = connman_network_get_assoc_status_code(service->network);
if (!__connman_notifier_is_connected() &&
def_service &&