]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: mgmt: Fix powered checks for commands
authorJohan Hedberg <johan.hedberg@intel.com>
Tue, 21 Feb 2012 12:13:02 +0000 (14:13 +0200)
committerJohan Hedberg <johan.hedberg@intel.com>
Tue, 21 Feb 2012 16:47:44 +0000 (18:47 +0200)
commitadef500e0787bc4b141812c3ef25c0f14287079a
tree482ccb3ab4181544e48e5abd4491c5a4afbecc15
parent2ced22e47c792a117690449c88d9c6ecb9726fbd
Bluetooth: mgmt: Fix powered checks for commands

Having the HCI_AUTO_OFF flag set means that from a mgmt interface
perspective we're still not powered, so all tests for HCI_UP should also
include a test for HCI_AUTO_OFF. This patch adds a convenience macro for
it.

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