Bluetooth: Add timer for automatically disabling the service cache
authorJohan Hedberg <johan.hedberg@intel.com>
Wed, 14 Dec 2011 22:47:39 +0000 (00:47 +0200)
committerGustavo F. Padovan <padovan@profusion.mobi>
Sun, 18 Dec 2011 19:41:04 +0000 (17:41 -0200)
commit7d78525dcf5c6fe5e6e73d22776ed5f960e3153e
treebe4ab2f2c9b140733a685e6ac6da2c7e409b3618
parentef5803729c2323204f7372617ad97e55e94153b9
Bluetooth: Add timer for automatically disabling the service cache

We do not want the service cache to be enabled indefinitely after
mgmt_read_info is called. To solve this a timer is added which will
automatically disable the cache if mgmt_set_dev_class isn't called
within 5 seconds of calling mgmt_read_info.

Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Acked-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
include/net/bluetooth/hci_core.h
net/bluetooth/hci_core.c
net/bluetooth/mgmt.c