From 0b740353109de2e0d9c16927ab696a3e6cd1d6d1 Mon Sep 17 00:00:00 2001 From: Jaganath Kanakkassery Date: Thu, 26 Jul 2018 16:53:29 +0530 Subject: [PATCH] emulator: Fix unsupported command for WRITE_LE_HOST_SUPPORTED WRITE_LE_HOST_SUPPORTED command needs check for BTDEV_TYPE_LE as well. --- emulator/btdev.c | 1 + 1 file changed, 1 insertion(+) diff --git a/emulator/btdev.c b/emulator/btdev.c index f8289d001..ae309505e 100644 --- a/emulator/btdev.c +++ b/emulator/btdev.c @@ -2960,6 +2960,7 @@ static void default_cmd(struct btdev *btdev, uint16_t opcode, case BT_HCI_CMD_WRITE_LE_HOST_SUPPORTED: if (btdev->type != BTDEV_TYPE_BREDRLE && + btdev->type != BTDEV_TYPE_LE && btdev->type != BTDEV_TYPE_BREDRLE50) goto unsupported; wlhs = data; -- 2.47.3