DisconnectReason can have negative values. It causes below GLib warning:
(process:4092): GLib-CRITICAL **: g_variant_get_uint32: assertion
'g_variant_is_of_type (value, G_VARIANT_TYPE_UINT32)' failed
Change-Id: Ia2652a86a9844d84b25a1c7580512591b8238fc0
Signed-off-by: Saurav Babu <saurav.babu@samsung.com>
ProfInfo->frequency = (unsigned int)g_variant_get_uint16(var);
} else if (g_strcmp0(key, "DisconnectReason") == 0) {
- ProfInfo->disconnect_reason = (unsigned int)g_variant_get_uint32(var);
+ ProfInfo->disconnect_reason = g_variant_get_int32(var);
} else if (g_strcmp0(key, "EAP") == 0) {
value = g_variant_get_string(var, NULL);