From: Johan Hedberg <johan.hedberg@nokia.com>
To: bluez-devel@lists.sourceforge.net
Subject: [Bluez-devel] hci_send_req and EVT_CMD_STATUS
Date: Mon, 24 Oct 2005 00:06:20 +0300 [thread overview]
Message-ID: <20051023210620.GA14179@localhost.localdomain> (raw)
[-- Attachment #1: Type: text/plain, Size: 394 bytes --]
Hi Marcel,
I see that you changed hci_send_req so that it will never return
cmd_status events with non-zero status (instead the function fails with
EIO). If this was intentional (the fix I sent would have allowed getting
the cmd status event in all circumstanses), please apply the attached
patch since checking for rp.status after hci_send_req has successfully
returned is unecessary.
Johan
[-- Attachment #2: cmd-status.patch --]
[-- Type: text/plain, Size: 1111 bytes --]
Index: dbus.c
===================================================================
RCS file: /cvsroot/bluez/utils/hcid/dbus.c,v
retrieving revision 1.31
diff -u -r1.31 dbus.c
--- dbus.c 22 Oct 2005 13:03:41 -0000 1.31
+++ dbus.c 23 Oct 2005 19:55:39 -0000
@@ -1374,12 +1374,6 @@
goto failed;
}
- if (rp.status) {
- syslog(LOG_ERR, "Inquiry command failed with status 0x%02X", rp.status);
- reply = bluez_new_failure_msg(msg, BLUEZ_ESYSTEM_OFFSET + EIO);
- goto failed;
- }
-
reply = dbus_message_new_method_return(msg);
failed:
@@ -1496,12 +1490,6 @@
goto failed;
}
- if (rp.status) {
- syslog(LOG_ERR, "Remote name command failed with status 0x%02X", rp.status);
- reply = bluez_new_failure_msg(msg, BLUEZ_ESYSTEM_OFFSET + EIO);
- goto failed;
- }
-
reply = dbus_message_new_method_return(msg);
failed:
@@ -1655,12 +1643,6 @@
goto failed;
}
- if (rp.status) {
- syslog(LOG_ERR, "Authentication command failed with status 0x%02X", rp.status);
- reply = bluez_new_failure_msg(msg, BLUEZ_ESYSTEM_OFFSET + EIO);
- goto failed;
- }
-
failed:
if (sock >= 0)
close(sock);
next reply other threads:[~2005-10-23 21:06 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-10-23 21:06 Johan Hedberg [this message]
2005-10-23 21:26 ` [Bluez-devel] hci_send_req and EVT_CMD_STATUS Marcel Holtmann
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20051023210620.GA14179@localhost.localdomain \
--to=johan.hedberg@nokia.com \
--cc=bluez-devel@lists.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.