Diff between e17038b6d682aef84ad6e66f0d8c85d11ef871ce and 70d01766d5703d9530fe190707df3d4b2d540f06

Changed Files

File Additions Deletions Status
tools/btmgmt.c +4 -1 modified

Full Patch

diff --git a/tools/btmgmt.c b/tools/btmgmt.c
index d2137b9..493a95b 100644
--- a/tools/btmgmt.c
+++ b/tools/btmgmt.c
@@ -3202,7 +3202,10 @@ int main(int argc, char *argv[])
 
 	mainloop_init();
 
-	gap = bt_gap_new();
+	if (index == MGMT_INDEX_NONE)
+		gap = bt_gap_new_default();
+	else
+		gap = bt_gap_new_index(index);
 
 	bt_gap_set_ready_handler(gap, gap_ready, NULL, NULL);