From 8de38983592baea2570da5b0da8accd926185aab Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Thu, 4 Dec 2014 21:53:53 +0200 Subject: [PATCH] tools/btmgmt: Fix byte order of count parameter --- tools/btmgmt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/btmgmt.c b/tools/btmgmt.c index 247db5ae4..f831ae4b2 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, -- 2.47.3