add the ability for config_foreach to stop as soon the caller returns 1
add wifi scanner