fix wifi bug

When wifi module is bad, wifi will not be enabled. Thus a timer is
added to judge if a test is failed.