]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7a2b4b5dd084eb875a3e6bac3e73a1a88c8c2661
tree04a1f123ebcf953086ce3afb323d214fd71eb767
parent7e86c461ff9c12a650fef67090bdba6ac59e31df
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