aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorJefferson Delfes <jefferson.delfes@openbossa.org>2012-06-01 15:08:24 -0400
committerJohan Hedberg <johan.hedberg@intel.com>2012-06-02 09:12:36 +0800
commit1801a4d45d74c29cebacaab79a07e9961300be41 (patch)
treee5feca40063ce823e9f5af5d4b66a82035b16980 /plugins
parent29405cc587e83b921fce761d876f582b90b618b0 (diff)
downloadbluez-1801a4d45d74c29cebacaab79a07e9961300be41.tar.gz
bluez-1801a4d45d74c29cebacaab79a07e9961300be41.tar.xz
bluez-1801a4d45d74c29cebacaab79a07e9961300be41.zip
mgmtops: Fix endianness conversion
Flags field has 32-bit size.
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mgmtops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mgmtops.c b/plugins/mgmtops.c
index 22fa3299..cedfbd4b 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",