Only scan for APs if the interface was previously down.
Run the command any time the wireless interface was previously down, not just if the nwid changed.
add a sample wifid.conf