Bluetooth: Add convenience function to check for pending power off
authorJohan Hedberg <johan.hedberg@intel.com>
Fri, 1 Aug 2014 08:13:30 +0000 (11:13 +0300)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 14 Aug 2014 06:49:08 +0000 (08:49 +0200)
commit84c61d92bb6e9048eecc0738a83f1bf66f053026
tree300573195ea6dcda03577db1fb4a00e91c8eb617
parentf0094b28f3038936c1985be64dbe83f0e950b671
Bluetooth: Add convenience function to check for pending power off

There are several situations where we're interested in knowing whether
we're currently in the process of powering off an adapter. This patch
adds a convenience function for the purpose and makes it public since
we'll soon need to access it from hci_event.c as well.

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