Bluetooth: Add 'dst_type' field to struct hci_conn
authorAndre Guedes <andre.guedes@openbossa.org>
Tue, 31 May 2011 17:20:54 +0000 (14:20 -0300)
committerJaikumar Ganesh <jaikumar@google.com>
Mon, 11 Jul 2011 18:59:15 +0000 (11:59 -0700)
commit149c097ce73e6f301c8d257828334506028be307
treea6999e366d7fa9ff00ef87db69e98a7274e88d10
parent54444290da43c96a66c30233c170f08b30fe6633
Bluetooth: Add 'dst_type' field to struct hci_conn

This patch adds a new field (dst_type) to the struct hci_conn which
holds the type of the destination address (bdaddr_t dst). This
approach is needed in order to use the struct hci_conn as an
abstraction of LE connections in HCI Layer. For non-LE this field
is ignored.

This patch also set properly the 'dst_type' field after initializing
LE hci_conn structures.

Change-Id: I1e363bb6de263fdb1fe976a5a16ed5debc9b8c0c
Signed-off-by: Andre Guedes <andre.guedes@openbossa.org>
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
include/net/bluetooth/hci_core.h
net/bluetooth/hci_event.c