Bluetooth: Check advertising cache in hci_connect()
authorAndre Guedes <andre.guedes@openbossa.org>
Tue, 31 May 2011 17:20:56 +0000 (14:20 -0300)
committerJaikumar Ganesh <jaikumar@google.com>
Mon, 11 Jul 2011 18:59:16 +0000 (11:59 -0700)
commit5e89ece9dd1b6797078085519a8a52ec64511d24
tree1d27674d087b68c85093b31d13a486f822241c50
parent92398c8163acd942de0a7c7d2d7abcf5ca3d02af
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.

Change-Id: I234912abc53b859becbe79625b08bc3b6eacc143
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