From 5eb9d13c5b75f3659454466d511533c2f413cbbd Mon Sep 17 00:00:00 2001 From: Claudio Takahasi Date: Mon, 11 Apr 2011 15:24:27 -0300 Subject: Cleanup primary service registration from storage --- src/adapter.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'src/adapter.c') diff --git a/src/adapter.c b/src/adapter.c index c400bfd7..6caff9a2 100644 --- a/src/adapter.c +++ b/src/adapter.c @@ -58,8 +58,6 @@ #include "storage.h" #include "attrib-server.h" #include "att.h" -#include "gattrib.h" -#include "attrib/client.h" /* Interleaved discovery window: 5.12 sec */ #define GAP_INTER_DISCOV_WIN 5120 @@ -2193,16 +2191,11 @@ static void create_stored_device_from_primary(char *key, char *value, for (l = services, uuids = NULL; l; l = l->next) { struct att_primary *prim = l->data; uuids = g_slist_append(uuids, prim->uuid); - - device_add_primary(device, prim); } - /* FIXME: Need the correct psm */ - attrib_client_register(connection, device, -1, NULL, services); - device_probe_drivers(device, uuids); + device_register_services(connection, device, services, -1); - g_slist_free(services); g_slist_free(uuids); } -- cgit