* [PATCH] emulator: Fix handling of Set Event Mask Page 2 Command
@ 2019-03-27 10:00 Szymon Janc
2019-03-28 13:46 ` Szymon Janc
0 siblings, 1 reply; 2+ messages in thread
From: Szymon Janc @ 2019-03-27 10:00 UTC (permalink / raw)
To: linux-bluetooth; +Cc: Szymon Janc
This command is also valid for BR/EDR only (was introduced in 3.0)
and for LE only controllers (Authenticated Payload Timeout Expired
Event).
---
emulator/btdev.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/emulator/btdev.c b/emulator/btdev.c
index 4d34aee1a..f4c79c2d0 100644
--- 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.20.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] emulator: Fix handling of Set Event Mask Page 2 Command
2019-03-27 10:00 [PATCH] emulator: Fix handling of Set Event Mask Page 2 Command Szymon Janc
@ 2019-03-28 13:46 ` Szymon Janc
0 siblings, 0 replies; 2+ messages in thread
From: Szymon Janc @ 2019-03-28 13:46 UTC (permalink / raw)
To: linux-bluetooth
On Wednesday, 27 March 2019 11:00:31 CET Szymon Janc wrote:
> This command is also valid for BR/EDR only (was introduced in 3.0)
> and for LE only controllers (Authenticated Payload Timeout Expired
> Event).
> ---
> emulator/btdev.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/emulator/btdev.c b/emulator/btdev.c
> index 4d34aee1a..f4c79c2d0 100644
> --- 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);
Applied.
--
pozdrawiam
Szymon Janc
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-03-28 13:46 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-27 10:00 [PATCH] emulator: Fix handling of Set Event Mask Page 2 Command Szymon Janc
2019-03-28 13:46 ` Szymon Janc
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).