It happened when I updated my ROM to the newest Cm11 kit kat ROM.
I tried flashing different versions, currently i reverted my ROM to an older 4.2.2 CM 10.1 ROM thinking it would solve the problem but it still remains.
The wifi button is grayed out, and is always saying "Turning wifi on...". However, when I go into wifi (where the said msg is) i can change the button but it doesn't make a difference.
Bluetooth too doesn't work (the button won't stay on "ON")