linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Name resolution for mgmt interface
@ 2011-09-09 14:36 Antti Julku
  2011-09-09 22:19 ` Claudio Takahasi
  0 siblings, 1 reply; 9+ messages in thread
From: Antti Julku @ 2011-09-09 14:36 UTC (permalink / raw)
  To: linux-bluetooth


Hello Bluetooth experts,

Name resolution of older devices not supporting EIR is still missing 
from the management interface. I discussed with Johan, and he suggested 
the following architecture (if I understood correctly):

New command and event are added to mgmt interface:
  * Unknown Names Event
  * Resolve Names Command

When device discovery is completed, kernel sends list of BT addresses of 
devices which names are unknown (no name in EIR data) with Unknown Names 
Event.

User space can then request name resolving with Resolve Names Command, 
which takes list of BT addresses as parameter. User space gets a Remote 
Name Event for each device.

Internally kernel would have a list of found devices, to which devices 
are added during discovery. Device in the list is flagged as unknown 
unless there was name for it in EIR data. After discovery is completed, 
event with list of unknown devices is sent, and the found devices list 
is cleared (it's valid only during one discovery session).

Not sure if name resolution should be included in the discovery session 
done via mgmt interface (while Discovering Event indicates discovery is 
ongoing), and how to track discovery state in that case. Maybe another 
state is needed in hdev->flags (e.g. HCI_DISCOVERY) if HCI_INQUIRY is 
not enough?

Any opinions? I think it would be good to have wider discussion before 
making patches.

Br,
Antti


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

end of thread, other threads:[~2011-09-13  8:48 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-09 14:36 Name resolution for mgmt interface Antti Julku
2011-09-09 22:19 ` Claudio Takahasi
2011-09-10  6:23   ` Marcel Holtmann
2011-09-12 16:56     ` Claudio Takahasi
2011-09-12 19:07       ` Marcel Holtmann
2011-09-12 19:15         ` tim.howes
2011-09-13  7:55           ` Luiz Augusto von Dentz
2011-09-13  6:39         ` Antti Julku
2011-09-13  8:48           ` Marcel Holtmann

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).