aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@intel.com>2012-02-24 00:21:42 +0200
committerJohan Hedberg <johan.hedberg@intel.com>2012-02-24 00:47:02 +0200
commit4ef8aae454865a35ea9deaee8fb4bdabb7ad758b (patch)
tree8b14c0c1930e9ae8cd09073f81eb3b0a7e03fde0 /plugins
parente2801dd6ad710fe3c470a44460a5d7f4eebd9858 (diff)
downloadbluez-4ef8aae454865a35ea9deaee8fb4bdabb7ad758b.tar.gz
bluez-4ef8aae454865a35ea9deaee8fb4bdabb7ad758b.tar.xz
bluez-4ef8aae454865a35ea9deaee8fb4bdabb7ad758b.zip
mgmtops: Move clear_uuids after read_info response
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mgmtops.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/mgmtops.c b/plugins/mgmtops.c
index 00dfd51b..3ea8f6df 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) {