OSDN Git Service

Bluetooth: Make Fast Connectable available while powered off
authorJohan Hedberg <johan.hedberg@intel.com>
Tue, 10 Mar 2015 18:14:27 +0000 (20:14 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Tue, 10 Mar 2015 18:37:02 +0000 (19:37 +0100)
commit406ef2a67bd0bb13d77d5e5d700e36a2caea09ae
tree1c07b55741dcef767b510d6be85c5d778da42c8a
parent0402d9f233ac5d66b39452037fef88333b06d51c
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>
include/net/bluetooth/hci.h
net/bluetooth/mgmt.c