Bluetooth: Find hci_conn by BT_CONNECT state
authorAndre Guedes <andre.guedes@openbossa.org>
Fri, 27 Jul 2012 18:10:14 +0000 (15:10 -0300)
committerGustavo Padovan <gustavo.padovan@collabora.co.uk>
Mon, 6 Aug 2012 18:07:49 +0000 (15:07 -0300)
commit0c95ab78be36e56ca69e36bc679f9dfd3d25f31e
treeadbbd3ad1892db80756656385f148e15c8c6fa13
parentf00a06ac14becc3d78fecdf2513cc23ee267a96b
Bluetooth: Find hci_conn by BT_CONNECT state

This patch changes hci_cs_le_create_conn to perform hci_conn lookup
by state instead of bdaddr.

Since we can have only one LE connection in BT_CONNECT state, we can
perform LE hci_conn lookup by state. This way, we don't rely on
hci_sent_cmd_data helper to find the hci_conn object.

Signed-off-by: Andre Guedes <andre.guedes@openbossa.org>
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
net/bluetooth/hci_event.c