summaryrefslogtreecommitdiff
path: root/include/net/bluetooth
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@intel.com>2013-03-15 17:06:57 -0500
committerGustavo Padovan <gustavo.padovan@collabora.co.uk>2013-03-18 14:02:02 -0300
commit2cc6fb0049bc02ca7a020ba7b4f88b4c35976058 (patch)
tree7409818813401d2ec66ecbc73cb4b7b42f5c78f1 /include/net/bluetooth
parent2908fe31cf6b8d3a975efb567347f85e724f4e81 (diff)
downloadlinux-3.10-2cc6fb0049bc02ca7a020ba7b4f88b4c35976058.tar.gz
linux-3.10-2cc6fb0049bc02ca7a020ba7b4f88b4c35976058.tar.bz2
linux-3.10-2cc6fb0049bc02ca7a020ba7b4f88b4c35976058.zip
Bluetooth: Add a define for the HCI persistent flags mask
We'll need to use this mask also when powering off the HCI device so it's better to have this in a single and visible place. Signed-off-by: Johan Hedberg <johan.hedberg@intel.com> Acked-by: Marcel Holtmann <marcel@holtmann.org> Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
Diffstat (limited to 'include/net/bluetooth')
-rw-r--r--include/net/bluetooth/hci.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/net/bluetooth/hci.h b/include/net/bluetooth/hci.h
index 1e723c76a8f..1e40222e9dd 100644
--- a/include/net/bluetooth/hci.h
+++ b/include/net/bluetooth/hci.h
@@ -122,6 +122,11 @@ enum {
HCI_PERIODIC_INQ,
};
+/* A mask for the flags that are supposed to remain when a reset happens
+ * or the HCI device is closed.
+ */
+#define HCI_PERSISTENT_MASK (BIT(HCI_LE_SCAN) | BIT(HCI_PERIODIC_INQ))
+
/* HCI ioctl defines */
#define HCIDEVUP _IOW('H', 201, int)
#define HCIDEVDOWN _IOW('H', 202, int)