diff options
author | Johan Hedberg <johan.hedberg@intel.com> | 2013-03-15 23:06:57 +0100 |
---|---|---|
committer | Gustavo Padovan <gustavo.padovan@collabora.co.uk> | 2013-03-18 18:02:02 +0100 |
commit | 2cc6fb0049bc02ca7a020ba7b4f88b4c35976058 (patch) | |
tree | 7409818813401d2ec66ecbc73cb4b7b42f5c78f1 /include | |
parent | Bluetooth: Remove useless HCI_PENDING_CLASS flag (diff) | |
download | linux-2cc6fb0049bc02ca7a020ba7b4f88b4c35976058.tar.xz linux-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')
-rw-r--r-- | include/net/bluetooth/hci.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/net/bluetooth/hci.h b/include/net/bluetooth/hci.h index 1e723c76a8f6..1e40222e9dd0 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) |