public void UP(){		
		super.UP();
		
		if(!active) Mode = WiFiPort.MODE_AP;
		
		failed = false;
		apBSSID = "";
		
		ResendPackets = new Hashtable<Long, ResendPacket>();
		
		if(Mode != WiFiPort.MODE_STATION){
			APClients = new Hashtable<String, APClient>();
		}
		
		Simulation.Sim.connectWireless(this);
		parentNode.startTimerTask(this, 500);
		
		if(Mode == WiFiPort.MODE_STATION){
			try{
				associate();				
			}catch(Exception e){}
		}
		
	}