From: Andrzej Zaborowski <balrogg@gmail.com>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [PATCH] bt: HCI Reset returns a Cmd Complete event.
Date: Thu, 7 Jun 2012 15:43:09 +0200 [thread overview]
Message-ID: <1339076590-18909-1-git-send-email-balrogg@gmail.com> (raw)
HCI Reset command returns a Command Complete event, not a Command Status
event. We need to avoid resetting the stored last command code for the
response to be fully correct.
Signed-off-by: Andrzej Zaborowski <andrew.zaborowski@intel.com>
---
hw/bt-hci.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/hw/bt-hci.c b/hw/bt-hci.c
index a3a7fb4..8c717f9 100644
--- a/hw/bt-hci.c
+++ b/hw/bt-hci.c
@@ -1783,7 +1783,8 @@ static void bt_submit_hci(struct HCIInfo *info,
case cmd_opcode_pack(OGF_HOST_CTL, OCF_RESET):
bt_hci_reset(hci);
- bt_hci_event_status(hci, HCI_SUCCESS);
+ hci->last_cmd = cpu_to_le16(cmd);
+ bt_hci_event_complete_status(hci, HCI_SUCCESS);
break;
case cmd_opcode_pack(OGF_HOST_CTL, OCF_SET_EVENT_FLT):
--
1.7.4.4
next reply other threads:[~2012-06-07 13:43 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-07 13:43 Andrzej Zaborowski [this message]
2012-06-07 13:43 ` [Qemu-devel] [PATCH] bt: Fix the bitmask in event masked check Andrzej Zaborowski
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=1339076590-18909-1-git-send-email-balrogg@gmail.com \
--to=balrogg@gmail.com \
--cc=qemu-devel@nongnu.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).