[ "$(config_get "$dev" type)" = "atheros" ] && wifi down "$dev"
done
[ -f "$prifw" ] && prism2_srec -g $device $prifw
[ -f "$stafw" ] && prism2_srec -r $device $stafw
[ "$(config_get "$dev" type)" = "atheros" ] && wifi down "$dev"
done
[ -f "$prifw" ] && prism2_srec -g $device $prifw
[ -f "$stafw" ] && prism2_srec -r $device $stafw