Listening to the wifi state changed.