Linux bluetooth development
 help / color / mirror / Atom feed
* [PATCH BlueZ] mgmtops: Fix endianness conversion
@ 2012-07-30 18:13 Anderson Lizardo
  2012-07-30 18:15 ` [PATCH v2 BlueZ] monitor: " Anderson Lizardo
  2012-07-31 13:18 ` [PATCH BlueZ] mgmtops: " Anderson Lizardo
  0 siblings, 2 replies; 5+ 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] 5+ messages in thread

end of thread, other threads:[~2012-08-13 10:24 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-30 18:13 [PATCH BlueZ] mgmtops: Fix endianness conversion Anderson Lizardo
2012-07-30 18:15 ` [PATCH v2 BlueZ] monitor: " 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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox