Bluetooth: Advertising entries lifetime
authorAndre Guedes <andre.guedes@openbossa.org>
Thu, 26 May 2011 19:23:53 +0000 (16:23 -0300)
committermgross <mark.gross@intel.com>
Wed, 9 Nov 2011 20:10:16 +0000 (12:10 -0800)
commit0781b86b670b5eafcf611e62ac1783e5e2fd1183
tree2d1586bca195df0e570e8c7ad418dbb61f63a1e3
parent9deeb48bc899b1a0d54ecd233e5bceb6b63d8e78
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