ESP32 - WROOM32 wifi connection takes too long

Hello guys,

im working on my latest project and im having some issues. Im trying to connect to wifi with code like this:

    WiFi.begin(ssid, password);
    while (WiFi.status() != WL_CONNECTED) delay(1);

The problem is that it takes 3200 ms everytime. Im using my own board with WROOM32 revision 1, which is the same as on ESP32 DevkitC. On DevkitC i get 900 in average with the same code and same upload program. Any ideas? I can give u my wiring scheme if needed.

Thank you.