linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC v2 0/6] LE advertising cache
@ 2011-03-11 13:32 Andre Guedes
  2011-03-11 13:32 ` [RFC v2 1/6] Bluetooth: Implement advertising report meta event Andre Guedes
                   ` (6 more replies)
  0 siblings, 7 replies; 11+ messages in thread
From: Andre Guedes @ 2011-03-11 13:32 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Andre Guedes

During a LE connection establishment, the host should be able to infer the
bdaddr type from a given bdaddr.

To achieve that, during the LE scanning, the host stores the bdaddr and the
bdaddr type gathered from advertising reports. The host keeps a list of
advertising entry (bdaddr and bdaddr_type) for later lookup. This list will
be called Advertising Cache.

Since the penality to connect to an unreachable device is relatively high,
we must keep only fresh advertising entries on 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.

Next steps include removing all advertising cache from userspace and
implementing a mechanism to sync kernel and userspace advertising cache.

Patches are rebased using Vinicius SMP patches, repo:
git://git.infradead.org/users/vcgomes/linux-2.6.git for-next

Anderson Briglia (1):
  Bluetooth: Implement advertising report meta event

Andre Guedes (5):
  Bluetooth: LE advertising info caching
  Bluetooth: Protect adv_entries with a RW semaphore
  Bluetooth: Check advertising cache in hci_connect()
  Bluetooth: Clear advertising cache before scanning
  Bluetooth: Add a timer to clear the advertising cache

 include/net/bluetooth/hci.h      |   20 ++++++++
 include/net/bluetooth/hci_core.h |   16 +++++++
 net/bluetooth/hci_conn.c         |   12 ++++-
 net/bluetooth/hci_core.c         |   92 ++++++++++++++++++++++++++++++++++++++
 net/bluetooth/hci_event.c        |   47 +++++++++++++++++++
 5 files changed, 184 insertions(+), 3 deletions(-)


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

end of thread, other threads:[~2011-03-16 12:21 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-11 13:32 [RFC v2 0/6] LE advertising cache Andre Guedes
2011-03-11 13:32 ` [RFC v2 1/6] Bluetooth: Implement advertising report meta event Andre Guedes
2011-03-11 13:32 ` [RFC v2 2/6] Bluetooth: LE advertising info caching Andre Guedes
2011-03-11 13:32 ` [RFC v2 3/6] Bluetooth: Protect adv_entries with a RW semaphore Andre Guedes
2011-03-11 13:32 ` [RFC v2 4/6] Bluetooth: Check advertising cache in hci_connect() Andre Guedes
2011-03-11 13:32 ` [RFC v2 5/6] Bluetooth: Clear advertising cache before scanning Andre Guedes
2011-03-11 13:32 ` [RFC v2 6/6] Bluetooth: Add a timer to clear the advertising cache Andre Guedes
2011-03-15  7:57 ` [RFC v2 0/6] LE " Ville Tervo
2011-03-15 14:41   ` Anderson Lizardo
2011-03-16  5:53     ` Ville Tervo
2011-03-16 12:21       ` Anderson Lizardo

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).