Bluetooth: mgmt: Fix unpair_device responses
authorJohan Hedberg <johan.hedberg@intel.com>
Wed, 22 Feb 2012 20:53:34 +0000 (22:53 +0200)
committerJohan Hedberg <johan.hedberg@intel.com>
Thu, 23 Feb 2012 11:07:01 +0000 (13:07 +0200)
commit86a8cfc6d0428f32d702ec59c1b3ef38541a6821
tree32e643285bb2d3f96776077f1c00ef5840aec112
parent5f97c1df5563349795f26ed249e2a8840237c569
Bluetooth: mgmt: Fix unpair_device responses

This patch adds an error return when not powered and cleans up/simpifies
the function logic in the same go.

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