Bluetooth: Mark controller is down when HCI_AUTO_OFF is set
authorMarcel Holtmann <marcel@holtmann.org>
Thu, 10 Jul 2014 11:17:37 +0000 (13:17 +0200)
committerJohan Hedberg <johan.hedberg@intel.com>
Thu, 10 Jul 2014 11:57:47 +0000 (14:57 +0300)
commit2e84d8db91e45964c2b54ccc7da1f9b4bfb1222b
tree11bc61566f95a4870f97e5f1dcd37bbaab38cdf4
parent13a779e42251184d0f53a8f8299ced614faa028f
Bluetooth: Mark controller is down when HCI_AUTO_OFF is set

During the initial setup phase, the controller is powered on and will
be powered off again if it is not used within the auto-off timeout.

Userspace using ioctl does not know about the difference between the
initial setup phase and a controller being present. It is a bad idea
to keep the controller powered by just looking at the device list or
device information. Instead just tell userspace that the controller
is still down.

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