From a0befeaf4107a8de2a20d04f89dc751a6d57ecac Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Thu, 27 Oct 2011 10:41:47 +0200 Subject: [PATCH] Fix sending correct command code in btmgmt --- mgmt/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mgmt/main.c b/mgmt/main.c index e66a9b72e..565df6304 100644 --- a/mgmt/main.c +++ b/mgmt/main.c @@ -150,7 +150,7 @@ static int mgmt_send_cmd(int mgmt_sk, uint16_t op, uint16_t id, void *data, pending_cmd->user_data = user_data; memset(buf, 0, sizeof(buf)); - hdr->opcode = htobs(MGMT_OP_READ_INFO); + hdr->opcode = htobs(op); hdr->index = htobs(id); hdr->len = htobs(len); memcpy(buf + MGMT_HDR_SIZE, data, len); -- 2.47.3