Name: neard
Summary: Near Field Communication Manager
Version: 0.7
-Release: 1
+Release: 2
Group: System Environment/Daemons
License: GPLv2
Source0: http://www.kernel.org/pub/linux/network/nfc/%{name}-%{version}.tar.bz2
DBG("");
handover_close(client->fd, 0);
- close(client->fd);
if (client->cb)
client->cb(client->adapter_idx, client->target_idx, status);
G_IO_ERR, handover_push_event,
(gpointer) client);
+ g_io_channel_unref(channel);
+
err = send(client_fd, ndef->data, ndef->length, MSG_DONTWAIT);
- if (err < 0)
+ if (err < 0) {
free_hr_push_client(client, err);
+ g_io_channel_unref(channel);
+ }
return err;
}
g_source_remove(server_data->watch);
server_data->watch = 0;
g_list_free_full(server_data->client_list, free_client_data);
+ server_data->client_list = NULL;
DBG("Closing server socket");
if (server_data->watch > 0)
g_source_remove(server_data->watch);
server_data->watch = 0;
- g_list_free_full(server_data->client_list, free_client_data);
- close(server_fd);
+ g_list_free_full(server_data->client_list, free_client_data);
+ server_data->client_list = NULL;
near_error("Error with %s server channel", driver->name);
if (client_fd < 0) {
near_error("accept failed %d", client_fd);
- close(server_fd);
return FALSE;
}
goto cb_done;
}
- near_info("Pairing done successfully !");
+ DBG("Successful pairing");
cb_done:
/* task completed - clean memory*/
g_free(oob_data);
- near_info("handover select record preparation OK");
+ DBG("Hs NDEF done");
+
return hs_msg;
fail:
if (near_fill_ho_record(ho_record, acs, mimes) < 0)
goto fail;
- near_error("handover record parsing complete");
+ DBG("handover record parsing complete");
+
return ho_record;
fail: