linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Vinicius Costa Gomes <vinicius.gomes@openbossa.org>
To: vishal agarwal <vishal.bluez@gmail.com>
Cc: "linux-bluetooth@vger.kernel.org" <linux-bluetooth@vger.kernel.org>
Subject: Re: [RFC] Behaviour when LTK is generated as a slave
Date: Thu, 7 Jun 2012 16:43:43 -0300	[thread overview]
Message-ID: <20120607194343.GA10551@echo> (raw)
In-Reply-To: <CA+_sZW_d7hZFvko1eaJJeDsV+QBohx12jgUoGwe=Uu9gCCpZEQ@mail.gmail.com>

Hi Vishal,

On 11:08 Thu 07 Jun, vishal agarwal wrote:
> Hi Vinicius,
> 
> In file mgmtops.c in function mgmt_new_ltk, function bonding_complete
> is called only if ev->key.master is true.
> It means that as a slave when LTK is generated bonding_complete
> function will not be called. Is it intended? If so please help me in
> understanding this behaviour.

Yes, it is intended. The purpose of that "master" field is to inform the
"direction" of the key.

For now, that we can only assume the Master role of LE connections, that check
may be kept simple as that. When we are able to support LE single mode
adapters (I don't know if it makes sense) that check may need some 
re-thinking.

> 
> Thanks
> Vishal


Cheers,
-- 
Vinicius

      reply	other threads:[~2012-06-07 19:43 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-07  5:38 [RFC] Behaviour when LTK is generated as a slave vishal agarwal
2012-06-07 19:43 ` Vinicius Costa Gomes [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=20120607194343.GA10551@echo \
    --to=vinicius.gomes@openbossa.org \
    --cc=linux-bluetooth@vger.kernel.org \
    --cc=vishal.bluez@gmail.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
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).