This is typically an issue with an incorrect kernel or a hardware problem. Recommended to flash the original firmware to the phone via Odin + factory reset (especially coming from CM). If it IS the correct firmware for your phone and it still fails to turn on the wifi, then most likely there is an issue with the wifi chip on the motherboard.