From 4ef8aae454865a35ea9deaee8fb4bdabb7ad758b Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Fri, 24 Feb 2012 00:21:42 +0200 Subject: [PATCH] mgmtops: Move clear_uuids after read_info response --- plugins/mgmtops.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/mgmtops.c b/plugins/mgmtops.c index 00dfd51bc..3ea8f6df3 100644 --- a/plugins/mgmtops.c +++ b/plugins/mgmtops.c @@ -931,7 +931,6 @@ static void read_index_list_complete(int sk, void *buf, size_t len) index = btohs(bt_get_unaligned(&rp->index[i])); add_controller(index); - clear_uuids(index); read_info(sk, index); } } @@ -981,6 +980,8 @@ static void read_info_complete(int sk, uint16_t index, void *buf, size_t len) DBG("hci%u name %s", index, (char *) rp->name); DBG("hci%u short name %s", index, (char *) rp->short_name); + clear_uuids(index); + adapter = btd_manager_register_adapter(index, mgmt_powered(info->current_settings)); if (adapter == NULL) { -- 2.47.3