Islam, official religion of Crimean Khanate

When did Islam became official religion of Crimean Khanate? There is a hypothesis that Malik Ashter and Gazi Mansur missionaries came to Crimea in the VII th century. However, Islam became the official religion in Crimea in the XIIIth century.