Bluetooth: Fix returning proper cmd_complete for mgmt_block/unblock
authorJohan Hedberg <johan.hedberg@intel.com>
Sun, 20 Jan 2013 12:27:22 +0000 (14:27 +0200)
committerGustavo Padovan <gustavo.padovan@collabora.co.uk>
Wed, 23 Jan 2013 04:03:33 +0000 (02:03 -0200)
commit5d0846d416a6c8b7fda1b24aa7369818a7dfa00e
tree04a1f123ebcf953086ce3afb323d214fd71eb767
parent06a63b19e9eb90402e465d60d4c2564afd3ca211
Bluetooth: Fix returning proper cmd_complete for mgmt_block/unblock

The Block/Unblock Device Management commands should return Command
Complete instead of Command Status whenever possible so that user space
can distinguish exactly which command failed in the case of multiple
commands. This patch does the necessary changes in the command handler
to return the right event to user space.

Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Acked-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
net/bluetooth/mgmt.c