From 6e7b757ce02c02b9cac0f567f5373c1189ea58bd Mon Sep 17 00:00:00 2001 From: Szymon Janc Date: Wed, 27 Mar 2019 11:00:31 +0100 Subject: [PATCH] emulator: Fix handling of Set Event Mask Page 2 Command This command is also valid for BR/EDR only (was introduced in 3.0) and for LE only controllers (Authenticated Payload Timeout Expired Event). Change-Id: Ice65b4a355cfe042a89f455106d244a8012c5961 Signed-off-by: himanshu --- emulator/btdev.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/emulator/btdev.c b/emulator/btdev.c index 4d34aee..f4c79c2 100755 --- a/emulator/btdev.c +++ b/emulator/btdev.c @@ -3206,8 +3206,8 @@ static void default_cmd(struct btdev *btdev, uint16_t opcode, break; case BT_HCI_CMD_SET_EVENT_MASK_PAGE2: - if (btdev->type != BTDEV_TYPE_BREDRLE && - btdev->type != BTDEV_TYPE_BREDRLE50) + if (btdev->type == BTDEV_TYPE_BREDR20 || + btdev->type == BTDEV_TYPE_AMP) goto unsupported; semp2 = data; memcpy(btdev->event_mask_page2, semp2->mask, 8); -- 2.7.4