Linux bluetooth development
 help / color / mirror / Atom feed
* [PATCH] Bluetooth: Fix mgmt_stop_discovery_failed()
@ 2012-01-02 19:50 Andre Guedes
  2012-01-02 22:25 ` Marcel Holtmann
  2012-01-03  0:44 ` Gustavo Padovan
  0 siblings, 2 replies; 4+ messages in thread
From: Andre Guedes @ 2012-01-02 19:50 UTC (permalink / raw)
  To: linux-bluetooth

Stop Discovery Command Status Event should use mgmt status code.

Signed-off-by: Andre Guedes <andre.guedes@openbossa.org>
---
 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 2540944..fb0b15e 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;
-- 
1.7.8.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-01-03  0:44 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-02 19:50 [PATCH] Bluetooth: Fix mgmt_stop_discovery_failed() Andre Guedes
2012-01-02 22:25 ` Marcel Holtmann
2012-01-02 22:48   ` Johan Hedberg
2012-01-03  0:44 ` Gustavo Padovan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox