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;