Bluetooth: Only keep controller up after init if powered on
authorMarcel Holtmann <marcel@holtmann.org>
Tue, 21 Feb 2012 11:14:25 +0000 (12:14 +0100)
committerJohan Hedberg <johan.hedberg@intel.com>
Tue, 21 Feb 2012 11:49:01 +0000 (13:49 +0200)
commitf0d4b78a68c4fe3b0d45de9a50e8d29419177b83
tree9d25e03da192459aee072e32604a83ad7b656d98
parentc059e05353081471908c05029585765614e07cec
Bluetooth: Only keep controller up after init if powered on

When a new controller gets added to the system, it needs to be brought
up briefly to read basic information like features, BD_ADDR etc. and
after a timeout it will be brought back down.

The only command that should overwrite this timeout is the set power
command from the management interface. Just reading the controller
list or information is not a good reason to keep the controller up.

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