diff options
author | Johan Hedberg <johan.hedberg@intel.com> | 2015-03-10 14:14:27 -0400 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2015-03-10 14:37:02 -0400 |
commit | 406ef2a67bd0bb13d77d5e5d700e36a2caea09ae (patch) | |
tree | 1c07b55741dcef767b510d6be85c5d778da42c8a /include/net/bluetooth/hci.h | |
parent | 0402d9f233ac5d66b39452037fef88333b06d51c (diff) |
Bluetooth: Make Fast Connectable available while powered off
To maximize the usability of the Fast Connectable feature we should make
it possible to set (or unset) it at any given moment. This means
removing the dependency on the 'connectable' setting as well as the
'powered' setting. The former makes also sense since page scan may get
enabled through add_device even if 'connectable' is false. To keep the
setting available over power cycles its flag also needs to be removed
from the flags that are cleared upon HCI_Reset.
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'include/net/bluetooth/hci.h')
-rw-r--r-- | include/net/bluetooth/hci.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/bluetooth/hci.h b/include/net/bluetooth/hci.h index 8e54f825153c..f76f45ae76c3 100644 --- a/include/net/bluetooth/hci.h +++ b/include/net/bluetooth/hci.h | |||
@@ -231,7 +231,7 @@ enum { | |||
231 | * or the HCI device is closed. | 231 | * or the HCI device is closed. |
232 | */ | 232 | */ |
233 | #define HCI_PERSISTENT_MASK (BIT(HCI_LE_SCAN) | BIT(HCI_PERIODIC_INQ) | \ | 233 | #define HCI_PERSISTENT_MASK (BIT(HCI_LE_SCAN) | BIT(HCI_PERIODIC_INQ) | \ |
234 | BIT(HCI_FAST_CONNECTABLE) | BIT(HCI_LE_ADV)) | 234 | BIT(HCI_LE_ADV)) |
235 | 235 | ||
236 | /* HCI timeouts */ | 236 | /* HCI timeouts */ |
237 | #define HCI_DISCONN_TIMEOUT msecs_to_jiffies(2000) /* 2 seconds */ | 237 | #define HCI_DISCONN_TIMEOUT msecs_to_jiffies(2000) /* 2 seconds */ |