Bluetooth: Add hci_conn_lookup_type() helper function
authorMarcel Holtmann <marcel@holtmann.org>
Mon, 3 Nov 2014 04:16:08 +0000 (05:16 +0100)
committerJohan Hedberg <johan.hedberg@intel.com>
Mon, 3 Nov 2014 08:13:43 +0000 (10:13 +0200)
commit845472e8d50c898c73b4f69f4edad5249b13d6a9
tree7df3c2c65552aa09aab6d8d314dc94136fa847b6
parent2cbd3f5ccd43ba823e183f98a798d4b23cfb12b8
Bluetooth: Add hci_conn_lookup_type() helper function

Some drivers require knowledge of what connection handle is assigned
to what connection link type (ACL or SCO/eSCO). Instead of having each
driver implement connection tracking, provide a simple helper function
for lookup of the link type.

Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
include/net/bluetooth/hci.h
include/net/bluetooth/hci_core.h