Bluetooth: Fix returning proper cmd_complete for mgmt_disconnect
authorJohan Hedberg <johan.hedberg@intel.com>
Sun, 20 Jan 2013 12:27:21 +0000 (14:27 +0200)
committerGustavo Padovan <gustavo.padovan@collabora.co.uk>
Wed, 23 Jan 2013 04:02:42 +0000 (02:02 -0200)
commit06a63b19e9eb90402e465d60d4c2564afd3ca211
treef83280092926c8a81a21eefbc684308fbbe22244
parent118da70b760f04bb2b8130ced97a9f9cc173440a
Bluetooth: Fix returning proper cmd_complete for mgmt_disconnect

The Disconnect Management command 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 disconnect 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