Bluetooth: Advertising entries lifetime
authorAndre Guedes <andre.guedes@openbossa.org>
Thu, 26 May 2011 19:23:53 +0000 (16:23 -0300)
committerJaikumar Ganesh <jaikumar@google.com>
Mon, 11 Jul 2011 18:59:14 +0000 (11:59 -0700)
commit45e600fedef0ca2d9b5b5a09772f9e7a9d74d3b6
treed4572fbd21762483400af4f7326c15a62a44c330
parent726e1334c7e975a0be3e675f9a67633ddd8afae3
Bluetooth: Advertising entries lifetime

This patch adds a timer to clear 'adv_entries' after three minutes.

After some amount of time, the advertising entries cached during
the last LE scan should be considered expired and they should be
removed from the advertising cache.

It was chosen a three minutes timeout as an initial attempt. This
value might change in future.

Signed-off-by: Andre Guedes <andre.guedes@openbossa.org>
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
include/net/bluetooth/hci_core.h
net/bluetooth/hci_core.c
net/bluetooth/hci_event.c