#configure WPA
if [ -x "${WPA_SUPPLICANT:=$DEFAULT_WPA_SUPPLICANT}" ]; then
$WPA_SUPPLICANT -i$NAME ${WPA_DRIVER:?-D$WPA_DRIVER}
if [ "$WPA_DRIVER" != "" ]; then
WPA_DRIVER=-D$WPA_DRIVER
fi
$WPA_SUPPLICANT -B -c $WPA_CONFIG -i$NAME $WPA_DRIVER