From bdc535dba3d9dc8ac5e372aa01d2ec9912759f10 Mon Sep 17 00:00:00 2001 From: Joakim Andersson Date: Fri, 31 Jan 2020 14:59:53 +0100 Subject: [PATCH] Bluetooth: host: Fix out of range parameters provided to the controller Fix LE Create Connection command giving out of range parameters to the controller, this came back as 0x30 (Out of Range Parameters) status code on the command from the controller. This appears to be the min and max CE parameters in the command. Revert back memset from 137f70406411 Signed-off-by: Joakim Andersson --- subsys/bluetooth/host/hci_core.c | 1 + 1 file changed, 1 insertion(+) diff --git a/subsys/bluetooth/host/hci_core.c b/subsys/bluetooth/host/hci_core.c index 1cdaa386e70..37986c490ef 100644 --- a/subsys/bluetooth/host/hci_core.c +++ b/subsys/bluetooth/host/hci_core.c @@ -914,6 +914,7 @@ int bt_le_create_conn(const struct bt_conn *conn) } cp = net_buf_add(buf, sizeof(*cp)); + memset(cp, 0, sizeof(*cp)); cp->own_addr_type = own_addr_type; if (use_filter) {