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)
commit4b34ee782164fbaf29b2e7c0e8cb3a898c0986ca
tree482ccb3ab4181544e48e5abd4491c5a4afbecc15
parent8ee5654034c85b3915d078147a9d1064cac1852e
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