It had been closed different file descriptor. When has two or more interfaces, hciconfig -a exit after cmd_class function. Signed-off-by: Kunio AKASHI <k_akashi@xxxxxxxxxxx> --- tools/hciconfig.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/hciconfig.c b/tools/hciconfig.c index eac96b0..9029f7d 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.1.0 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html