From 3d3f496f4eba55d7977b6570b22a7650fe688348 Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Thu, 12 Feb 2015 13:17:02 +0200 Subject: [PATCH] tools/btmgmt: Add support for 'hciX' form for specifying index --- tools/btmgmt.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/btmgmt.c b/tools/btmgmt.c index 15152b1d4..e262350b7 100644 --- a/tools/btmgmt.c +++ b/tools/btmgmt.c @@ -3354,6 +3354,8 @@ static void cmd_select(struct mgmt *mgmt, uint16_t index, if (!strcmp(argv[1], "none") || !strcmp(argv[1], "any") || !strcmp(argv[1], "all")) mgmt_index = MGMT_INDEX_NONE; + else if (!strncmp(argv[1], "hci", 3)) + mgmt_index = atoi(&argv[1][3]); else mgmt_index = atoi(argv[1]); -- 2.47.3