summaryrefslogtreecommitdiffstats
path: root/include/net/bluetooth/hci_core.h
diff options
context:
space:
mode:
authorJohan Hedberg2011-12-14 23:47:39 +0100
committerGustavo F. Padovan2011-12-18 20:41:04 +0100
commit7d78525dcf5c6fe5e6e73d22776ed5f960e3153e (patch)
treebe4ab2f2c9b140733a685e6ac6da2c7e409b3618 /include/net/bluetooth/hci_core.h
parentBluetooth: Move EIR and CoD update functions to a better position (diff)
downloadkernel-qcow2-linux-7d78525dcf5c6fe5e6e73d22776ed5f960e3153e.tar.gz
kernel-qcow2-linux-7d78525dcf5c6fe5e6e73d22776ed5f960e3153e.tar.xz
kernel-qcow2-linux-7d78525dcf5c6fe5e6e73d22776ed5f960e3153e.zip
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>
Diffstat (limited to 'include/net/bluetooth/hci_core.h')
-rw-r--r--include/net/bluetooth/hci_core.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/net/bluetooth/hci_core.h b/include/net/bluetooth/hci_core.h
index cc17f739dfff..105eaa251034 100644
--- a/include/net/bluetooth/hci_core.h
+++ b/include/net/bluetooth/hci_core.h
@@ -193,6 +193,8 @@ struct hci_dev {
__u16 discov_timeout;
struct delayed_work discov_off;
+ struct delayed_work service_cache;
+
struct timer_list cmd_timer;
struct work_struct rx_work;