Bluetooth: mgmt: Allow connectable/discoverable changes in off state
authorJohan Hedberg <johan.hedberg@intel.com>
Tue, 21 Feb 2012 14:01:30 +0000 (16:01 +0200)
committerJohan Hedberg <johan.hedberg@intel.com>
Tue, 21 Feb 2012 18:04:39 +0000 (20:04 +0200)
commit5e5282bbfde9ca6157dba913d90cbab859a837e2
tree202265653320550db8c7aea3087bb5cfc8ca032e
parent0cbf4ed6e6f43ac399afefdd14a1ee86db8de7d0
Bluetooth: mgmt: Allow connectable/discoverable changes in off state

This patch makes it possible to toggle the connectable & discoverable
settings when powered off. Two new hdev->dev_flags flags are added to
track what the scan mode should be when the device is finally powered
on.

Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Acked-by: Marcel Holtmann <marcel@holtmann.org>
include/net/bluetooth/hci.h
net/bluetooth/hci_core.c
net/bluetooth/mgmt.c