Bluetooth: Use address type info from user-space
authorAndre Guedes <andre.guedes@openbossa.org>
Wed, 25 Apr 2012 00:02:55 +0000 (21:02 -0300)
committerGustavo Padovan <gustavo@padovan.org>
Wed, 9 May 2012 04:40:45 +0000 (01:40 -0300)
commit8e9f98921c0718cda76bc53c2b51954657b60fa6
tree415c3e8a59f774e0b056c152b22b5b0ee63d0857
parentb12f62cfd9f46ac70013ce661640174b489efd39
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>
include/net/bluetooth/l2cap.h
net/bluetooth/l2cap_core.c
net/bluetooth/l2cap_sock.c