Bluetooth: Fix mgmt_stop_discovery_failed()
authorAndre Guedes <andre.guedes@openbossa.org>
Mon, 2 Jan 2012 19:50:53 +0000 (16:50 -0300)
committerGustavo F. Padovan <padovan@profusion.mobi>
Tue, 3 Jan 2012 03:35:23 +0000 (01:35 -0200)
Stop Discovery Command Status Event should use mgmt status code.

Signed-off-by: Andre Guedes <andre.guedes@openbossa.org>
Acked-by: Johan Hedberg <johan.hedberg@intel.com>
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
net/bluetooth/mgmt.c

index 38ec8ca72175d262b03eda8b0c79bbbf85367009..bc8e59dda78e2bf72f81c3eeacea748d5cbd78ae 100644 (file)
@@ -2756,7 +2756,7 @@ int mgmt_stop_discovery_failed(struct hci_dev *hdev, u8 status)
        if (!cmd)
                return -ENOENT;
 
-       err = cmd_status(cmd->sk, hdev->id, cmd->opcode, status);
+       err = cmd_status(cmd->sk, hdev->id, cmd->opcode, mgmt_status(status));
        mgmt_pending_remove(cmd);
 
        return err;