You might have a app that will make your device turn off a setting like sound,wifi,Bluetooth,ect. Try plugging it in then try the update. It could be that or it automatically turned off wifi for some reason or changed to airplane mode. try turning off airplane mode or turn on wifi if they aren't on the right one.the last possibility would be that you lost connection to the wifi. It could be that: A. The wifi router that u are using *****! B. You traveled to far away from it or C. The wifi router has been turned off for a certain amount of time if it is for the public or it unexpectedly has turned off. Though, if it is your wifi, then it unexpectedly has turned off. Hope this helped!
Is it this:
If not successful, an appointment at the Genius Bar of an Apple store is usually in order.
I had this problem with my iPhone 4S and I tied everything, even two restores. The new iOS burned out the wifi thing. I had to get a replacement phone from my nearest Apple store. My phone is still in warranty, but if yours is not, you have to pay the price you bought it for. I bought my iPhone 4S when it first came out so I would have to pay $199 for my 16GB. If you do end up bringing it to an Apple store, make sure your stuff is backed up to iCloud! I made the mistake of only backing it up to my computer and then when I got there, the guy advised me not to restore from the old update because of corrupt data.
if you need a quick fix before getting it checked out, you can take it out of the case and stick it in the freezer for a couple of minutes. As soon as the phone heats up, the wifi grays out again.
Hope this helped!