summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorKunio AKASHI <k_akashi@jaist.ac.jp>2015-10-27 07:52:10 +0900
committerJohan Hedberg <johan.hedberg@intel.com>2015-10-27 09:57:45 +0200
commit2cdea86e270d6a6bc9e88ac0aefde39185a3f92b (patch)
treea8bf678d2d3ba25a10dcc13ca2dad4582f540961 /tools
parentda32a4dd19b72e78318a574844368c3f8d235b2d (diff)
downloadbluez-2cdea86e270d6a6bc9e88ac0aefde39185a3f92b.tar.gz
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.
Diffstat (limited to 'tools')
-rw-r--r--tools/hciconfig.c2
1 files changed, 1 insertions, 1 deletions
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)