aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/bluetooth/hci_core.h
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@intel.com>2011-11-07 22:16:02 +0200
committerGustavo F. Padovan <padovan@profusion.mobi>2011-11-08 12:54:09 -0200
commit16ab91ab48287aa4fc757f3618820f728ee4412f (patch)
tree9266bb78e7beedfbf08160a3309349d927b5ac7f /include/net/bluetooth/hci_core.h
parentBluetooth: Periodic Inquiry and Discovery (diff)
downloadlinux-dev-16ab91ab48287aa4fc757f3618820f728ee4412f.tar.xz
linux-dev-16ab91ab48287aa4fc757f3618820f728ee4412f.zip
Bluetooth: Add timeout field to mgmt_set_discoverable
Based on the revised mgmt API set_discoverable has a timeout parameter to specify how long the adapter will remain discoverable. A value of 0 means "indefinitively". Signed-off-by: Johan Hedberg <johan.hedberg@intel.com> 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.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/net/bluetooth/hci_core.h b/include/net/bluetooth/hci_core.h
index 20db034390b7..5803c1ebcefa 100644
--- a/include/net/bluetooth/hci_core.h
+++ b/include/net/bluetooth/hci_core.h
@@ -196,6 +196,9 @@ struct hci_dev {
struct work_struct power_off;
struct timer_list off_timer;
+ __u16 discov_timeout;
+ struct delayed_work discov_off;
+
struct timer_list cmd_timer;
struct tasklet_struct cmd_task;
struct tasklet_struct rx_task;