* [PATCH BlueZ] mgmtops: Fix endianness conversion
@ 2012-06-01 19:08 Jefferson Delfes
2012-06-02 1:13 ` Johan Hedberg
0 siblings, 1 reply; 4+ messages in thread
From: Jefferson Delfes @ 2012-06-01 19:08 UTC (permalink / raw)
To: linux-bluetooth; +Cc: Jefferson Delfes
Flags field has 32-bit size.
---
plugins/mgmtops.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/plugins/mgmtops.c b/plugins/mgmtops.c
index 22fa329..cedfbd4 100644
--- a/plugins/mgmtops.c
+++ b/plugins/mgmtops.c
@@ -1550,7 +1550,7 @@ static void mgmt_device_found(int sk, uint16_t index, void *buf, size_t len)
else
eir = ev->eir;
- flags = btohs(ev->flags);
+ flags = btohl(ev->flags);
ba2str(&ev->addr.bdaddr, addr);
DBG("hci%u addr %s, rssi %d flags 0x%04x eir_len %u",
--
1.7.10.2
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH BlueZ] mgmtops: Fix endianness conversion
@ 2012-07-30 18:13 Anderson Lizardo
2012-07-31 13:18 ` Anderson Lizardo
0 siblings, 1 reply; 4+ messages in thread
From: Anderson Lizardo @ 2012-07-30 18:13 UTC (permalink / raw)
To: linux-bluetooth; +Cc: Anderson Lizardo
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
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH BlueZ] mgmtops: Fix endianness conversion
2012-07-30 18:13 Anderson Lizardo
@ 2012-07-31 13:18 ` Anderson Lizardo
0 siblings, 0 replies; 4+ messages in thread
From: Anderson Lizardo @ 2012-07-31 13:18 UTC (permalink / raw)
To: linux-bluetooth; +Cc: Anderson Lizardo
Hi,
On Mon, Jul 30, 2012 at 2:13 PM, Anderson Lizardo
<anderson.lizardo@openbossa.org> wrote:
> Flags field has 32-bit size. Same issue was fixed for mgmtops in
> 1801a4d45d74c29cebacaab79a07e9961300be41.
> ---
I make a mistake on the subject prefix, please apply v3 instead.
Regards,
--
Anderson Lizardo
Instituto Nokia de Tecnologia - INdT
Manaus - Brazil
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-07-31 13:18 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-06-01 19:08 [PATCH BlueZ] mgmtops: Fix endianness conversion Jefferson Delfes
2012-06-02 1:13 ` Johan Hedberg
2012-07-30 18:13 Anderson Lizardo
2012-07-31 13:18 ` Anderson Lizardo
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.