Disable wifi scanning when not connected to a wifi network