I facing wifi problems due to the setting, it always closed by itself on 5.11.12 due to one setting, after I enabled the autoconnect and problem solved. just refered to my screenshot, you should enabled the auto connect as shown in the screenshot. Hope it help.
"]
Sent from my Redmi Note 2...