diff options
author | Andre Guedes <andre.guedes@openbossa.org> | 2012-01-02 14:50:53 -0500 |
---|---|---|
committer | Gustavo F. Padovan <padovan@profusion.mobi> | 2012-01-02 22:35:23 -0500 |
commit | e75a8b0c332875b2a2d22acdc331fc2b83788cac (patch) | |
tree | 0ed7fc7f07b730f327feeb90a787960287aef75c /net/bluetooth/mgmt.c | |
parent | d084329e2862922bbc9a2de04a5c8e7219bfceb9 (diff) |
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/mgmt.c')
-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) | |||
2756 | if (!cmd) | 2756 | if (!cmd) |
2757 | return -ENOENT; | 2757 | return -ENOENT; |
2758 | 2758 | ||
2759 | err = cmd_status(cmd->sk, hdev->id, cmd->opcode, status); | 2759 | err = cmd_status(cmd->sk, hdev->id, cmd->opcode, mgmt_status(status)); |
2760 | mgmt_pending_remove(cmd); | 2760 | mgmt_pending_remove(cmd); |
2761 | 2761 | ||
2762 | return err; | 2762 | return err; |