From 7a14d0a5eb4495dd3b58f4a584ecc5acbd76032a Mon Sep 17 00:00:00 2001 From: "matthias.ringwald@gmail.com" Date: Tue, 10 Feb 2015 22:33:22 +0000 Subject: [PATCH] add missing includes/OPCODE macro --- chipset-em9301/bt_control_em9301.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/chipset-em9301/bt_control_em9301.c b/chipset-em9301/bt_control_em9301.c index 086bda6a9..c14e6ccec 100644 --- a/chipset-em9301/bt_control_em9301.c +++ b/chipset-em9301/bt_control_em9301.c @@ -50,6 +50,11 @@ #include #include /* memcpy */ +#include "hci.h" + +// should go to some common place +#define OPCODE(ogf, ocf) (ocf | ogf << 10) + static int em9301_set_bd_addr_cmd(void * config, bd_addr_t addr, uint8_t *hci_cmd_buffer){ bt_store_16(hci_cmd_buffer, 0, OPCODE(OGF_VENDOR, 0x02)); hci_cmd_buffer[2] = 0x06;