2005-06-05 13:51:16

by Catalin Drula

[permalink] [raw]
Subject: [Bluez-devel] [PATCH] hci_send_req: fix for EVT_CMD_STATUS

Hi,

The attached patch fixes a bug in hci_send_req (bluez-libs-2.17/src/hci.c)
whereas the requests for commands that generate a "command status" event
(such as the "inquiry" command), as opposed to a "command complete" event,
would always fail.

Regards,

Catalin

--- bluez-libs-2.17/src/hci.c~ 2005-05-09 20:33:24.000000000 +0200
+++ bluez-libs-2.17/src/hci.c 2005-06-05 15:30:27.000000000 +0200
@@ -770,7 +770,7 @@
errno = EIO;
goto failed;
}
- break;
+ goto done;

case EVT_CMD_COMPLETE:
cc = (void *) ptr;


Attachments:
patch_hci_send_req (283.00 B)