Bluetooth: Check advertising cache in hci_connect()
authorAndre Guedes <andre.guedes@openbossa.org>
Tue, 31 May 2011 17:20:56 +0000 (14:20 -0300)
committerGustavo F. Padovan <padovan@profusion.mobi>
Wed, 8 Jun 2011 19:58:18 +0000 (16:58 -0300)
commiteda42b503a3c866d51146549fe46da1f5f64e2c7
treeabccd76f57decdd1824851fffe025c56ee11fd61
parent893d67514aebcfd3ebf17bd212ceea1e2741a443
Bluetooth: Check advertising cache in hci_connect()

When connecting to a LE device, we need to check the advertising
cache in order to know the address type of that device.

If its advertising entry is not found, the connection is not
established and hci_connect() returns error.

Signed-off-by: Andre Guedes <andre.guedes@openbossa.org>
Acked-by: Ville Tervo <ville.tervo@nokia.com>
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
net/bluetooth/hci_conn.c