From: Andre Guedes Date: Mon, 2 Jan 2012 19:50:53 +0000 (-0300) Subject: Bluetooth: Fix mgmt_stop_discovery_failed() X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=e75a8b0c332875b2a2d22acdc331fc2b83788cac;p=mv-sheeva.git Bluetooth: Fix mgmt_stop_discovery_failed() Stop Discovery Command Status Event should use mgmt status code. Signed-off-by: Andre Guedes Acked-by: Johan Hedberg Signed-off-by: Gustavo F. Padovan --- diff --git a/net/bluetooth/mgmt.c b/net/bluetooth/mgmt.c index 38ec8ca7217..bc8e59dda78 100644 --- a/net/bluetooth/mgmt.c +++ b/net/bluetooth/mgmt.c @@ -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;