]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit00189ee3fe9d976b18447ddefb50c512d5e56031
treeadbbd3ad1892db80756656385f148e15c8c6fa13
parent34d0cf2473d02972809f80bdd67a14d12d8f6b6b
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