]> 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)
commite93717c414cece67779a564059056d83fb21398a
tree04a1f123ebcf953086ce3afb323d214fd71eb767
parentd0a49e30896e09cb7a7ff71dd9a52d181f90f705
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