Diff between 4d9b694b0eb18550991b18f260d789735cf18282 and a0befeaf4107a8de2a20d04f89dc751a6d57ecac

Changed Files

File Additions Deletions Status
mgmt/main.c +1 -1 modified

Full Patch

diff --git a/mgmt/main.c b/mgmt/main.c
index e66a9b7..565df63 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);