diff --git a/include/bluetooth/conn.h b/include/bluetooth/conn.h index 00d558bd2e7..b604de22c14 100644 --- a/include/bluetooth/conn.h +++ b/include/bluetooth/conn.h @@ -209,7 +209,7 @@ struct bt_conn *bt_conn_create_le(const bt_addr_le_t *peer, * * @return Zero on success or error code otherwise. */ -int bt_le_set_auto_conn(bt_addr_le_t *addr, +int bt_le_set_auto_conn(const bt_addr_le_t *addr, const struct bt_le_conn_param *param); /** @brief Initiate directed advertising to a remote device diff --git a/subsys/bluetooth/host/conn.c b/subsys/bluetooth/host/conn.c index 22bc9de3911..c35e300f2fa 100644 --- a/subsys/bluetooth/host/conn.c +++ b/subsys/bluetooth/host/conn.c @@ -1934,7 +1934,7 @@ struct bt_conn *bt_conn_create_le(const bt_addr_le_t *peer, return conn; } -int bt_le_set_auto_conn(bt_addr_le_t *addr, +int bt_le_set_auto_conn(const bt_addr_le_t *addr, const struct bt_le_conn_param *param) { struct bt_conn *conn;