change wifi state from tests and production