Wifi won't turn on after rooting, still won't turn on after factory reset After rooting my phone the wifi wouldn't turn on. I decided that I would just reflash the stock os to remove the root. Wifi still wouldn't turn on. Then I decided to do a factory reset. It still won't turn on. When I say it won't turn on I mean it won't toggle on at all, I cannot flip the switch to put it in the on position. I don't care about losing anything I just want to be able to turn the wifi on.
There can be two causes:

Hardware failure. Unlikely, but a possibility.

Each device has multiple sub-models, and each sub-model has multiple roms. You need to be sure you're installing the Rom meant for your exact device model, even if you are re-installing a Stock Rom. If you do install a rom not meant for your device, you often face issues like these.
The solution for this is to first confirm your exact device model:

Boot into your device's bootloader and look up the device version/model.
Open the download page of the Rom you installed
Download the version specific to your model
Install the Rom the usual way, but be sure to do full wipe/clean of all partitions first from the Recovery.