wifi scanning optimizations.  heartbeat will fail out if wifi gets
disconnected