From 2cdea86e270d6a6bc9e88ac0aefde39185a3f92b Mon Sep 17 00:00:00 2001 From: Kunio AKASHI Date: Tue, 27 Oct 2015 07:52:10 +0900 Subject: [PATCH] tools/hciconfig: Fix hci_close_dev It had been closed different file descriptor. When has two or more interfaces, hciconfig -a exit after cmd_class function. --- tools/hciconfig.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/hciconfig.c b/tools/hciconfig.c index eac96b072..9029f7d9b 100644 --- a/tools/hciconfig.c +++ b/tools/hciconfig.c @@ -964,7 +964,7 @@ static void cmd_class(int ctl, int hdev, char *opt) get_minor_device_name(cls[1] & 0x1f, cls[0] >> 2)); } - hci_close_dev(hdev); + hci_close_dev(s); } static void cmd_voice(int ctl, int hdev, char *opt) -- 2.47.3