Insert logic into test_ftu for wifi networks

@bebef_1987 is the original author of this code.

We need this for CI devices that use the mozilla mobile wifi network and thus require a password to complete the WiFi connection.