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 137f704064

Signed-off-by: Joakim Andersson <joakim.andersson@nordicsemi.no>
This commit is contained in:
Joakim Andersson 2020-01-31 14:59:53 +01:00 committed by Johan Hedberg
commit bdc535dba3

View file

@ -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) {