* [PATCH BlueZ] btmgmt: Fix endianness conversion
@ 2012-07-31 13:58 Anderson Lizardo
2012-08-13 10:27 ` Johan Hedberg
0 siblings, 1 reply; 2+ messages in thread
From: Anderson Lizardo @ 2012-07-31 13:58 UTC (permalink / raw)
To: linux-bluetooth; +Cc: Anderson Lizardo
Flags field has 32-bit size. Same issue was fixed for mgmtops in
1801a4d45d74c29cebacaab79a07e9961300be41.
---
tools/btmgmt.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/btmgmt.c b/tools/btmgmt.c
index b2d6c3c..c6d48d3 100644
--- a/tools/btmgmt.c
+++ b/tools/btmgmt.c
@@ -461,7 +461,7 @@ static int mgmt_device_found(int mgmt_sk, uint16_t index,
return -EINVAL;
}
- flags = btohs(ev->flags);
+ flags = btohl(ev->flags);
eir_len = bt_get_le16(&ev->eir_len);
if (len != sizeof(*ev) + eir_len) {
--
1.7.9.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-08-13 10:27 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-31 13:58 [PATCH BlueZ] btmgmt: Fix endianness conversion Anderson Lizardo
2012-08-13 10:27 ` Johan Hedberg
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox