Diff between e2801dd6ad710fe3c470a44460a5d7f4eebd9858 and 4ef8aae454865a35ea9deaee8fb4bdabb7ad758b

Changed Files

File Additions Deletions Status
plugins/mgmtops.c +2 -1 modified

Full Patch

diff --git a/plugins/mgmtops.c b/plugins/mgmtops.c
index 00dfd51..3ea8f6d 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) {