Depending on your OS, there is an Option which allows Windows to turn off your WLan adapter to save energy. right click on your wLan adapter in your devices, properties, there should be an option to disable automatically turning it off. Try this, maybe it helps.