Default Serious Wifi problem.

I have had this problem ever since I installed my first rom (FreeXperia unofficial cyanogenmod 11) and stayed ever since
The problem is that every time I try to connect to my home network it will say "saved, secured with wpa" but never connects.
so far I have tried:
Forgetting and re-adding
Factory reset
Flashing different kernel
Flashing different rom (Vanir and official AOKP)
unchecking wifi-optimisation
changing region.

Non of these work, somebody please help me figure this out

P.S it also happens on WPA2 but less.