Bluetooth: Add state to hci_chan
authorMat Martineau <mathewm@codeaurora.org>
Tue, 23 Oct 2012 22:24:13 +0000 (15:24 -0700)
committerGustavo Padovan <gustavo.padovan@collabora.co.uk>
Wed, 24 Oct 2012 02:16:23 +0000 (00:16 -0200)
commit168df8e57e7c1afce3f86a86ae106f82ff7c18d8
tree9d2c169f1fb88c52391b3b4f267af1ed3ce0bf03
parent5f3847a4788e7205a6ad2ac363f968c9618074f1
Bluetooth: Add state to hci_chan

On an AMP controller, hci_chan maps to a logical link.  When a channel
is being moved, the logical link may or may not be connected already.
The hci_chan->state is used to determine the existance of a useable
logical link so the link can be either used or requested.

Signed-off-by: Mat Martineau <mathewm@codeaurora.org>
Acked-by: Marcel Holtmann <marcel@holtmann.org>
Acked-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
include/net/bluetooth/hci_core.h
net/bluetooth/hci_conn.c