fix wifi state before send data via internet