Bluetooth: Fix response for mgmt_start_discovery when powered off
authorJohan Hedberg <johan.hedberg@intel.com>
Mon, 7 Nov 2011 21:13:37 +0000 (23:13 +0200)
committerGustavo F. Padovan <padovan@profusion.mobi>
Tue, 8 Nov 2011 15:02:08 +0000 (13:02 -0200)
commitbd2d1334e1dd64765b29f9e1b592777c410ed121
tree116a8fd6bd554e0dffa070eb13bcad9fb6cc7fc5
parent889d07ee57e950790cbec81df7b4f9d8691ee0b4
Bluetooth: Fix response for mgmt_start_discovery when powered off

We should return a ENETDOWN status response if the adapter is powered
off (i.e. the HCI_UP flag isn't set).

Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
net/bluetooth/mgmt.c