All of lore.kernel.org
 help / color / mirror / Atom feed
From: Szymon Janc <szymon.janc@codecoup.pl>
To: linux-bluetooth@vger.kernel.org
Subject: Re: [PATCH] emulator: Fix handling of Set Event Mask Page 2 Command
Date: Thu, 28 Mar 2019 14:46:48 +0100	[thread overview]
Message-ID: <3199979.ZHmQMNjpqu@ix> (raw)
In-Reply-To: <20190327100031.32062-1-szymon.janc@codecoup.pl>

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



      reply	other threads:[~2019-03-28 13:46 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3199979.ZHmQMNjpqu@ix \
    --to=szymon.janc@codecoup.pl \
    --cc=linux-bluetooth@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.