Diff between 57e57e6ab57f0454df549762672f1cc5715001b9 and 8de38983592baea2570da5b0da8accd926185aab

Changed Files

File Additions Deletions Status
tools/btmgmt.c +1 -1 modified

Full Patch

diff --git a/tools/btmgmt.c b/tools/btmgmt.c
index 247db5a..f831ae4 100644
--- a/tools/btmgmt.c
+++ b/tools/btmgmt.c
@@ -1663,7 +1663,7 @@ static void cmd_find_service(struct mgmt *mgmt, uint16_t index, int argc,
 	cp = (void *) buf;
 	cp->type = type;
 	cp->rssi = rssi;
-	cp->uuid_count = count;
+	cp->uuid_count = cpu_to_le16(count);
 
 	if (mgmt_send(mgmt, MGMT_OP_START_SERVICE_DISCOVERY, index,
 				sizeof(*cp) + count * 16, cp,