From: Anderson Lizardo <anderson.lizardo@openbossa.org>
To: linux-bluetooth@vger.kernel.org
Cc: Anderson Lizardo <anderson.lizardo@openbossa.org>
Subject: [PATCH BlueZ] mgmtops: Fix endianness conversion
Date: Mon, 30 Jul 2012 14:13:25 -0400 [thread overview]
Message-ID: <1343672005-18528-1-git-send-email-anderson.lizardo@openbossa.org> (raw)
Flags field has 32-bit size. Same issue was fixed for mgmtops in
1801a4d45d74c29cebacaab79a07e9961300be41.
---
monitor/control.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/monitor/control.c b/monitor/control.c
index 159ba9d..54b249d 100644
--- a/monitor/control.c
+++ b/monitor/control.c
@@ -210,7 +210,7 @@ static void mgmt_device_connected(uint16_t len, const void *buf)
return;
}
- flags = btohs(ev->flags);
+ flags = btohl(ev->flags);
ba2str(&ev->addr.bdaddr, str);
printf("@ Device Connected: %s (%d) flags 0x%4.4x\n",
--
1.7.9.5
next reply other threads:[~2012-07-30 18:13 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-07-30 18:13 Anderson Lizardo [this message]
2012-07-30 18:15 ` [PATCH v2 BlueZ] monitor: Fix endianness conversion Anderson Lizardo
2012-07-31 13:21 ` [PATCH v3 " Anderson Lizardo
2012-08-13 10:24 ` Johan Hedberg
2012-07-31 13:18 ` [PATCH BlueZ] mgmtops: " Anderson Lizardo
-- strict thread matches above, loose matches on Subject: below --
2012-06-01 19:08 Jefferson Delfes
2012-06-02 1:13 ` Johan Hedberg
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=1343672005-18528-1-git-send-email-anderson.lizardo@openbossa.org \
--to=anderson.lizardo@openbossa.org \
--cc=linux-bluetooth@vger.kernel.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