aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/bluetooth
diff options
context:
space:
mode:
authorAndre Guedes <andre.guedes@openbossa.org>2011-05-31 13:20:54 -0400
committerGustavo F. Padovan <padovan@profusion.mobi>2011-06-08 15:58:18 -0400
commit29b7988a23daf79c15d587ef9e98e64715aa1ea8 (patch)
treee50821c4663e4f6bfa35456cc5d2caa98358758c /include/net/bluetooth
parentd7556e20ade582a223ca1792e1f8a7bfd7d5d008 (diff)
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. Signed-off-by: Andre Guedes <andre.guedes@openbossa.org> Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
Diffstat (limited to 'include/net/bluetooth')
-rw-r--r--include/net/bluetooth/hci_core.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/bluetooth/hci_core.h b/include/net/bluetooth/hci_core.h
index 0ac820dc35f..5be15022957 100644
--- a/include/net/bluetooth/hci_core.h
+++ b/include/net/bluetooth/hci_core.h
@@ -224,6 +224,7 @@ struct hci_conn {
224 spinlock_t lock; 224 spinlock_t lock;
225 225
226 bdaddr_t dst; 226 bdaddr_t dst;
227 __u8 dst_type;
227 __u16 handle; 228 __u16 handle;
228 __u16 state; 229 __u16 state;
229 __u8 mode; 230 __u8 mode;