linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 00/12] Caching LE advertising information
@ 2011-05-06 17:05 Andre Guedes
  2011-05-06 17:05 ` [PATCH 01/12] Bluetooth: Add advertising report meta event structs Andre Guedes
                   ` (12 more replies)
  0 siblings, 13 replies; 20+ messages in thread
From: Andre Guedes @ 2011-05-06 17:05 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Andre Guedes

Hi all,

This patchset implements the LE advertising cache which is used
to establish LE connections.

Today, we cannot establish LE connections (via l2cap socket) with
devices which use random address type. To achieve that, we came up
with a solution where the host should be able to infer the address
type (public or random) from the device it wants to connect to.

The approach this patchset implements is: during the LE scanning,
the host stores the address and the address type gathered from
advertising reports. These information are stored at the advertising
cache. So, during a LE connection, the host looks up the advertising
cache and gets the address type from the device it wants to connect
to.

Since the penality to connect to an unreachable device is relatively
high, we must keep only fresh advertising entries in the advertising
cache. So, before each LE scanning the advertising cache is cleared.
Also, after the LE scanning, a timer is set to clear the cache.

Thanks,

Andre Guedes.

Anderson Briglia (2):
  Bluetooth: Add advertising report meta event structs
  Bluetooth: Add advertising report meta event handler

Andre Guedes (10):
  Bluetooth: LE advertising cache
  Bluetooth: Protect 'adv_entries' with a RW lock
  Bluetooth: LE Set Scan Enable command complete event
  Bluetooth: Clear advertising cache before scanning
  Bluetooth: Advertising entries lifetime
  Bluetooth: Add 'dst_type' field to struct hci_conn
  Bluetooth: Add hci_le_conn_add()
  Bluetooth: Remove useless check in hci_connect()
  Bluetooth: Check advertising cache in hci_connect()
  Bluetooth: Set 'peer_addr_type' in hci_le_connect()

 include/net/bluetooth/hci.h      |   21 ++++++++
 include/net/bluetooth/hci_core.h |   19 ++++++++
 net/bluetooth/hci_conn.c         |   26 +++++++++-
 net/bluetooth/hci_core.c         |   96 ++++++++++++++++++++++++++++++++++++++
 net/bluetooth/hci_event.c        |   56 +++++++++++++++++++++-
 5 files changed, 213 insertions(+), 5 deletions(-)


^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2011-05-17 18:43 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-06 17:05 [PATCH 00/12] Caching LE advertising information Andre Guedes
2011-05-06 17:05 ` [PATCH 01/12] Bluetooth: Add advertising report meta event structs Andre Guedes
2011-05-06 17:05 ` [PATCH 02/12] Bluetooth: LE advertising cache Andre Guedes
2011-05-13 19:33   ` Gustavo F. Padovan
2011-05-17 18:22     ` Andre Guedes
2011-05-17 18:43       ` Gustavo F. Padovan
2011-05-06 17:05 ` [PATCH 03/12] Bluetooth: Protect 'adv_entries' with a RW lock Andre Guedes
2011-05-12  1:24   ` Marcel Holtmann
2011-05-17 14:39     ` Andre Guedes
2011-05-06 17:05 ` [PATCH 04/12] Bluetooth: Add advertising report meta event handler Andre Guedes
2011-05-06 17:05 ` [PATCH 05/12] Bluetooth: LE Set Scan Enable command complete event Andre Guedes
2011-05-06 17:05 ` [PATCH 06/12] Bluetooth: Clear advertising cache before scanning Andre Guedes
2011-05-06 17:05 ` [PATCH 07/12] Bluetooth: Advertising entries lifetime Andre Guedes
2011-05-06 17:05 ` [PATCH 08/12] Bluetooth: Add 'dst_type' field to struct hci_conn Andre Guedes
2011-05-06 17:05 ` [PATCH 09/12] Bluetooth: Add hci_le_conn_add() Andre Guedes
2011-05-12  1:27   ` Marcel Holtmann
2011-05-06 17:05 ` [PATCH 10/12] Bluetooth: Remove useless check in hci_connect() Andre Guedes
2011-05-06 17:05 ` [PATCH 11/12] Bluetooth: Check advertising cache " Andre Guedes
2011-05-06 17:05 ` [PATCH 12/12] Bluetooth: Set 'peer_addr_type' in hci_le_connect() Andre Guedes
2011-05-12  1:23 ` [PATCH 00/12] Caching LE advertising information Marcel Holtmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).