linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC] Behaviour when LTK is generated as a slave
@ 2012-06-07  5:38 vishal agarwal
  2012-06-07 19:43 ` Vinicius Costa Gomes
  0 siblings, 1 reply; 2+ messages in thread
From: vishal agarwal @ 2012-06-07  5:38 UTC (permalink / raw)
  To: linux-bluetooth@vger.kernel.org, vinicius.gomes

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.

Thanks
Vishal

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [RFC] Behaviour when LTK is generated as a slave
  2012-06-07  5:38 [RFC] Behaviour when LTK is generated as a slave vishal agarwal
@ 2012-06-07 19:43 ` Vinicius Costa Gomes
  0 siblings, 0 replies; 2+ messages in thread
From: Vinicius Costa Gomes @ 2012-06-07 19:43 UTC (permalink / raw)
  To: vishal agarwal; +Cc: linux-bluetooth@vger.kernel.org

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-06-07 19:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 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).