Diff between d585dadb525e3f6ad0c8caa42a79836ba039d52a and 37632a7f9b67c264f481bb1ce9522e5d8bf7343e

Changed Files

File Additions Deletions Status
src/mgmt.c +1 -1 modified

Full Patch

diff --git a/src/mgmt.c b/src/mgmt.c
index dbd9786..2472173 100644
--- a/src/mgmt.c
+++ b/src/mgmt.c
@@ -979,7 +979,7 @@ static void read_index_list_complete(int sk, void *buf, size_t len)
 	for (i = 0; i < num; i++) {
 		uint16_t index;
 
-		index = bt_get_le16(&rp->index);
+		index = bt_get_le16(&rp->index[i]);
 
 		add_controller(index);
 		read_info(sk, index);