On Arduino Yún, when something goes wrong and it is not able to connect to the configured Wifi network within 60 seconds, by default it resets the network configuration (loosing your configuration) and it enters again in the Access Point mode.
How to override this default behavior?
Read this: http://blog.paraimpu.com/2014/11/arduino-yun-managing-wifi-reset-and.html