Bluetooth: Refactor HCI connection code
authorAndre Guedes <andre.guedes@openbossa.org>
Wed, 26 Feb 2014 23:21:44 +0000 (20:21 -0300)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 27 Feb 2014 03:41:34 +0000 (19:41 -0800)
commit04a6c5898e8cbb46313b7d425001b701f0fa4e3d
tree33193eddde45abfa9683b1daea8be4ae9d761a3c
parentc99ed8343cdf84279f4d1937d25a3b644a14ed0d
Bluetooth: Refactor HCI connection code

hci_connect() is a very simple and useless wrapper of hci_connect_acl
and hci_connect_le functions. Addtionally, all places where hci_connect
is called the link type value is passed explicitly. This way, we can
safely delete hci_connect, declare hci_connect_acl and hci_connect_le
in hci_core.h and call them directly.

No functionality is changed by this patch.

Signed-off-by: Andre Guedes <andre.guedes@openbossa.org>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
include/net/bluetooth/hci_core.h
net/bluetooth/hci_conn.c
net/bluetooth/l2cap_core.c
net/bluetooth/mgmt.c