I wasn't able to turn wifi on for a while, after a day it was solved (wthout doing anything other then trying to turn it on, where it stucked the whole day) but only for an hour or something like that. To solve it forever I installed a new Rom with an older Android version (4.3), but the problem remains the same.