Linux-Bluetooth Archive on lore.kernel.org
 help / color / Atom feed
From: "Gix, Brian" <brian.gix@intel.com>
To: "linux-bluetooth@vger.kernel.org"
	<linux-bluetooth@vger.kernel.org>,
	"nagaraj.dr@samsung.com" <nagaraj.dr@samsung.com>
Subject: Re: [PATCH 1/1] mesh: Fix invalid netkey index in appkey add/delete
Date: Tue, 3 Dec 2019 18:49:45 +0000
Message-ID: <ade7a0ba4d965b384d7d3132c4a291e963cb6153.camel@intel.com> (raw)
In-Reply-To: <1575366807-7878-1-git-send-email-nagaraj.dr@samsung.com>

Applied

On Tue, 2019-12-03 at 15:23 +0530, Nagaraj D R wrote:
> 8 LSbs of netkey index should be packed into the first octet
> ---
>  tools/mesh-gatt/config-client.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/tools/mesh-gatt/config-client.c b/tools/mesh-gatt/config-client.c
> index 5e6374f..ed31c67 100644
> --- a/tools/mesh-gatt/config-client.c
> +++ b/tools/mesh-gatt/config-client.c
> @@ -591,7 +591,7 @@ static void cmd_app_key(int argc, char *argv[], uint32_t opcode)
>  		return bt_shell_noninteractive_quit(EXIT_FAILURE);
>  	}
>  
> -	msg[n++] = net_idx & 0xf;
> +	msg[n++] = net_idx & 0xff;
>  	msg[n++] = ((net_idx >> 8) & 0xf) |
>  		((app_idx << 4) & 0xf0);
>  	msg[n++] = app_idx >> 4;

      reply index

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CGME20191203095335epcas5p2f42315a8d7d9a081afa929f96bb66356@epcas5p2.samsung.com>
2019-12-03  9:53 ` Nagaraj D R
2019-12-03 18:49   ` Gix, Brian [this message]

Reply instructions:

You may reply publically 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=ade7a0ba4d965b384d7d3132c4a291e963cb6153.camel@intel.com \
    --to=brian.gix@intel.com \
    --cc=linux-bluetooth@vger.kernel.org \
    --cc=nagaraj.dr@samsung.com \
    /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

Linux-Bluetooth Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/linux-bluetooth/0 linux-bluetooth/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-bluetooth linux-bluetooth/ https://lore.kernel.org/linux-bluetooth \
		linux-bluetooth@vger.kernel.org
	public-inbox-index linux-bluetooth

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernel.vger.linux-bluetooth


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git