From c439e296677429405f605ecce9a76711499e9350 Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Thu, 17 Aug 2017 14:43:15 +0200 Subject: [PATCH] hci: correct len of hci_write_extended_inquiry_response during init --- src/hci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hci.c b/src/hci.c index a2052fb95..d52f6efb5 100644 --- a/src/hci.c +++ b/src/hci.c @@ -1301,7 +1301,7 @@ static void hci_initializing_run(void){ } // expand '00:00:00:00:00:00' in name with bd_addr hci_replace_bd_addr_placeholder(&packet[4], 240); - hci_send_cmd_packet(packet, HCI_CMD_HEADER_SIZE + DEVICE_NAME_LEN); + hci_send_cmd_packet(packet, HCI_CMD_HEADER_SIZE + 1 + 240); break; } case HCI_INIT_WRITE_INQUIRY_MODE: