diff options
author | Andre Guedes <andre.guedes@openbossa.org> | 2012-01-02 23:50:53 +0400 |
---|---|---|
committer | Gustavo F. Padovan <padovan@profusion.mobi> | 2012-01-03 07:35:23 +0400 |
commit | e75a8b0c332875b2a2d22acdc331fc2b83788cac (patch) | |
tree | 0ed7fc7f07b730f327feeb90a787960287aef75c /net/bluetooth | |
parent | d084329e2862922bbc9a2de04a5c8e7219bfceb9 (diff) | |
download | linux-e75a8b0c332875b2a2d22acdc331fc2b83788cac.tar.xz |
Bluetooth: Fix mgmt_stop_discovery_failed()
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>
Diffstat (limited to 'net/bluetooth')
-rw-r--r-- | net/bluetooth/mgmt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bluetooth/mgmt.c b/net/bluetooth/mgmt.c index 38ec8ca72175..bc8e59dda78e 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; |