Correced WiFi detection. Debugged - OK.