In my experience, the wifi icon being greyed out can often mean the hardware on your device is no longer functioning. There are plenty of cases of this, seemed to happen most to 4S phones on upgrade from ios6 to 7 but also to iphone 5 as well. Not generally fixable despite people trying crazy things like blowing hair dryer down the headphone socket etc.