summaryrefslogtreecommitdiff
path: root/emulator
diff options
context:
space:
mode:
authorJaganath Kanakkassery <jaganath.k.os@gmail.com>2018-07-26 16:53:29 +0530
committerJohan Hedberg <johan.hedberg@intel.com>2018-07-26 15:16:07 +0300
commit0b740353109de2e0d9c16927ab696a3e6cd1d6d1 (patch)
tree7fad33889a3b4c20abd2088dfbddd0ef748fc038 /emulator
parent9ded410e01c96409103977a4436d4bb7dbd5038e (diff)
downloadbluez-0b740353109de2e0d9c16927ab696a3e6cd1d6d1.tar.gz
emulator: Fix unsupported command for WRITE_LE_HOST_SUPPORTED
WRITE_LE_HOST_SUPPORTED command needs check for BTDEV_TYPE_LE as well.
Diffstat (limited to 'emulator')
-rw-r--r--emulator/btdev.c1
1 files changed, 1 insertions, 0 deletions
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;