]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1bf186fe9ab23857652383ca1d5610f566f184f1
tree1c07b55741dcef767b510d6be85c5d778da42c8a
parentcc963eadab9fbfc9df3eef549842dae2c35991fb
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