Add 'managed' virtual interface instead of '__ap', hostapd will change it anyway

This commit is contained in:
oblique 2014-09-21 18:28:41 +03:00
parent 2dcc407000
commit ec0df440f8

View File

@ -680,7 +680,7 @@ if [[ $NO_VIRT -eq 0 ]]; then
Try again with --no-virt."
echo -n "Creating a virtual WiFi interface... "
if iw dev ${WIFI_IFACE} interface add ${VWIFI_IFACE} type __ap; then
if iw dev ${WIFI_IFACE} interface add ${VWIFI_IFACE} type managed; then
# now we can call networkmanager_wait_until_unmanaged
networkmanager_is_running && [[ $NM_OLDER_VERSION -eq 0 ]] && networkmanager_wait_until_unmanaged ${VWIFI_IFACE}
echo "${VWIFI_IFACE} created."