Isn't this a specific test case for FTU using wifi? I'm not keen on having this kind of logic in the test - it will execute a different path depending on contents of testvars. If we have one test that enables wifi in FTU then we can mark it as requiring wifi and exclude it from devices that don't have this.