* accessing Link key within the Bluetooth module
@ 2011-03-21 8:38 Suraj Sumangala
2011-03-21 13:48 ` Johan Hedberg
0 siblings, 1 reply; 4+ messages in thread
From: Suraj Sumangala @ 2011-03-21 8:38 UTC (permalink / raw)
To: Johan Hedberg, linux-bluetooth@vger.kernel.org
Hi,
I am working on a Bluetooth AMP manager module (linked to l2cap module)
that require access to the Link key of the connected(paired) device.
I am trying to use the hci_find_link_key() call with the BDADDR of the
remote device as parameter without success. It looks like the list
"hci_dev.link_keys" is not getting populated in the first place.
Note: The device is already paired with the local device, so the link
key should be available( I do see the link_key_notify_evt getting called).
is there any way to access the link key of a paired device inside the
Bluetooth module?
Regards
Suraj
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: accessing Link key within the Bluetooth module
2011-03-21 8:38 accessing Link key within the Bluetooth module Suraj Sumangala
@ 2011-03-21 13:48 ` Johan Hedberg
2011-03-22 4:29 ` Suraj Sumangala
0 siblings, 1 reply; 4+ messages in thread
From: Johan Hedberg @ 2011-03-21 13:48 UTC (permalink / raw)
To: Suraj Sumangala; +Cc: linux-bluetooth@vger.kernel.org
Hi Suraj,
On Mon, Mar 21, 2011, Suraj Sumangala wrote:
> I am working on a Bluetooth AMP manager module (linked to l2cap
> module) that require access to the Link key of the connected(paired)
> device.
>
> I am trying to use the hci_find_link_key() call with the BDADDR of
> the remote device as parameter without success. It looks like the
> list "hci_dev.link_keys" is not getting populated in the first
> place.
That list only gets populated if you've enabled the management interface
(enable_mgmt=1 module option) and have a matching user space version
with management interface support.
Johan
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: accessing Link key within the Bluetooth module
2011-03-21 13:48 ` Johan Hedberg
@ 2011-03-22 4:29 ` Suraj Sumangala
2011-03-22 17:16 ` Gustavo F. Padovan
0 siblings, 1 reply; 4+ messages in thread
From: Suraj Sumangala @ 2011-03-22 4:29 UTC (permalink / raw)
To: linux-bluetooth@vger.kernel.org
Hi Johan,
On 3/21/2011 7:18 PM, Johan Hedberg wrote:
> Hi Suraj,
>
> That list only gets populated if you've enabled the management interface
> (enable_mgmt=1 module option) and have a matching user space version
> with management interface support.
Thanks,
The link key is required for creating an AMP connection.
Does it make sense to depend the AMP module on the "enable_mgmt" feature?
Or
Add an new link key variable to the "struct hci_conn" and update it by
handling the LINK KEY related HCI (Link key request/reply) events?
>
> Johan
Regards
Suraj
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: accessing Link key within the Bluetooth module
2011-03-22 4:29 ` Suraj Sumangala
@ 2011-03-22 17:16 ` Gustavo F. Padovan
0 siblings, 0 replies; 4+ messages in thread
From: Gustavo F. Padovan @ 2011-03-22 17:16 UTC (permalink / raw)
To: Suraj Sumangala; +Cc: linux-bluetooth@vger.kernel.org
Hi Suraj,
* Suraj Sumangala <suraj@Atheros.com> [2011-03-22 09:59:59 +0530]:
> Hi Johan,
>
> On 3/21/2011 7:18 PM, Johan Hedberg wrote:
> > Hi Suraj,
> >
> > That list only gets populated if you've enabled the management interface
> > (enable_mgmt=1 module option) and have a matching user space version
> > with management interface support.
>
> Thanks,
> The link key is required for creating an AMP connection.
>
> Does it make sense to depend the AMP module on the "enable_mgmt" feature?
Yes, but does not use enable_mgmt in your code.
--
Gustavo F. Padovan
http://profusion.mobi
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2011-03-22 17:16 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-21 8:38 accessing Link key within the Bluetooth module Suraj Sumangala
2011-03-21 13:48 ` Johan Hedberg
2011-03-22 4:29 ` Suraj Sumangala
2011-03-22 17:16 ` Gustavo F. Padovan
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).