Wifi signal suddenly stopped

I have made a widget to display cell and wifi signal strength. All fine up to the point where suddenly wifi signal turned dead. Ssid stopped showing. All meters for wifi died
Any clues anyone?

First, make sure that the Location in your device is enabled.