Fix : Invalid GVariant format
[platform/core/connectivity/bluetooth-frwk.git] / bt-service / bt-service-network.c
index bd065b2..5752a53 100644 (file)
@@ -179,7 +179,7 @@ static void __bt_network_connect_cb(GDBusProxy *proxy, GAsyncResult *res,
                                                        &device_addr, sizeof(bluetooth_device_address_t), TRUE, NULL, NULL);
 
        g_dbus_method_invocation_return_value(req_info->context,
-                       g_variant_new("iv", result, out_param1));
+                       g_variant_new("(iv)", result, out_param1));
 
        _bt_delete_request_list(req_info->req_id);
 
@@ -240,7 +240,7 @@ static void __bt_network_disconnect_cb(GDBusProxy *proxy, GAsyncResult *res,
                                                        &device_addr, sizeof(bluetooth_device_address_t), TRUE, NULL, NULL);
 
        g_dbus_method_invocation_return_value(req_info->context,
-                       g_variant_new("iv", result, out_param1));
+                       g_variant_new("(iv)", result, out_param1));
 
        _bt_delete_request_list(req_info->req_id);