int mesh_ipc_mesh_scan(mesh_service *service)
{
- GVariant *variant = NULL;
- GError *error = NULL;
-
meshd_check_null_ret_error("service", service, MESHD_ERROR_INVALID_PARAMETER);
meshd_check_null_ret_error("connection", service->connection,
MESHD_ERROR_INVALID_PARAMETER);
meshd_check_null_ret_error("_gproxy_connman_technology",
_gproxy_connman_technology, MESHD_ERROR_IO_ERROR);
- variant = g_dbus_proxy_call_sync(_gproxy_connman_technology, "Scan",
+ g_dbus_proxy_call(_gproxy_connman_technology, "Scan",
NULL,
G_DBUS_CALL_FLAGS_NONE,
- -1, NULL, &error);
- if (variant) {
- MESH_LOGD("Successfully requested. [Scan]");
- } else if (error) {
- MESH_LOGE("Failed DBus call [%s]", error->message);
- g_error_free(error);
- return MESHD_ERROR_IO_ERROR;
- }
+ -1, NULL, NULL, NULL);
+
+ MESH_LOGD("Successfully requested. [Scan]");
return MESHD_ERROR_NONE;
}