diff options
author | Andre Guedes <andre.guedes@openbossa.org> | 2012-04-24 20:02:55 -0400 |
---|---|---|
committer | Gustavo Padovan <gustavo@padovan.org> | 2012-05-09 00:40:45 -0400 |
commit | 8e9f98921c0718cda76bc53c2b51954657b60fa6 (patch) | |
tree | 415c3e8a59f774e0b056c152b22b5b0ee63d0857 /include/net/bluetooth | |
parent | b12f62cfd9f46ac70013ce661640174b489efd39 (diff) |
Bluetooth: Use address type info from user-space
In order to establish a LE connection we need the address type
information. User-space already pass this information to kernel
through struct sockaddr_l2.
This patch adds the dst_type parameter to l2cap_chan_connect so we
are able to pass the address type info from user-space down to
hci_conn layer.
Signed-off-by: Andre Guedes <andre.guedes@openbossa.org>
Acked-by: Johan Hedberg <johan.hedberg@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'include/net/bluetooth')
-rw-r--r-- | include/net/bluetooth/l2cap.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/bluetooth/l2cap.h b/include/net/bluetooth/l2cap.h index bb4e3f66b43c..86bb83bc6a4f 100644 --- a/include/net/bluetooth/l2cap.h +++ b/include/net/bluetooth/l2cap.h | |||
@@ -922,7 +922,7 @@ struct l2cap_chan *l2cap_chan_create(void); | |||
922 | void l2cap_chan_close(struct l2cap_chan *chan, int reason); | 922 | void l2cap_chan_close(struct l2cap_chan *chan, int reason); |
923 | void l2cap_chan_destroy(struct l2cap_chan *chan); | 923 | void l2cap_chan_destroy(struct l2cap_chan *chan); |
924 | int l2cap_chan_connect(struct l2cap_chan *chan, __le16 psm, u16 cid, | 924 | int l2cap_chan_connect(struct l2cap_chan *chan, __le16 psm, u16 cid, |
925 | bdaddr_t *dst); | 925 | bdaddr_t *dst, u8 dst_type); |
926 | int l2cap_chan_send(struct l2cap_chan *chan, struct msghdr *msg, size_t len, | 926 | int l2cap_chan_send(struct l2cap_chan *chan, struct msghdr *msg, size_t len, |
927 | u32 priority); | 927 | u32 priority); |
928 | void l2cap_chan_busy(struct l2cap_chan *chan, int busy); | 928 | void l2cap_chan_busy(struct l2cap_chan *chan, int busy); |