restort wifistate in cancel