diff --git a/plugins/mgmtops.c b/plugins/mgmtops.c
index 139b058..4a7bfff 100644
--- a/plugins/mgmtops.c
+++ b/plugins/mgmtops.c
index = btohs(bt_get_unaligned(&rp->index[i]));
add_controller(index);
- get_connections(sk, index);
clear_uuids(index);
+ read_info(sk, index);
}
}
return;
}
- if (mgmt_powered(info->current_settings))
+ if (mgmt_powered(info->current_settings)) {
mgmt_update_powered(adapter, info->current_settings);
- else
+ get_connections(sk, index);
+ } else
mgmt_set_powered(index, TRUE);
adapter_name_changed(adapter, (char *) rp->name);
bdaddr_t *bdaddr = g_memdup(&rp->addr[i], sizeof(bdaddr_t));
info->connections = g_slist_append(info->connections, bdaddr);
}
-
- read_info(sk, index);
}
static void set_local_name_complete(int sk, uint16_t index, void *buf,