judge wifimode to decide whether scan or not